{"id":15024886,"url":"https://github.com/psqlpy-python/psqlpy","last_synced_at":"2025-04-14T08:16:52.487Z","repository":{"id":220546602,"uuid":"751043395","full_name":"psqlpy-python/psqlpy","owner":"psqlpy-python","description":"Asynchronous Python PostgreSQL driver written in Rust","archived":false,"fork":false,"pushed_at":"2025-03-24T17:09:07.000Z","size":10570,"stargazers_count":273,"open_issues_count":18,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-07T02:08:22.180Z","etag":null,"topics":["asyncio","asyncpg-like","database-driver","high-performance","postgresql","postgresql-database","postgresql-driver","psycopg-like","python-driver","python-postgresql","python3","rust"],"latest_commit_sha":null,"homepage":"https://psqlpy-python.github.io/","language":"Rust","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/psqlpy-python.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}},"created_at":"2024-01-31T20:24:36.000Z","updated_at":"2025-04-06T12:43:04.000Z","dependencies_parsed_at":"2024-02-17T23:27:59.746Z","dependency_job_id":"a6128c26-4017-4875-b44b-45bbcbf7ff34","html_url":"https://github.com/psqlpy-python/psqlpy","commit_stats":{"total_commits":410,"total_committers":6,"mean_commits":68.33333333333333,"dds":0.5121951219512195,"last_synced_commit":"335e591ab5c0cdfd123ed0fb9c48e7de19ed83f2"},"previous_names":["qaspen-python/psql-rust-engine","qaspen-python/psql-rust-driver","qaspen-python/psqlpy","psqlpy-python/psqlpy"],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psqlpy-python%2Fpsqlpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psqlpy-python%2Fpsqlpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psqlpy-python%2Fpsqlpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psqlpy-python%2Fpsqlpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psqlpy-python","download_url":"https://codeload.github.com/psqlpy-python/psqlpy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225664,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["asyncio","asyncpg-like","database-driver","high-performance","postgresql","postgresql-database","postgresql-driver","psycopg-like","python-driver","python-postgresql","python3","rust"],"created_at":"2024-09-24T20:01:07.601Z","updated_at":"2025-04-14T08:16:52.455Z","avatar_url":"https://github.com/psqlpy-python.png","language":"Rust","readme":"[![PyPI - Python Version](https://img.shields.io/badge/PYTHON-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue?style=for-the-badge\n)](https://pypi.org/project/psqlpy/)\n[![PyPI](https://img.shields.io/pypi/v/psqlpy?style=for-the-badge)](https://pypi.org/project/psqlpy/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/psqlpy?style=for-the-badge)](https://pypistats.org/packages/psqlpy)\n\n# PSQLPy - Async PostgreSQL driver for Python written in Rust.\n\nDriver for PostgreSQL written fully in Rust and exposed to Python.\nMain goals of the library is speed and type safety.\n\n## Documentation\nYou can find full documentation here - [PSQLPy documentation](https://psqlpy-python.github.io/)\n\n## Installation\n\nYou can install package with `pip` or `poetry`.\n\npoetry:\n\n```bash\n\u003e poetry add psqlpy\n```\n\npip:\n\n```bash\n\u003e pip install psqlpy\n```\n\nOr you can build it by yourself. To do it, install stable rust and [maturin](https://github.com/PyO3/maturin).\n\n```\n\u003e maturin develop --release\n```\n\n## Usage\n\nUsage is as easy as possible.\nCreate new instance of ConnectionPool and start querying.\nYou don't need to startup connection pool, the connection pool will create connections as needed.\n\n```python\nfrom typing import Any\n\nfrom psqlpy import ConnectionPool, QueryResult\n\n\nasync def main() -\u003e None:\n    db_pool = ConnectionPool(\n        username=\"postgres\",\n        password=\"pg_password\",\n        host=\"localhost\",\n        port=5432,\n        db_name=\"postgres\",\n        max_db_pool_size=2,\n    )\n\n    async with db_pool.acquire() as conn:\n        res: QueryResult = await conn.execute(\n            \"SELECT * FROM users\",\n        )\n\n    print(res.result())\n    db_pool.close()\n\n```\n\n## Benchmarks\n\nYou can find benchmarks with visualization on our [docs](https://psqlpy-python.github.io/benchmarks.html)\n\n## Community\nLet's make `PSQLPy` better together!\nJoin our community in [Telegram](https://t.me/+f3Y8mYKgXxhmYThi)\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsqlpy-python%2Fpsqlpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsqlpy-python%2Fpsqlpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsqlpy-python%2Fpsqlpy/lists"}