From 75e07c5a7aa829ffb94bb1e2f0236c98fa0e78f8 Mon Sep 17 00:00:00 2001 From: Goldlabel Apps Ltd Date: Fri, 20 Mar 2026 06:52:19 +0000 Subject: [PATCH 1/4] Add .env.sample and bump version to 1.0.5 Add a .env.sample with environment variable placeholders for BASE_URL and Postgres connection (DB_HOST, DB_PORT=5432, DB_NAME, DB_USER, DB_PASSWORD). Update app __version__ from 1.0.4 to 1.0.5 to reflect the change. --- .env.sample | 6 ++++++ app/__init__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .env.sample diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..6c9dea1 --- /dev/null +++ b/.env.sample @@ -0,0 +1,6 @@ +BASE_URL= +DB_HOST= +DB_PORT=5432 +DB_NAME= +DB_USER= +DB_PASSWORD= diff --git a/app/__init__.py b/app/__init__.py index 95cf70f..7ad14fe 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,4 +1,4 @@ """NX AI - FastAPI/Python/Postgres/tsvector""" # Current Version -__version__ = "1.0.4" +__version__ = "1.0.5" From 5be84beb5945b45d310e3288d4e5d247f7cf99f3 Mon Sep 17 00:00:00 2001 From: Goldlabel Apps Ltd Date: Fri, 20 Mar 2026 07:34:42 +0000 Subject: [PATCH 2/4] Update README.md --- README.md | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a0b25d7..fea5a33 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,17 @@ -# NX AI +## Python NX AI -> FastAPI/Python/Postgres/tsvector. Production ready Python FastAPI/Postgres app for [NX](https://goldlabel.pro?s=nx-ai) AI services and more +> FastAPI/Python/Postgres/tsvector. +Open Source, production ready Python FastAPI/Postgres app for [NX](https://goldlabel.pro?s=python-nx-ai) -## Install & use +#### Use + +`uvicorn app.main:app` + +#### Install + +Create an environment file and add Postgres credentials etc + +`cp .env.sample .env` ```bash # Create and activate a virtual environment @@ -12,15 +21,10 @@ source venv/bin/activate # Windows: venv\Scripts\activate # Install dependencies pip install -r requirements.txt -# Start the development server +# Start development server uvicorn app.main:app --reload ``` -```sh -uvicorn app.main:app -pytest -``` - The API is at . [localhost](http://localhost:8000) | [Public RESTful API](https://nx-ai.onrender.com) @@ -33,13 +37,12 @@ The API is at . - **Pytest** — testing framework - **HTTPX / TestClient** - FastAPI automatically generates interactive documentation: - Swagger UI: - ReDoc: -## Structure +#### Structure ``` app/ @@ -55,7 +58,7 @@ requirements.txt ``` -## Endpoints +#### Endpoints | Method | Path | Description | |--------|-----------|---------------------------------| From 8142ffbe4f86ebb5b85cebd396ee36dd9d4ef1c5 Mon Sep 17 00:00:00 2001 From: Goldlabel Apps Ltd Date: Fri, 20 Mar 2026 20:22:32 +0000 Subject: [PATCH 3/4] Bump version to 1.0.6 Update package version in app/__init__.py from 1.0.5 to 1.0.6 to reflect the new release. --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 7ad14fe..a3388b2 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,4 +1,4 @@ """NX AI - FastAPI/Python/Postgres/tsvector""" # Current Version -__version__ = "1.0.5" +__version__ = "1.0.6" From 9f20a2bb817050d1ee22f950ec849557829a7a79 Mon Sep 17 00:00:00 2001 From: Goldlabel Apps Ltd Date: Fri, 20 Mar 2026 20:25:24 +0000 Subject: [PATCH 4/4] Add python-multipart to requirements Include python-multipart>=0.0.20 in requirements.txt to support parsing multipart/form-data (e.g., file uploads) for web frameworks that require this dependency. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index c06408c..432be90 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ httpx>=0.27.0 pytest>=8.1.0 python-dotenv>=1.0.0 psycopg2-binary>=2.9.0 +python-multipart>=0.0.20