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.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

dbnomics_data_model-0.13.35.tar.gz (49.5 kB view details)

Uploaded Source

Built Distribution

dbnomics_data_model-0.13.35-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dbnomics_data_model-0.13.35.tar.gz
Algorithm Hash digest
SHA256 d83f36ceb8b95e6e83b0655a89689a8d25dd6e1e8d321d53c3b07323a2f86160
MD5 0c7ab8174cd9e3028921a59e367ef8a6
BLAKE2b-256 38c8f3d9b5edd17bed4cc10a5cfb114507c18703154f7ba4f333ead12ef2b044

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dbnomics_data_model-0.13.35-py3-none-any.whl
Algorithm Hash digest
SHA256 f9bd34420fe6fa6d573dc89979af5ecbccfc702cb1d7eff9bc0f46fc8df5c35a
MD5 3281f454f79e8da819c77dce0dac13f7
BLAKE2b-256 179c2d762f44c6e4d3fa2a276b5dbb30ce7c953e01180964b8a1165d6bbbb99c

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