Metadata-Version: 2.1
Name: p8hub
Version: 0.0.1
Summary: Private AI Hub - Host your own Generative AI Services
Home-page: https://github.com/vietanhdev/p8hub
Author: Viet-Anh Nguyen
Author-email: vietanh.dev@gmail.com
License: Apache License 2.0
Keywords: Platform,Local,Generative AI,GPT,LLM,Stable Diffusion,Docker
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Description-Content-Type: text/markdown
Requires-Dist: urllib3>=2.0.2
Requires-Dist: extract-msg>=0.41.1
Requires-Dist: tabulate>=0.9.0
Requires-Dist: python-multipart>=0.0.6
Requires-Dist: fastapi==0.96.0
Requires-Dist: SQLAlchemy==2.0.15
Requires-Dist: alembic==1.11.1
Requires-Dist: requests
Requires-Dist: uvicorn==0.23.2

# Private AI Hub (P8Hub)

Host and use your own Generative AI Services. Keep everything private.

## TODO

Some features that I want to add to this project:

- [ ] Service management (start, stop, restart, delete).
- [ ] General chatbot service with Ollama.
- [ ] Document chat service with PrivateGPT.
- [ ] Code generation / auto-completion service with LocalPilot.
- [ ] Image generation service with InvokeAI.
- [ ] Add documentation.
- [ ] Add tests.
- [ ] Desktop app.
- [ ] Custom service.


## I. Installation and Usage

### 1. Installation

- Python 3.9 or higher.
- Install **p8hub**:

```shell
pip install p8hub
```

### 2. Usage

- Run the app:

```shell
python -m p8hub.app
```

or just:

```shell
p8hub
```

- Go to <http://localhost:5678/> to see the user interface.

You can also run Private AI Hub publicly to your network or change the port with parameters. Example:

```shell
p8hub --host 0.0.0.0 --port 8080
```

## II. Development

### 1. Clone the source code

```shell
git clone https://github.com/vietanhdev/p8hub
cd p8hub
```

### 2. Run your backend

- Python 3.9 or higher.
- To install from source, from `p8hub` source code directory, run:

```shell
pip install -e .
```

- Run the app:

```shell
python -m p8hub.app
```

- Go to <http://localhost:5678/> to see the user interface.

### 2. Run your frontend

- Install the dependencies:

```shell
cd frontend
npm install
```

- Run the app:

```shell
npm run dev
```

- Go to <http://localhost:3000/> to see the user interface. Use this address to develop the frontend.


## References

- Next Template: [https://github.com/shadcn-ui/next-template](https://github.com/shadcn-ui/next-template).
- PAutoBot: [https://github.com/nrl-ai/pautobot](https://github.com/nrl-ai/pautobot).
