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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 492c185d8aabeb22650cef37196b00443fe9b5a750a7b8970824e3e021ab4e2d |
|
MD5 | 2f71c6e335ffb987ab99d8e1c9efcee7 |
|
BLAKE2b-256 | 595d8982ed3ec5b807f65b822637cc1fafd7535d7eed46a15345714e3e753e4f |
Hashes for dbnomics_data_model-0.13.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0951d5de91206f6e9f48bc3b0d1aa1d35ece4742005a8febdabf3deef8fb9473 |
|
MD5 | d7db825d57ac831caaa8a7f3d8bfd084 |
|
BLAKE2b-256 | 908e7eedc1aae32d14cc7fe78459b3317682191c64d34dbcf9fb7aa36ac988ad |