Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 736 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 736 Bytes

anysqlite

Anysqlite provides an async/await interface to the standard sqlite3 library and supports both trio and asyncio backends using the power of Anyio.

PyPI - Version PyPI - Python Version


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',)]