No project description provided
Project description
anysqlite
Anysqlite provides an async/await
interface to the standard sqlite3
library and supports both trio
and asyncio
backends using the power of Anyio.
Installation
pip install anysqlite
Basic usage
>>> import anysqlite
>>>
>>> conn = await anysqlite.connect(":memory:")
>>> cursor = await conn.execute("SELECT DATETIME()")
>>>
>>> response = await cursor.fetchone()
>>> print(response)
[('2023-10-02 13:42:42',)]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
anysqlite-0.0.5.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for anysqlite-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb345dc4f76f6b37f768d7a0b3e9cf5c700dfcb7a6356af8ab46a11f666edbe7 |
|
MD5 | d66eece644b56740b80c589fb47cf86d |
|
BLAKE2b-256 | 0b31349eae2bc9d9331dd8951684cf94528d91efaa71129dc30822ac111dfc66 |