Skip to main content

AIO CF D1

A simple asyncio wrapper for Cloudflare D1's REST API. It does nothing but query SQL.

Install

pip install aiocfd1

Usage

from aiocfd1 import D1
import asyncio
# Get these credentials from cloudflare dashboard!
db = D1("account id", "token", "database id")
async def test():
    result = await db.execute("SELECT * FROM table; SELECT * FROM table WHERE something = 'test';")
    print(result)

asyncio.run(test())

Output

[
    [
        {
            "something": "lorem",
            "foo": "bar"
        },
        {
            "something": "test",
            "foo": "baz"
        },
        {
            "something": "abc",
            "foo": "qux"
        }
    ],
    [
        {
            "something": "test",
            "foo": "baz"
        }
    ]
]

Metadata

Release files for aiocfd1 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiocfd1 1.0.0
File Size Uploaded
aiocfd1-1.0.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiocfd1 1.0.0
File Interpreter ABI Platform
aiocfd1-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / aiocfd1-1.0.0.tar.gz

Download URL aiocfd1-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9c43c3c467bbf71c4df1a805e6c43b9b66156db9361174ccce475f9d3edd9f5d
BLAKE2b-256 checksum
How to use checksums
c3be752777ece9d988d97ba7fbcdba1f8a1bfc79d9614c7cb17b3dea2d60f303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release files / aiocfd1-1.0.0-py3-none-any.whl

Download URL aiocfd1-1.0.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d5ae42509963646ea89d43d5cbaee834bbfe71de82008c6d4cd7015e3d83ffc
BLAKE2b-256 checksum
How to use checksums
ce61a4054adc43b167a43c3a2231c23ac0a7fc0a1628ce34ef135f00c33215d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page