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 details)
Built Distribution
File details
Details for the file anysqlite-0.0.5.tar.gz
.
File metadata
- Download URL: anysqlite-0.0.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dfcf87baf6b93426ad1d9118088c41dbf24ef01b445eea4a5d486bac2755cce |
|
MD5 | 78bf176b8e716d7c12057aa9c53414d7 |
|
BLAKE2b-256 | 0f4bcd5d66b9f87e773bc71344a368b9472987e33514e6627e28342b9c3e7c43 |
File details
Details for the file anysqlite-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: anysqlite-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb345dc4f76f6b37f768d7a0b3e9cf5c700dfcb7a6356af8ab46a11f666edbe7 |
|
MD5 | d66eece644b56740b80c589fb47cf86d |
|
BLAKE2b-256 | 0b31349eae2bc9d9331dd8951684cf94528d91efaa71129dc30822ac111dfc66 |