{"id":16649483,"url":"https://github.com/rapptz/asqlite","last_synced_at":"2025-04-07T12:10:12.778Z","repository":{"id":66092929,"uuid":"279489024","full_name":"Rapptz/asqlite","owner":"Rapptz","description":"A simple async wrapper for sqlite3","archived":false,"fork":false,"pushed_at":"2024-07-12T09:29:27.000Z","size":26,"stargazers_count":120,"open_issues_count":2,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-12T09:10:48.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Rapptz.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":"2020-07-14T05:15:08.000Z","updated_at":"2024-10-08T16:41:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"91023358-14c6-4263-916a-513f21b4ed12","html_url":"https://github.com/Rapptz/asqlite","commit_stats":{"total_commits":18,"total_committers":6,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"fcd8ce0672562e440f99eb4b7a56eba16f6abf4e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapptz%2Fasqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapptz%2Fasqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapptz%2Fasqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapptz%2Fasqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rapptz","download_url":"https://codeload.github.com/Rapptz/asqlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":[],"created_at":"2024-10-12T09:10:37.005Z","updated_at":"2025-04-07T12:10:12.744Z","avatar_url":"https://github.com/Rapptz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### asqlite\n\nA simple and easy to use async wrapper for `sqlite3`.\n\nThis is basically the same as `sqlite3` except you use `async with` and `await` in front of most operations.\n\n```python\nimport asyncio\nimport asqlite\n\nasync def main():\n    async with asqlite.connect('example.db') as conn:\n        async with conn.cursor() as cursor:\n            # Create table\n            await cursor.execute('''CREATE TABLE stocks\n                                    (date text, trans text, symbol text, qty real, price real)''')\n\n            # Insert a row of data\n            await cursor.execute(\"INSERT INTO stocks VALUES ('2006-01-05','BUY','RHAT',100,35.14)\")\n\n            # Save (commit) the changes\n            await conn.commit()\n\nasyncio.run(main())\n```\n\n### Install\n\nTo install this via PyPI, use the `asqlite` package:\n\n```\npython3 -m pip install -U asqlite\n```\n\n### Differences from `sqlite3`\n\nThis module differs from `sqlite3` in a few ways:\n\n1. Connections are created with `journal_mode` set to `wal`.\n2. Connections have foreign keys enabled by default.\n3. [Implicit transactions are turned off][implicit-transactions]\n4. The [`row_factory`][row_factory] is set to [`sqlite3.Row`][Row].\n5. A `asqlite.Pool` is provided for connection pooling\n\n[implicit-transactions]: https://docs.python.org/3/library/sqlite3.html#transaction-control\n[row_factory]: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.row_factory\n[Row]: https://docs.python.org/3/library/sqlite3.html#sqlite3.Row\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapptz%2Fasqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapptz%2Fasqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapptz%2Fasqlite/lists"}