Define, validate and transform DBnomics data
Reason this release was yanked:
Sub-packages are missing (`model`, `storage`)
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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d20ebf12ba217e29321251dc49d9a8c1bdd3a838bedb2948b45011b3cd5a63 |
|
MD5 | 7e587e7e594a3ab2d30ee0126e80ad37 |
|
BLAKE2b-256 | 16cd9085272fe797633177c259f423f331a831223097ac45572d648f72534d12 |
Hashes for dbnomics_data_model-0.13.21-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae883da78c3bd19d2486affca2d982b863074601e2b8fd0d3d2bdd5e85ef87d2 |
|
MD5 | c648bccaff0d4788f6f975a3c40c940a |
|
BLAKE2b-256 | a3d116f53abe8d2c5d3680abf2c1d676ff16d069192e311a5982c4c12fbdde68 |