Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Tortoise Orm | 3,839 | 9 | 84 | 4 days ago | 151 | August 11, 2023 | 504 | apache-2.0 | Python | |
Familiar asyncio ORM for python, built with relations in mind | ||||||||||
Databases | 3,517 | 30 | 90 | 21 days ago | 41 | December 18, 2022 | 124 | bsd-3-clause | Python | |
Async database support for Python. 🗄 | ||||||||||
Prisma Client Py | 1,312 | 1 | 9 | 11 days ago | 27 | August 28, 2023 | 180 | apache-2.0 | Python | |
Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use | ||||||||||
Piccolo | 1,102 | 2 | 8 | 14 days ago | 243 | September 11, 2023 | 104 | mit | Python | |
A fast, user friendly ORM and query builder which supports asyncio. | ||||||||||
Aiosqlite | 943 | 52 | 327 | 2 months ago | 24 | April 17, 2023 | 30 | mit | Python | |
asyncio bridge to the standard sqlite3 module | ||||||||||
Funboost | 501 | 3 days ago | 43 | June 17, 2022 | 3 | apache-2.0 | Python | |||
pip install funboost,python全功能分布式函数调度框架,。支持python所有类型的并发模式和全球一切知名消息队列中间件,python函数加速器,框架包罗万象,一统编程思维,兼容50% python编程业务场景,适用范围广。只需要一行代码即可分布式执行python一切函数。 | ||||||||||
Aioodbc | 268 | 8 | 3 | 4 months ago | 10 | July 06, 2019 | 14 | apache-2.0 | Python | |
aioodbc - is a library for accessing a ODBC databases from the asyncio | ||||||||||
Piccolo_admin | 246 | 15 days ago | 109 | July 04, 2022 | 36 | mit | Python | |||
A powerful web admin for your database. | ||||||||||
Web Portal | 136 | 11 days ago | 10 | agpl-3.0 | Python | |||||
Web Portal is a all-in-one web dashboard, providing many widgets to build a personal portal. With the ability to load external plugins. | ||||||||||
Ormdantic | 119 | 19 days ago | 8 | January 02, 2023 | 13 | mit | Python | |||
Asynchronous ORM that uses pydantic models to represent database tables ✨ |
aiosqlite provides a friendly, async interface to sqlite databases.
It replicates the standard sqlite3
module, but with async versions
of all the standard connection and cursor methods, plus context managers for
automatically closing connections and cursors:
async with aiosqlite.connect(...) as db:
await db.execute("INSERT INTO some_table ...")
await db.commit()
async with db.execute("SELECT * FROM some_table") as cursor:
async for row in cursor:
...
It can also be used in the traditional, procedural manner:
db = await aiosqlite.connect(...)
cursor = await db.execute('SELECT * FROM some_table')
row = await cursor.fetchone()
rows = await cursor.fetchall()
await cursor.close()
await db.close()
aiosqlite also replicates most of the advanced features of sqlite3
:
async with aiosqlite.connect(...) as db:
db.row_factory = aiosqlite.Row
async with db.execute('SELECT * FROM some_table') as cursor:
async for row in cursor:
value = row['column']
await db.execute('INSERT INTO foo some_table')
assert db.total_changes > 0
aiosqlite is compatible with Python 3.8 and newer. You can install it from PyPI:
$ pip install aiosqlite
aiosqlite allows interaction with SQLite databases on the main AsyncIO event loop without blocking execution of other coroutines while waiting for queries or data fetches. It does this by using a single, shared thread per connection. This thread executes all actions within a shared request queue to prevent overlapping actions.
Connection objects are proxies to the real connections, contain the shared execution thread, and provide context managers to handle automatically closing connections. Cursors are similarly proxies to the real cursors, and provide async iterators to query results.
aiosqlite is copyright Amethyst Reese, and licensed under the MIT license. I am providing code in this repository to you under an open source license. This is my personal repository; the license you receive to my code is from me and not from my employer. See the LICENSE file for details.