diff --git a/README.md b/README.md index df424a2..fb58691 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > Production-ready, open-source FastAPI application with PostgreSQL and blazing-fast full-text search. -#### Project Overview +#### Overview This project provides a scalable API backend using FastAPI and PostgreSQL, featuring: @@ -12,7 +12,7 @@ This project provides a scalable API backend using FastAPI and PostgreSQL, featu - Endpoints for health checks, product management, prompt handling (via `/prompt`), resend email, and prospect management - Efficient ingestion and processing of large CSV files -#### 🚀 Features +#### Features - **Python 3.11+** - **FastAPI** — Modern, high-performance REST API @@ -42,7 +42,6 @@ uvicorn app.main:app --reload Visit [localhost:8000](http://localhost:8000) or [onrender](https://nx-ai.onrender.com) - #### API Documentation FastAPI auto-generates interactive docs: @@ -71,7 +70,6 @@ SELECT * FROM prospects WHERE search_vector @@ plainto_tsquery('english', 'searc - On every insert/update, `search_vector` is computed using PostgreSQL's `to_tsvector('english', ...)`. - The GIN index (`idx_prospects_search_vector`) enables efficient search across large datasets. - #### Processing Large CSV Files The `/prospects/process` endpoint supports robust ingestion of large CSVs (e.g., 1300+ rows, 300KB+), following the same normalization and insertion pattern as `/prospects/seed` but optimized for scale. diff --git a/app/__init__.py b/app/__init__.py index 49f2f7b..3e04420 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,4 +1,4 @@ -"""Python - FastAPI, Postgres, tsvector""" +"""Python° - FastAPI, Postgres, tsvector""" # Current Version -__version__ = "1" +__version__ = "3.0.1" diff --git a/app/api/root.py b/app/api/root.py index 773c766..5ed493d 100644 --- a/app/api/root.py +++ b/app/api/root.py @@ -8,44 +8,15 @@ @router.get("/") def root() -> dict: - """NX-AI.""" + """"Python°""" load_dotenv() base_url = os.getenv("BASE_URL", "http://localhost:8000") epoch = int(time.time() * 1000) meta = { - "title": "Python", - "severity": "success", + "title": "Python°", "version": __version__, "base_url": base_url, "time": epoch, } - endpoints = [ - {"name": "health", "url": f"{base_url}/health"}, - { - "name": "Queue", - "endpoints": [ - {"name": "list", "url": f"{base_url}/queue"}, - ] - }, - { - "name": "Prompt°", - "endpoints": [ - {"name": "list", "url": f"{base_url}/prompt"}, - ] - }, - { - "name": "Orders°", - "endpoints": [ - {"name": "list", "url": f"{base_url}/orders"}, - ] - }, - { - "name": "Prospects°", - "endpoints": [ - {"name": "list", "url": f"{base_url}/prospects"}, - ] - }, - - {"name": "Docs", "url": f"{base_url}/docs"}, - ] - return {"meta": meta, "data": endpoints} + + return {"meta": meta}