File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ BASE_URL =
2+ DB_HOST =
3+ DB_PORT = 5432
4+ DB_NAME =
5+ DB_USER =
6+ DB_PASSWORD =
Original file line number Diff line number Diff line change 1- # NX AI
1+ ## Python NX AI
22
3- > FastAPI/Python/Postgres/tsvector. Production ready Python FastAPI/Postgres app for [ NX] ( https://goldlabel.pro?s=nx-ai ) AI services and more
3+ > FastAPI/Python/Postgres/tsvector.
4+ Open Source, production ready Python FastAPI/Postgres app for [ NX] ( https://goldlabel.pro?s=python-nx-ai )
45
5- ## Install & use
6+ #### Use
7+
8+ ` uvicorn app.main:app `
9+
10+ #### Install
11+
12+ Create an environment file and add Postgres credentials etc
13+
14+ ` cp .env.sample .env `
615
716``` bash
817# Create and activate a virtual environment
@@ -12,15 +21,10 @@ source venv/bin/activate # Windows: venv\Scripts\activate
1221# Install dependencies
1322pip install -r requirements.txt
1423
15- # Start the development server
24+ # Start development server
1625uvicorn app.main:app --reload
1726```
1827
19- ``` sh
20- uvicorn app.main:app
21- pytest
22- ```
23-
2428The API is at < http://localhost:8000 > .
2529
2630[ localhost] ( http://localhost:8000 ) | [ Public RESTful API] ( https://nx-ai.onrender.com )
@@ -33,13 +37,12 @@ The API is at <http://localhost:8000>.
3337- ** Pytest** — testing framework
3438- ** HTTPX / TestClient**
3539
36-
3740FastAPI automatically generates interactive documentation:
3841
3942- Swagger UI: < http://localhost:8000/docs >
4043- ReDoc: < http://localhost:8000/redoc >
4144
42- ## Structure
45+ #### Structure
4346
4447```
4548app/
@@ -55,7 +58,7 @@ requirements.txt
5558```
5659
5760
58- ## Endpoints
61+ #### Endpoints
5962
6063| Method | Path | Description |
6164| --------| -----------| ---------------------------------|
Original file line number Diff line number Diff line change 11"""NX AI - FastAPI/Python/Postgres/tsvector"""
22
33# Current Version
4- __version__ = "1.0.4 "
4+ __version__ = "1.0.6 "
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ httpx>=0.27.0
44pytest >= 8.1.0
55python-dotenv >= 1.0.0
66psycopg2-binary >= 2.9.0
7+ python-multipart >= 0.0.20
You can’t perform that action at this time.
0 commit comments