Skip to main content

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_namespace gets its own {ns}_pg, {ns}_mongo, and {ns}: Redis prefix.
  • Vault mTLS — client certs are fetched from Vault KV at dbrouter/certs and 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

xeze_dbr_core-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

xeze_dbr_core-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for xeze_dbr_core-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6a40b05a2edc03cda9ce91b3007ed03058d3a5d62cac38608a9e0fc0f5ab9ce9
MD5 1e639b920f391151c8094f1bb2589b27
BLAKE2b-256 7d6a69a626b6563ac014889a76d98a10b78163fd89ebd5f8392cec93544179ae

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for xeze_dbr_core-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c9008956392425e7d9e91572221827732f95441a5a2cf4aa765b8cf98dc30b
MD5 c966bf92df0632f3b1c50e58df36aa04
BLAKE2b-256 783167e449d22251a94a1a31eceea3ab3c839874d4746d106392e808ff0b46f5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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