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
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
brickbed-0.1.0.tar.gz
(5.0 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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f0584f66b2b2f1ed11bb13de6cce391a190a12c8df08d88267a14e5bfe42b19
|
|
| MD5 |
3aa16b3ca268fe7326920ba8149467a4
|
|
| BLAKE2b-256 |
de6f42e84b7d50dcf976f185bd4e37b33c26da8198257a280dc45936e3f3ec2a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1730f561363cdf4f7554ca81539290bbc122495366687b71e0787e214852395
|
|
| MD5 |
732a19205538fe5ca21c3365ff4bf1ea
|
|
| BLAKE2b-256 |
8066f37ab7c9ae20310ddf474895f9d74bba4f4cc059ef9d6b4ec1f26831e3df
|