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.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3263647637f3697b9587cf2bac5750466524f0449ada292fb912835ad1afbc4 |
|
MD5 | 73d934699d1e2ee53aefdd2564115c5e |
|
BLAKE2b-256 | f4d7bfce441845adf5ada92dcf8b7113047cfab06e85f7d85d830a80ace85bbe |
Hashes for dbnomics_data_model-0.13.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2483bdea5f28333eb54a3f17a256fbcc56da1778b2f4dae40e80bd74f84b2387 |
|
MD5 | cd6202444eae6f7e3d6b8c1a97ef0f73 |
|
BLAKE2b-256 | 87f4063bba7599d4caa512e4cd857e9815659e9d40422b7f4f8fb14ce1b739c0 |