typedb_utils
typedb_utils is the reusable, non-ROS TypeDB 3 Python layer extracted from
the ros_typedb repository.
It provides:
TypeDBInterfacefor connecting to TypeDB, loading schema/data, and running define/insert/delete/fetch/get/aggregate queries- helper functions for converting Python values to TypeQL literals and building common query fragments
This package is still kept inside the same monorepo so it can be built with
colcon together with ros_typedb, but it has no ROS runtime dependencies.
Example:
from typedb_utils.typedb_interface import TypeDBInterface
db = TypeDBInterface(
'localhost:1729',
'example_db',
schema_path=['/abs/path/schema.tql'],
data_path=['/abs/path/data.tql'],
force_database=True,
)
rows = db.fetch_database(
"""
match
$p isa person;
fetch { "email": $p.email };
"""
)
Packaging
typedb_utils is both an ament_python workspace package and a standard
Python distribution. You can build it locally with:
cd typedb_utils
python3 -m pip install --upgrade build twine
python3 -m build
python3 -m twine check dist/*
The repository also includes GitHub Actions workflow
publish-typedb-utils.yml,
which builds the package from the typedb_utils/ subdirectory and publishes it
to PyPI via Trusted Publishing on tags matching typedb_utils-v*.
Release flow:
- bump the version in
typedb_utils/setup.pyandtypedb_utils/package.xml - push the commit to
main - create and push a matching tag such as
typedb_utils-v0.1.0 - ensure the PyPI project is configured with this GitHub workflow as a Trusted Publisher
Metadata
Release files for typedb-utils 0.1.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 |
|---|---|---|---|---|
| typedb_utils-0.1.2.tar.gz | 16.6 kB | With provenance | Details for typedb_utils-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typedb_utils-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for typedb_utils-0.1.2-py3-none-any.whl |
Total release size: 29.8 kB
Release files / typedb_utils-0.1.2.tar.gz
| Download URL | typedb_utils-0.1.2.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7aa987e1a0a5979fb7e31e6851117f5082ee2186ee7169407e3d5a1e320e7b6a
|
|
BLAKE2b-256 checksum How to use checksums |
2aa8bb7cc21ef5552faa7976ae5def85932684a93bbf57243b3f88e02e6eb4c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 9, 2026.
Transparency logRelease files / typedb_utils-0.1.2-py3-none-any.whl
| Download URL | typedb_utils-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ae22c964d3765a941e4734217ceeeee3d90c40e6ca76fad7f035da2aa05a1eb
|
|
BLAKE2b-256 checksum How to use checksums |
59a8acaa72c67a50a01fd64cec6abd63ad98a8dddeadf5915c8b90253de66a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 9, 2026.
Transparency logSecurity for typedb-utils 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
Both files in this release have been uploaded with provenance metadata.
Attestation for typedb_utils-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 Apr 9, 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.