Skip to content

Commit face706

Browse files
committed
Introduce prospects API, remove products, bump version
Refactor API surface: remove the app/api/products package and its CSV/data files and replace it with a new app/api/prospects package (prospects.py and seed/data CSVs). Rename/move seed router (products/seed.py -> prospects/seed.py) and relocate db module from app/api/db.py to app/utils/db.py. Bump package version to 1.1.2 and update api package docstring; update main, root and routes to accommodate the new structure. Note: .DS_Store files were added (OS artifacts).
1 parent fd5b1bd commit face706

17 files changed

Lines changed: 1299 additions & 1409 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.DS_Store
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[codz]
@@ -205,3 +207,4 @@ cython_debug/
205207
marimo/_static/
206208
marimo/_lsp/
207209
__marimo__/
210+

app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""NX AI - FastAPI/Python/Postgres/tsvector"""
22

33
# Current Version
4-
__version__ = "1.1.1"
4+
__version__ = "1.1.2"

app/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"""NX AI API package."""
1+
"""NX AI Python package"""

app/api/products/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

app/api/products/data/big_data.csv

Lines changed: 0 additions & 1338 deletions
This file was deleted.

app/api/products/data/seed.csv

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/api/products/products.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/api/products/update.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/api/prospects/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""Prospect Routes"""
2+
3+
from .prospects import router as prospects_router

app/api/prospects/data/big.csv

Lines changed: 1237 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)