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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2dc9c22b4c734adb00bb0597a967593d397aeb20aebb50c1dbc18121b1f493f |
|
MD5 | 1275912ad22d9629cf79f486188cf69a |
|
BLAKE2b-256 | 86c7fcccbade7c915f227e65f9b9d363e4260646e11eb02d32d5552b76eff3f0 |
Hashes for dbnomics_data_model-0.13.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af0859bbf2c26590f71a9486e78f1ccffb0f1dafc9dd1bbae2fe8781bca32eb4 |
|
MD5 | 2c5c09c0a4c47476ef57acf3034d67ae |
|
BLAKE2b-256 | db08252a715c0ca5716190ea23619043638d786b68b10a1ed410ab19024b73ba |