d1-client
d1-client is a naive synchronous and asynchronous Python client for the Cloudflare D1 database API.
Installation
pip install d1-client
Usage
Synchronous client:
from d1_client import D1Client
client = D1Client(account_id="your_account_id", api_token="your_api_token")
resp = client.list_db()
print(resp.success, resp.result)
client.close()
Asynchronous client:
import asyncio
from d1_client import AsyncD1Client
async def main() -> None:
client = AsyncD1Client(account_id="your_account_id", api_token="your_api_token")
resp = await client.list_db()
print(resp.success, resp.result)
await client.aclose()
asyncio.run(main())
Metadata
Release files for d1-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| d1_client-0.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| d1_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / d1_client-0.1.0.tar.gz
| Download URL | d1_client-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e01ef6d7c3294ae0863ad1e6e7b51cb865db0c9e583f71e04fa1e0f22e4c3ac
|
|
BLAKE2b-256 checksum How to use checksums |
4fc4a6149ea5a72d3772d3aebb5d94468cc4d3d12e65fb959840e32bc2c0922c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / d1_client-0.1.0-py3-none-any.whl
| Download URL | d1_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34ecd0a296ab76eef01edc840cb7ffda47b15cf43296feaa4d75e609c6b9e94a
|
|
BLAKE2b-256 checksum How to use checksums |
0bfa3e8952c9055f615587914ba580fe498feab032348586a2aa0b879f9a170b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|