No description
/companies/search queried a nonexistent 'companies' table; now queries stg_apollo_organizations (5.26M organizations, typed/normalized layer). /contacts/match queried a nonexistent 'contacts' table; now queries apollo_persons_raw with LIKE matching, since emails/phone_numbers are still raw list-repr text there -- exact matching needs a stg_apollo_persons layer that doesn't exist yet. |
||
|---|---|---|
| app | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
| requirements.txt | ||
intelligence-api
FastAPI pentru Data-Intelligence: cautare companii/persoane, matching contacte, scoring, statistici — peste ClickHouse.
Stack
FastAPI, Uvicorn, Pydantic, clickhouse-connect, Polars, DuckDB, PyArrow, psycopg, Redis, rapidfuzz, phonenumbers, email-validator, orjson.
Dezvoltare
pip install -r requirements.txt
cp .env.example .env
uvicorn app.main:app --reload
GET /health returneaza statusul serviciului. GET /docs expune Swagger UI (automat din FastAPI).