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://code.xeze.org/xeze/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.2.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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file xeze_dbr_core-0.1.2.tar.gz.

File metadata

  • Download URL: xeze_dbr_core-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 cce1a3ee0fa68248c52a68b2db532216df01349acfbda7dcaa55fe27ab439a6f
MD5 a159a216126ece4afdef5da73f0991e0
BLAKE2b-256 4f4ef6b4cec5f3648fec4d94e3f363ff3e39e44665567168e63bdc22a10bdcf7

See more details on using hashes here.

Provenance

The following attestation bundles were made for xeze_dbr_core-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: xeze_dbr_core-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58644c307674bc6072d655468a2f8ec613deb9940963d3457dc6624ea2119dd8
MD5 952f998bb5481d49104028eb827b71bf
BLAKE2b-256 cc04a6455f96482fdaf58fd9f6a78bda09b4b6d2b341e4cc6c7d15886568d5f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for xeze_dbr_core-0.1.2-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