{"id":47724012,"url":"https://github.com/goldlabelapps/python","last_synced_at":"2026-04-02T20:01:19.930Z","repository":{"id":345292460,"uuid":"1185262497","full_name":"goldlabelapps/python","owner":"goldlabelapps","description":"Open Source, production ready Python FastAPI/Postgres app for NX","archived":false,"fork":false,"pushed_at":"2026-04-01T22:03:49.000Z","size":667,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-02T01:26:47.301Z","etag":null,"topics":["ai","fastapi","postgres","python","render","tsvector"],"latest_commit_sha":null,"homepage":"https://nx-ai.onrender.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goldlabelapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T12:01:51.000Z","updated_at":"2026-04-01T22:03:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/goldlabelapps/python","commit_stats":null,"previous_names":["goldlabelapps/python","goldlabelapps/python-nx-ai"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/goldlabelapps/python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldlabelapps%2Fpython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldlabelapps%2Fpython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldlabelapps%2Fpython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldlabelapps%2Fpython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goldlabelapps","download_url":"https://codeload.github.com/goldlabelapps/python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldlabelapps%2Fpython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31314786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","fastapi","postgres","python","render","tsvector"],"created_at":"2026-04-02T20:01:03.011Z","updated_at":"2026-04-02T20:01:19.916Z","avatar_url":"https://github.com/goldlabelapps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ![Python](/app/static/repoicon.png) Python\n\n\u003e Python with FastAPI using Postgres \u0026 tsvector. \n\nOpen Source, production ready Python FastAPI/Postgres app. \n[GitHub](https://github.com/goldlabelapps/python) | \n[onrender](https://nx-ai.onrender.com) | \n[by Goldlabel](https://goldlabel.pro)\n\n- **Python 3.11+**\n- **Postgres**\n- **tsvector** - Superfast full-text search (with GIN index)\n\n```sh\nuvicorn app.main:app  --reload\n```\n\n#### Install\n\nCreate an environment file and add Postgres credentials etc\n\n`cp .env.sample .env`\n\n```bash\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\nuvicorn app.main:app --reload\n```\n\n[localhost](http://localhost:8000) | [onrender](https://nx-ai.onrender.com) \n\n\n### Full-Text Search (tsvector)\n\nThe prospects table includes a `search_vector` column (type: tsvector) that is automatically computed from all text fields on insert. A GIN index is created for this column, enabling fast and scalable full-text search queries.\n\n**How it works:**\n\n- On every insert or update, the `search_vector` is computed from all text columns using PostgreSQL's `to_tsvector('english', ...)`.\n- The GIN index (`idx_prospects_search_vector`) allows efficient search queries like:\n\n```sql\nSELECT * FROM prospects WHERE search_vector @@ plainto_tsquery('english', 'search terms');\n```\n\nThis makes searching across all text fields in the prospects table extremely fast, even for large datasets.\n- **FastAPI** — RESTful API framework\n- **Uvicorn** — ASGI server\n- **Pytest** — testing framework\n- **HTTPX / TestClient**\n\n#### Docs\n\nFastAPI automatically generates interactive documentation:\n\n- Swagger UI: \u003chttp://localhost:8000/docs\u003e\n- ReDoc: \u003chttp://localhost:8000/redoc\u003e\n\n### Processing Large CSV Files\n\nThe `/prospects/process` endpoint is designed for robust, scalable ingestion of large CSV files (e.g., 1300+ rows, 300KB+). It follows the same normalization and insertion pattern as `/prospects/seed`, but is optimized for large files:\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldlabelapps%2Fpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldlabelapps%2Fpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldlabelapps%2Fpython/lists"}