{"id":46615787,"url":"https://github.com/santarsierilorenzo/nova-pg","last_synced_at":"2026-03-07T20:01:53.207Z","repository":{"id":319467240,"uuid":"1078765760","full_name":"santarsierilorenzo/nova-pg","owner":"santarsierilorenzo","description":"Python package designed to simplify and streamline interactions with PostgreSQL databases.","archived":false,"fork":false,"pushed_at":"2025-12-05T17:14:19.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-08T08:19:04.511Z","etag":null,"topics":["docker","postgresql","python","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santarsierilorenzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-10-18T11:28:56.000Z","updated_at":"2025-12-05T16:55:28.000Z","dependencies_parsed_at":"2025-10-19T07:12:16.773Z","dependency_job_id":"b442d114-b214-4e73-a837-9ba3b22a4a8d","html_url":"https://github.com/santarsierilorenzo/nova-pg","commit_stats":null,"previous_names":["santarsierilorenzo/nova-pg"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/santarsierilorenzo/nova-pg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santarsierilorenzo%2Fnova-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santarsierilorenzo%2Fnova-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santarsierilorenzo%2Fnova-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santarsierilorenzo%2Fnova-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santarsierilorenzo","download_url":"https://codeload.github.com/santarsierilorenzo/nova-pg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santarsierilorenzo%2Fnova-pg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: 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":["docker","postgresql","python","sql"],"created_at":"2026-03-07T20:01:52.418Z","updated_at":"2026-03-07T20:01:53.197Z","avatar_url":"https://github.com/santarsierilorenzo.png","language":"Python","readme":"# nova-pg\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Python-3776AB?style=for-the-badge\u0026logo=python\u0026logoColor=white\" alt=\"Python\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PostgreSQL-4169E1?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white\" alt=\"PostgreSQL\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PyPI-3775A9?style=for-the-badge\u0026logo=pypi\u0026logoColor=white\" alt=\"PyPI\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Dev%20Containers-007ACC?style=for-the-badge\u0026logo=visualstudiocode\u0026logoColor=white\" alt=\"Dev Containers\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Docker-2496ED?style=for-the-badge\u0026logo=docker\u0026logoColor=white\" alt=\"Docker\"\u003e\n\u003c/p\u003e\n\nnova-pg is a Python package designed to simplify and streamline interactions with PostgreSQL databases.  \nIt provides a set of helper functions that make it easier to connect, query, and manage data in a scalable and reusable way.\n\nThe main goal of this project is to accelerate development, enable scalability, and offer a portable package that can be easily integrated wherever database access is required.\n\n---\n### 📦 Installation (PyPI Package)\nYou can install **Nova PG** directly from [PyPI](https://pypi.org) using `pip`:\n\n```bash\npip install nova-pg\n```\n\nOr, if you want to test the latest version from **TestPyPI**, use:\n\n```bash\npip install -i https://test.pypi.org/simple --extra-index-url https://pypi.org/simple nova-pg\n```\n\n### 🧩 Repository Structure\nThis repository includes:\n- Example configuration files for environment setup.\n- A dedicated test folder to validate the functionality of the helper functions.\n- A Docker-based development environment for consistent and isolated builds.\n\n\n### 🧰 Development Environment (DevContainer + Docker)\nFollow these steps to set up your local development environment:\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/santarsierilorenzo/nova-pg.git\n   ```\n\n2. Copy the example dev container configuration file:\n   ```bash\n   cp .devcontainer/devcontainer.json.example .devcontainer/devcontainer.json\n   ```\n\n3. Open VS Code and rebuild the container without cache:\n   ```bash\n   Ctrl + Shift + P → Rebuild Container Without Cache and Reopen in Container\n   ```\n\n4. Once the Docker container is running, you’ll have access to all required dependencies and tools pre-installed.\n\n\n### 🐘 Get Started\n\n1. Copy `db_config.json.example`, rename it to `db_config.json`, and fill it with your database credentials.\n\n2. Import the package:\n\n```python\nimport nova_pg\n```\n\n3. Load your database credentials from `db_config.json`:\n\n```python\ndb_cred = nova_pg.config.load_db_config(\n    config_file_path=\"path_to_your_json\",\n    env_name=\"dev\"\n)\n```\n\n4. Build your connection string:\n\n```python\nurl_db = nova_pg.config.build_connection_string(\n    db_cred_dict=db_cred\n)\n```\n\n5. Use functions in the `utils` module:\n\n```python\nQUERY = \"\"\"\nSELECT *\nFROM prices.nq_1_min\n\"\"\"\n\nwith nova_pg.utils.get_cursor(url_db) as cur:\n    cols, data = nova_pg.utils.fetch_in_chunks(\n        cur=cur,\n        query=QUERY,\n        table_name=\"nq_1_min\",\n        batch_size=10000            \n    )\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantarsierilorenzo%2Fnova-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantarsierilorenzo%2Fnova-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantarsierilorenzo%2Fnova-pg/lists"}