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.1
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 |
|---|---|---|---|---|
| xyberos_db-0.1.1.tar.gz | 6.8 kB | With provenance | Details for xyberos_db-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xyberos_db-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for xyberos_db-0.1.1-py3-none-any.whl |
Total release size: 13.3 kB
Release files / xyberos_db-0.1.1.tar.gz
| Download URL | xyberos_db-0.1.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa6b2f6088064cb2db1014d32ad74bfdf62835090100abd634c139bb1fdc7248
|
|
BLAKE2b-256 checksum How to use checksums |
605771904bec3f51f6047bfe72c3bc4227c8df69e384fddf36de3f74e6ab3b1c
|
| 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 Sep 16, 2026.
Transparency logRelease files / xyberos_db-0.1.1-py3-none-any.whl
| Download URL | xyberos_db-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af56eecb92ed02017e9216bddcfcb83342b191e541c86a892e6d93fb57ace9f7
|
|
BLAKE2b-256 checksum How to use checksums |
3ac47551df7a972d214bfca3b723519cc32c1fd72ab55e657bd55ce48defa2fb
|
| 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 Sep 16, 2026.
Transparency logSecurity for xyberos-db 0.1.1
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.
Attestation for xyberos_db-0.1.1.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 Sep 16, 2026.
Transparency logA 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.