A Python sync/async client for the Cloudflare D1 database API
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
d1_client-0.1.0.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file d1_client-0.1.0.tar.gz.
File metadata
- Download URL: d1_client-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e01ef6d7c3294ae0863ad1e6e7b51cb865db0c9e583f71e04fa1e0f22e4c3ac
|
|
| MD5 |
8f0992e7c7a89f59334a2697538bc756
|
|
| BLAKE2b-256 |
4fc4a6149ea5a72d3772d3aebb5d94468cc4d3d12e65fb959840e32bc2c0922c
|
File details
Details for the file d1_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: d1_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34ecd0a296ab76eef01edc840cb7ffda47b15cf43296feaa4d75e609c6b9e94a
|
|
| MD5 |
1567122c9495d9dd1dc6a64f44e668e9
|
|
| BLAKE2b-256 |
0bfa3e8952c9055f615587914ba580fe498feab032348586a2aa0b879f9a170b
|