📂 dbetto
A tiny text-based database.
dbetto is a lightweight Python library that enables seamless access and management of text-based databases (JSON/YAML) scattered across your filesystem. Whether you're handling nested data structures or querying data by validity periods, dbetto simplifies it all with an intuitive interface.
The project was originally developed to efficiently manage metadata for the LEGEND experiment.
Key Features
- Access JSON/YAML files like a Python dictionary
- Attribute-style access with tab-completion for rapid query
- Time-sensitive data querying with validity rules
- Data remapping and grouping functionalities
Showcase
Install from PyPI:
pip install dbetto
Access data arbitrarily structured as JSON or YAML files:
>>> from dbetto import TextDB
>>> db = TextDB("/path/to/data/folder")
>>> db["dir1"]["file1.json"]["value"]
1
>>> db.dir1.file1.value
1
Query data valid on a given time period:
>>> from datetime import datetime
>>> db.on(datetime(2023, 1, 10, 9, 53, 0)).value
3
Map data according to alternative keys:
>>> chmap = db["detectors.yaml"]
>>> chmap.V05266A
{'name': 'V05266A',
'location': {'string': 1, 'position': 4},
'daq': {'crate': 0,
'rawid': 1104003,
...
>>> chmap.map("daq.rawid")[1104003]
{'name': 'V05266A',
'location': {'string': 1, 'position': 4},
'daq': {'crate': 0,
'rawid': 1104003}}
>>> grouped = chmap.group("electronics.cc4.id")["C3"]
>>> grouped.map("name").keys()
dict_keys(['V02160A', 'V02160B', 'V05261B', 'V05266A', 'V05266B', 'V05268B', 'V05612A'])
Have a look at the docs for more!
Claude Code skill
This repo ships a Claude Code skill,
inspect-textdb, that teaches the agent to load, query, and verify dbetto text
databases (JSON/YAML files and time-validity files). Install it from the remote
repo without cloning:
/plugin marketplace add gipert/dbetto
/plugin install inspect-textdb@dbetto-tools
Metadata
Release files for dbetto 1.4.2
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 |
|---|---|---|---|---|
| dbetto-1.4.2.tar.gz | 39.0 kB | With provenance | Details for dbetto-1.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbetto-1.4.2-py3-none-any.whl | Python 3 | none | any | Details for dbetto-1.4.2-py3-none-any.whl |
Total release size: 59.6 kB
Release files / dbetto-1.4.2.tar.gz
| Download URL | dbetto-1.4.2.tar.gz |
|---|---|
| Size | 39.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a239d73e3fe251ae45a7a18165e5fa01847637ce64189fae7bef6765bec39985
|
|
BLAKE2b-256 checksum How to use checksums |
2d6e65ddcf95d0221fdbc4dd6238ea21c758a230985c322add8e2bf6ac1b8584
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 1, 2026.
Transparency logRelease files / dbetto-1.4.2-py3-none-any.whl
| Download URL | dbetto-1.4.2-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efa88d3f986cb3a1000828a327ae8a627d1c424508048e122753103d7cec665e
|
|
BLAKE2b-256 checksum How to use checksums |
dd4dfbaa75c882e5b4004a9a3d4ce414c0dba987e4823ffbb0383ba382dbecbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 1, 2026.
Transparency logSecurity for dbetto 1.4.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
Both files in this release have been uploaded with provenance metadata.
Attestation for dbetto-1.4.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 Nov 1, 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.