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.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c85e19842d952aeeda406fc464691b14c975db34386216f63e9aa0bc340286 |
|
MD5 | fbf2b96f776df2e536f53a9eb147ac53 |
|
BLAKE2b-256 | 95d5b3adc66cb347edfc45fe6302fa2f587451395f3f98535d4b22c55ebff11f |
Hashes for dbnomics_data_model-0.13.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02b6f6caed1aafa1a8cbc0341bc386625befc4fd0925fc17e36b4442b63445cd |
|
MD5 | 66de758d0f6abe9a63e9702b8bef4527 |
|
BLAKE2b-256 | f2143eadac9b6b6001f12a6c697054cd8691a4a13c80d79aaba4bb73f064dcd9 |