dtreg
100% AI-free: we did not use any AI technologies in developing this package.
The goal of dtreg is to help users interact with various data type registries (DTRs) and create machine-readable data. Currently, we support the ePIC and ORKG DTRs.
- First, load a DTR schema (an ePIC datatype or an ORKG template) as a Python object.
- Then, create a new instance of the schema by filling in the relevant fields.
- Finally, write the instance as a machine-readable JSON-LD file.
Installation
## install from PyPi:
pip install dtreg
Example
This example shows you how to work with a DTR schema. You need to know the schema identifier; see the help page.
## import functions from the dtreg
from dtreg.load_datatype import load_datatype
from dtreg.to_jsonld import to_jsonld
## import pandas for a dataframe
import pandas as pd
## load the schema with the known identifier
dt = load_datatype("https://doi.org/21.T11969/aff130c76e68ead3862e")
## look at the schemata you might need to use
dt.__dict__.keys()
## check available fields for your schema
dt.data_item.prop_list
## create your instance by filling the fields of your choice
## see the help page to know more about the fields
my_label = "my results"
my_df = pd.DataFrame({'A': [1], 'B': [2]})
my_df.name = "dataframe_name"
url_1 = dt.url(label = "URL_1")
url_2 = dt.url(label = "URL_2")
my_inst = dt.data_item(label=my_label,
has_expression=[url_1, url_2],
source_table=my_df)
## write the instance in JSON-LD format as a string
my_json = to_jsonld(my_inst)
## the result can be saved as a JSON file
with open('my_file.json', 'w') as f:
f.write(my_json)
For more information, please see the help page.
Metadata
Release files for dtreg 1.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 |
|---|---|---|---|---|
| dtreg-1.1.2.tar.gz | 19.7 kB | With provenance | Details for dtreg-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dtreg-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for dtreg-1.1.2-py3-none-any.whl |
Total release size: 53.0 kB
Release files / dtreg-1.1.2.tar.gz
| Download URL | dtreg-1.1.2.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b9b75e9bd56c4c023cf14e4f9aed1b639a373ec90757b40a05e32e9e0d558b2
|
|
BLAKE2b-256 checksum How to use checksums |
90a7c4a2cf5b0b9388254d7e4ba0ab28c8166ec293e56b3d433af4233ef9ce88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 22, 2025.
Transparency logRelease files / dtreg-1.1.2-py3-none-any.whl
| Download URL | dtreg-1.1.2-py3-none-any.whl |
|---|---|
| Size | 33.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43590d849f4a15ebd685085f41035dba3e79cdff6e8e613e0e4a8522da3ee8b6
|
|
BLAKE2b-256 checksum How to use checksums |
8f295883b11cf6482f148d77188e0ce8cb1307eaee92460a2cd00930302bad9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 22, 2025.
Transparency logSecurity for dtreg 1.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.
Attestation for dtreg-1.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 Nov 22, 2025.
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.