Provide classes for DBnomics entities and a storage abstraction
Project description
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
).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dbnomics-data-model-0.13.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d7f95e3741fadf0a2218e19ddda6fbac92b0d32a5d6dc39783a83b3a8ca157a |
|
MD5 | 66ef59afae2277c8faff487b908bb191 |
|
BLAKE2b-256 | 7ac909c6c6aee793efd38477d57d99183bc6a412211ccb54e0cc69f2c18d03f6 |
Hashes for dbnomics_data_model-0.13.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccdc4b928df2f39d8f15843de7a283bca05d572daa9023a965bd73db0c3c1da8 |
|
MD5 | 0adfd14847f2d0e68917498583d64bc6 |
|
BLAKE2b-256 | e7ed0180b54818d1f17466993f98221212418e8a059813ec5b6dc23ac4c59948 |