Skip to main content

Python client for Brickbed - the document database built for distributed edge apps

Project description

brickbed

Python client for Brickbed - the document database built for distributed edge apps.

Coming Soon

Brickbed is currently on waitlist. Visit brickbed.com to get notified when it's ready.

Installation

pip install brickbed
# or
uv add brickbed

Usage

from brickbed import createClient

db = createClient(
    endpoint=os.environ["BRICKBED_ENDPOINT"],
    api_key=os.environ["BRICKBED_API_KEY"],
)

# Insert a document
post = await db.collection("posts").insert({
    "title": "Hello World",
    "content": "My first post",
})

# Get a document
fetched = await db.collection("posts").get(post["_id"])

# List documents
result = await db.collection("posts").list(limit=10)

License

MIT

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

brickbed-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brickbed-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file brickbed-0.1.0.tar.gz.

File metadata

  • Download URL: brickbed-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brickbed-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f0584f66b2b2f1ed11bb13de6cce391a190a12c8df08d88267a14e5bfe42b19
MD5 3aa16b3ca268fe7326920ba8149467a4
BLAKE2b-256 de6f42e84b7d50dcf976f185bd4e37b33c26da8198257a280dc45936e3f3ec2a

See more details on using hashes here.

File details

Details for the file brickbed-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: brickbed-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brickbed-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1730f561363cdf4f7554ca81539290bbc122495366687b71e0787e214852395
MD5 732a19205538fe5ca21c3365ff4bf1ea
BLAKE2b-256 8066f37ab7c9ae20310ddf474895f9d74bba4f4cc059ef9d6b4ec1f26831e3df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page