{"id":16640772,"url":"https://github.com/carlos-rian/pysqlx-engine","last_synced_at":"2025-10-10T07:05:30.594Z","repository":{"id":41133849,"uuid":"507175011","full_name":"carlos-rian/pysqlx-engine","owner":"carlos-rian","description":"PySQLXEngine, a minimalist asynchronous SQL engine.","archived":false,"fork":false,"pushed_at":"2025-01-13T06:19:09.000Z","size":15929,"stargazers_count":14,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T10:45:22.976Z","etag":null,"topics":["async","asyncio","asyncronous","mssql","mysql","postgresql","python","python3","sql","sqlite"],"latest_commit_sha":null,"homepage":"https://github.com/carlos-rian/pysqlx-engine","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/carlos-rian.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-25T00:15:58.000Z","updated_at":"2025-07-28T09:39:29.000Z","dependencies_parsed_at":"2024-07-13T01:54:49.280Z","dependency_job_id":"73de1472-af2e-4844-b241-b9651969962c","html_url":"https://github.com/carlos-rian/pysqlx-engine","commit_stats":{"total_commits":324,"total_committers":4,"mean_commits":81.0,"dds":"0.38888888888888884","last_synced_commit":"fbce4b5bddfa039c0e5fcef770750d223430d15a"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/carlos-rian/pysqlx-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-rian%2Fpysqlx-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-rian%2Fpysqlx-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-rian%2Fpysqlx-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-rian%2Fpysqlx-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlos-rian","download_url":"https://codeload.github.com/carlos-rian/pysqlx-engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlos-rian%2Fpysqlx-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003168,"owners_count":26083533,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["async","asyncio","asyncronous","mssql","mysql","postgresql","python","python3","sql","sqlite"],"created_at":"2024-10-12T07:25:33.691Z","updated_at":"2025-10-10T07:05:30.559Z","avatar_url":"https://github.com/carlos-rian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PySQLXEngine\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"/\"\u003e\u003cimg src=\"https://carlos-rian.github.io/pysqlx-engine/img/logo-text3.png\" alt=\"PySQLXEngine Logo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003ePySQLXEngine, a fast and minimalist SQL engine\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/carlos-rian/pysqlx-engine/actions/workflows/ci.yml\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/carlos-rian/pysqlx-engine/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://app.codecov.io/gh/carlos-rian/pysqlx-engine\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/codecov/c/github/carlos-rian/pysqlx-engine?color=%2334D058\" alt=\"Coverage\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/pysqlx-engine\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/pysqlx-engine?color=%2334D058\u0026label=pypi%20package\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/pysqlx-engine\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/pysqlx-engine.svg?color=%2334D058\" alt=\"Supported Python versions\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/pysqlx-engine\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://static.pepy.tech/personalized-badge/pysqlx-engine?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=Downloads\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\n---\n\n**Documentation**: \u003ca href=\"https://carlos-rian.github.io/pysqlx-engine/\" target=\"_blank\"\u003ehttps://carlos-rian.github.io/pysqlx-engine/\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/carlos-rian/pysqlx-engine\" target=\"_blank\"\u003ehttps://github.com/carlos-rian/pysqlx-engine\u003c/a\u003e\n\n---\n\nPySQLXEngine supports the option of sending **raw sql** to your database.\n\nThe PySQLXEngine is a minimalist **Async and Sync** SQL engine. Currently this lib have supports *async and sync programming*.\n\nThe PySQLXEngine was created and thought to be minimalistic, but very efficient. The core is write in Rust, making communication between database and Python more efficient.\n\n\nDatabase Support:\n\n* `SQLite`\n* `PostgreSQL`\n* `MySQL`\n* `Microsoft SQL Server`\n\nOS Support:\n\n* `Linux`\n* `MacOS`\n* `Windows`\n\n## Installation\n\nUV\n    \n```console\n$ uv add pysqlx-engine\n```\n\n\nPIP\n\n```console\n$ pip install pysqlx-engine\n```\n\nPoetry\n\n```console\n$ poetry add pysqlx-engine\n```\n\n\n## Async Example\n\nCreate a `main.py` file and add the code examples below.\n\n```python\nfrom pysqlx_engine import PySQLXEngine\n\nasync def main():\n    db = PySQLXEngine(uri=\"sqlite:./db.db\")\n    await db.connect()\n\n    await db.execute(sql=\"\"\"\n        CREATE TABLE IF NOT EXISTS users (\n            id INTEGER PRIMARY KEY, \n            name TEXT, \n            age INT\n        )\n    \"\"\")\n    await db.execute(sql=\"INSERT INTO users (name, age) VALUES ('Rian', '28')\")\n    await db.execute(sql=\"INSERT INTO users (name, age) VALUES ('Carlos', '29')\")\n\n    rows = await db.query(sql=\"SELECT * FROM users\")\n\n    print(rows)\n\nimport asyncio\nasyncio.run(main())\n```\n\n## Sync Example\n\nCreate a `main.py` file and add the code examples below.\n\n```python\nfrom pysqlx_engine import PySQLXEngineSync\n\ndef main():\n    db = PySQLXEngineSync(uri=\"sqlite:./db.db\")\n    db.connect()\n\n    db.execute(sql=\"\"\"\n        CREATE TABLE IF NOT EXISTS users (\n            id INTEGER PRIMARY KEY, \n            name TEXT, \n            age INT\n        )\n    \"\"\")\n    db.execute(sql=\"INSERT INTO users (name, age) VALUES ('Rian', '28')\")\n    db.execute(sql=\"INSERT INTO users (name, age) VALUES ('Carlos', '29')\")\n\n    rows = db.query(sql=\"SELECT * FROM users\")\n\n    print(rows)\n\n# running the code\nmain()\n```\n\nRunning the code using the terminal\n\n\n```console\n$ python3 main.py\n```\nOutput\n\n```python\n[\n    BaseRow(id=1, name='Rian', age=28),  \n    BaseRow(id=2, name='Carlos', age=29)\n]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlos-rian%2Fpysqlx-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlos-rian%2Fpysqlx-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlos-rian%2Fpysqlx-engine/lists"}