Skip to content

goldlabelapps/python-nx-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python NX AI

FastAPI/Python/Postgres/tsvector. Open Source, production ready Python FastAPI/Postgres app for NX

Use

uvicorn app.main:app

Install

Create an environment file and add Postgres credentials etc

cp .env.sample .env

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Start development server
uvicorn app.main:app --reload

The API is at http://localhost:8000.

localhost | Public RESTful API

  • Python 3.11+
  • Postgres
  • tsvector - Superfast search
  • FastAPI — RESTful API framework
  • Uvicorn — ASGI server
  • Pytest — testing framework
  • HTTPX / TestClient

FastAPI automatically generates interactive documentation:

Structure

app/
  __init__.py
  main.py          # FastAPI application entry point
  api/
    __init__.py
    routes.py      # API endpoint definitions
tests/
  __init__.py
  test_routes.py   # Unit and integration tests
requirements.txt

Endpoints

Method Path Description
GET / Welcome message
GET /health Health check — returns ok
POST /echo Echoes the JSON message field

About

Open Source, production ready Python FastAPI/Postgres app for NX

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages