Skip to main content

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-hypernode.com/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

dbnomics_data_model-0.13.32.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

dbnomics_data_model-0.13.32-py3-none-any.whl (63.1 kB view details)

Uploaded Python 3

File details

Details for the file dbnomics_data_model-0.13.32.tar.gz.

File metadata

  • Download URL: dbnomics_data_model-0.13.32.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.10.0-14-amd64

File hashes

Hashes for dbnomics_data_model-0.13.32.tar.gz
Algorithm Hash digest
SHA256 628e043919707428916832268aeb280c7148c79f71d2ff3fc782d3983c31f166
MD5 6964891f990fbab33e0dd50a385fb416
BLAKE2b-256 182eb0590735351ac1c101e32e59493f83752ad319d3d4e0564a0b81b788feb3

See more details on using hashes here.

File details

Details for the file dbnomics_data_model-0.13.32-py3-none-any.whl.

File metadata

File hashes

Hashes for dbnomics_data_model-0.13.32-py3-none-any.whl
Algorithm Hash digest
SHA256 4c24c61be36379141fba0c62cad82df07e37cd1983a500bd0a2d401377bbc1ef
MD5 e681c95269ad65c70efa15fe264a5526
BLAKE2b-256 eb6c1174d9415c4d445c7eeb409adf6bcd6bc9f225c14b00d15493d4e8824b75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page