DBnomics Data Model
In DBnomics, once data has been downloaded from providers, it is converted in a common format: the DBnomics data model.
This Python package provides:
- model classes defining DBnomics entities (provider, dataset, series, etc.) with their business logic and validation rules
- a data storage abstraction to load and save those entities
- adapters implementing the data storage abstraction (e.g.
dbnomics_data_model.storage.adapters.filesystem)
This package is used in particular by the convert script of fetchers in order to save data.
Documentation
Please read https://db.nomics.world/docs/data-model/
Validate data
To validate a directory containing data written by (or compatible with) the "filesystem" adapter:
dbnomics-validate-storage <storage_dir>
This script outputs the data validation errors it finds.
Run tests
To run unit tests:
pytest
Code quality:
flake8 .
See also: https://git.nomics.world/dbnomics-fetchers/documentation/wikis/code-style
Publish a new version
For package maintainers:
git tag x.y.z
git push
git push --tags
GitLab CI will publish the package to https://pypi.org/project/dbnomics-data-model/ (see .gitlab-ci.yml).
Release files for dbnomics-data-model 0.13.35
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dbnomics_data_model-0.13.35.tar.gz | 49.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbnomics_data_model-0.13.35-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 113.4 kB
Release files / dbnomics_data_model-0.13.35.tar.gz
| Download URL | dbnomics_data_model-0.13.35.tar.gz |
|---|---|
| Size | 49.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d83f36ceb8b95e6e83b0655a89689a8d25dd6e1e8d321d53c3b07323a2f86160
|
|
BLAKE2b-256 checksum How to use checksums |
38c8f3d9b5edd17bed4cc10a5cfb114507c18703154f7ba4f333ead12ef2b044
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.12 Linux/5.10.0-14-amd64
|
Release files / dbnomics_data_model-0.13.35-py3-none-any.whl
| Download URL | dbnomics_data_model-0.13.35-py3-none-any.whl |
|---|---|
| Size | 63.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9bd34420fe6fa6d573dc89979af5ecbccfc702cb1d7eff9bc0f46fc8df5c35a
|
|
BLAKE2b-256 checksum How to use checksums |
179c2d762f44c6e4d3fa2a276b5dbb30ce7c953e01180964b8a1165d6bbbb99c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.12 Linux/5.10.0-14-amd64
|