Official unified database wrapper for the Xeze infrastructure.
Project description
xeze-dbr-core
🚀 Automatic Package Release on changes
Official unified database wrapper for the Xeze infrastructure. Provides a single, heavily-abstracted client for PostgreSQL, MongoDB, and Redis over mTLS via HashiCorp Vault.
Installation
pip install git+https://github.com/Xeze-org/xeze-dbr-core.git
Or install locally for development:
pip install .
Quick Start
from xeze_core import XezeCoreClient
db = XezeCoreClient(app_namespace="xms")
db.init_workspace() # Ensures the 'xms_pg' database exists
# Postgres
db.pg_insert("students", {"name": "Ayush", "grade": "A"})
# MongoDB
db.mongo_insert("audit_logs", {"action": "student_added", "timestamp": "2026-04-05"})
# Redis
db.redis_set("cache:student:latest", "Ayush", ttl=300)
Environment Variables
| Variable | Default | Description |
|---|---|---|
VAULT_ADDR |
http://127.0.0.1:8200 |
HashiCorp Vault address |
VAULT_TOKEN |
dev-root-token |
Vault authentication token |
DB_ROUTER_HOST |
db.0.xeze.org:443 |
Database Router gRPC host |
Architecture
- Database-per-Service isolation — each
app_namespacegets its own{ns}_pg,{ns}_mongo, and{ns}:Redis prefix. - Vault mTLS — client certs are fetched from Vault KV at
dbrouter/certsand loaded in-memory only. - gRPC/Protobuf abstraction — all Protobuf packing is handled internally; developers work with native Python dicts.
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
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 xeze_dbr_core-0.1.3.tar.gz.
File metadata
- Download URL: xeze_dbr_core-0.1.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a40b05a2edc03cda9ce91b3007ed03058d3a5d62cac38608a9e0fc0f5ab9ce9
|
|
| MD5 |
1e639b920f391151c8094f1bb2589b27
|
|
| BLAKE2b-256 |
7d6a69a626b6563ac014889a76d98a10b78163fd89ebd5f8392cec93544179ae
|
Provenance
The following attestation bundles were made for xeze_dbr_core-0.1.3.tar.gz:
Publisher:
pypi-publish-core.yml on Xeze-org/Database-Router
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xeze_dbr_core-0.1.3.tar.gz -
Subject digest:
6a40b05a2edc03cda9ce91b3007ed03058d3a5d62cac38608a9e0fc0f5ab9ce9 - Sigstore transparency entry: 1504156742
- Sigstore integration time:
-
Permalink:
Xeze-org/Database-Router@8eedaf3bfcd509a951df75e9527d5cb9c83946fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Xeze-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-core.yml@8eedaf3bfcd509a951df75e9527d5cb9c83946fc -
Trigger Event:
push
-
Statement type:
File details
Details for the file xeze_dbr_core-0.1.3-py3-none-any.whl.
File metadata
- Download URL: xeze_dbr_core-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9c9008956392425e7d9e91572221827732f95441a5a2cf4aa765b8cf98dc30b
|
|
| MD5 |
c966bf92df0632f3b1c50e58df36aa04
|
|
| BLAKE2b-256 |
783167e449d22251a94a1a31eceea3ab3c839874d4746d106392e808ff0b46f5
|
Provenance
The following attestation bundles were made for xeze_dbr_core-0.1.3-py3-none-any.whl:
Publisher:
pypi-publish-core.yml on Xeze-org/Database-Router
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xeze_dbr_core-0.1.3-py3-none-any.whl -
Subject digest:
e9c9008956392425e7d9e91572221827732f95441a5a2cf4aa765b8cf98dc30b - Sigstore transparency entry: 1504156835
- Sigstore integration time:
-
Permalink:
Xeze-org/Database-Router@8eedaf3bfcd509a951df75e9527d5cb9c83946fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Xeze-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-core.yml@8eedaf3bfcd509a951df75e9527d5cb9c83946fc -
Trigger Event:
push
-
Statement type: