Skip to main content

xyberos-db

Database plugin — RFC-0019/0020, M9. The DB-agnostic Database contract (connect → list_tables → query → close) with a stdlib SQLite reference plus lazy Postgres / MySQL / DuckDB drivers.

Install

pip install xyberos-db              # from PyPI
pip install xyberos-db[postgres]   # optional drivers
pip install xyberos-db[mysql]
pip install xyberos-db[duckdb]

# development (editable, from this repo):
pip install -e ./db

Usage

from xyberos import create_app
from xyberos_db import DbPlugin

app = create_app()
app.load_plugin(DbPlugin(backend="sqlite"))        # in-memory
# app.load_plugin(DbPlugin(dsn="postgres://user:pass@host/db"))

app.tools.execute("db_list_tables", None)
rows = app.tools.execute("db_query", None, sql="SELECT id, name FROM users")

dsn auto-detects the backend (postgres:// / mysql:// / duckdb:// / anything else → SQLite path). Returns rows as list[dict].

Direct use

from xyberos_db import SqliteDatabase

db = SqliteDatabase("app.db")
db.connect()
print(db.list_tables())
print(db.query("SELECT 1 AS one"))
db.close()

RFC

The contract is specified in RFC-0020-database-plugin-contract.md (the M9 "Core additive RFC").

Tests

pip install pytest
pytest tests/

SQLite is fully tested; driver adapters skip when their driver is absent.

Ship location

Plugin (xyberos.plugins entry point) + RFC-0020 contract — enterprise DBs (M9).

Metadata

Release files for xyberos-db 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xyberos-db 0.1.2
File Size Uploaded Provenance Actions
xyberos_db-0.1.2.tar.gz 6.8 kB With provenance Details for xyberos_db-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xyberos-db 0.1.2
File Interpreter ABI Platform Actions
xyberos_db-0.1.2-py3-none-any.whl Python 3 none any Details for xyberos_db-0.1.2-py3-none-any.whl

Total release size: 13.3 kB

Release files / xyberos_db-0.1.2.tar.gz

Download URL xyberos_db-0.1.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3474633be9b0777fbb0ad98a1d4432075942b2b8e5a640f77b51473557b069e1
BLAKE2b-256 checksum
How to use checksums
bcd9b0e4b5d44cfa6e0302926f0d72cd526514c92fff1c62a9285c7371158650
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / xyberos_db-0.1.2-py3-none-any.whl

Download URL xyberos_db-0.1.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00d1f35342ac5a1855727785a074aa4ee43829a155200343b765e5d486220f35
BLAKE2b-256 checksum
How to use checksums
b1b815b5f65b1b476dcd68fc4d7646f63aec02972d9a85ba464970eae54cd45e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Security for xyberos-db 0.1.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xyberos_db-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page