edgebase-admin
Server-only Python admin SDK for EdgeBase.
Use edgebase-admin from trusted environments that hold a Service Key, such as backend APIs, cron jobs, workers, and operational tooling. It exposes admin auth, service-key database access, storage management, raw SQL, functions, analytics, push, and native Cloudflare resources.
If you want the broader umbrella package that also includes the higher-level EdgeBaseServer entry point and room helpers, use edgebase from this repository or your internal build flow. The current public PyPI install path is edgebase-admin.
EdgeBase is the open-source edge-native BaaS that runs on Edge, Docker, and Node.js.
This package is one part of the wider EdgeBase platform. For the full platform, CLI, Admin Dashboard, server runtime, docs, and all public SDKs, see the main repository: edge-base/edgebase.
Documentation Map
Use this README for the fast overview, then jump into the docs when you need depth:
- SDK Overview Install commands and language matrix for all public SDKs
- Admin SDK Service-key concepts, trust boundaries, and admin-only capabilities
- Admin SDK Reference Cross-language auth, database, storage, functions, and push examples
- Admin User Management Create, update, delete, and manage users with the Service Key
- Database Admin SDK Table queries, filters, pagination, batch writes, and raw SQL
- Storage Uploads, downloads, metadata, and signed URLs
- Analytics Admin SDK Request metrics, event tracking, and event queries
- Push Admin SDK Push send, topic broadcast, token inspection, and logs
- Native Resources KV, D1, Vectorize, and other edge-native resources
For AI Coding Assistants
This package includes an llms.txt file for AI-assisted development.
Use it when you want an agent or code assistant to:
- use the right Python admin method signatures
- remember which surfaces are properties vs methods
- avoid copying JavaScript or Go API shapes into Python
- choose
edgebase-admininstead of the broaderedgebasepackage when only admin features are needed
You can find it:
- in this repository: llms.txt
- in your environment after install, inside the
edgebase_adminpackage directory asllms.txt
Installation
pip install edgebase-admin
Quick Start
import os
from edgebase_admin import create_admin_client
admin = create_admin_client(
"https://your-project.edgebase.fun",
service_key=os.environ["EDGEBASE_SERVICE_KEY"],
)
users = admin.admin_auth.list_users(limit=20)
posts = (
admin.db("shared")
.table("posts")
.where("published", "==", True)
.order_by("createdAt", "desc")
.limit(10)
.get_list()
)
rows = admin.sql(
"shared",
None,
"SELECT COUNT(*) AS total FROM posts WHERE published = ?",
[1],
)
bucket = admin.storage().bucket("avatars")
signed = bucket.create_signed_url("user-1.jpg", expires_in="1h")
print(len(users.get("users", [])), len(posts.items), rows, signed.url)
Core API
AdminClient(base_url, service_key=...)Main admin entry pointcreate_admin_client(base_url, service_key=...)Convenience helper matching the public docsadmin.admin_authAdmin user managementadmin.db(namespace="shared", instance_id=None).table(name)Service-key database accessadmin.storage()Storage bucket accessadmin.sql(namespace="shared", instance_id=None, query="", params=None)Raw SQLadmin.functions()Call app functions from trusted codeadmin.analytics()Query request metrics and track custom eventsadmin.push()Send push notifications and inspect logsadmin.kv(namespace),admin.d1(database),admin.vector(index)/admin.vectorize(index)Native Cloudflare resources
Requirements
- Python
3.10+ edgebase-core>=0.2.9,<0.3.0- A valid EdgeBase Service Key
Metadata
Release files for edgebase-admin 0.2.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edgebase_admin-0.2.9.tar.gz | 14.9 kB | Without provenance | Details for edgebase_admin-0.2.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edgebase_admin-0.2.9-py3-none-any.whl | Python 3 | none | any | Details for edgebase_admin-0.2.9-py3-none-any.whl |
Total release size: 35.2 kB
Release files / edgebase_admin-0.2.9.tar.gz
| Download URL | edgebase_admin-0.2.9.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d970c681efa035aee33829c92d1ebb3b53e93dd93018863f2193f9b4882b4f21
|
|
BLAKE2b-256 checksum How to use checksums |
8ab961215f740b432ba6f3af5fbc5d56a7af7793b1073761442d9473f94f2720
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / edgebase_admin-0.2.9-py3-none-any.whl
| Download URL | edgebase_admin-0.2.9-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3b8e427670813c563cbd64d1a65d1b3bf2643e5c0aab2d672c8936ce9bb21b3
|
|
BLAKE2b-256 checksum How to use checksums |
c8c72545d32f194322d191f765d125a3cf04cfbcd07641da0de004e12047f357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for edgebase-admin 0.2.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.