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.25.tar.gz (48.7 kB view details)

Uploaded Source

Built Distribution

dbnomics_data_model-0.13.25-py3-none-any.whl (62.9 kB view details)

Uploaded Python 3

File details

Details for the file dbnomics-data-model-0.13.25.tar.gz.

File metadata

  • Download URL: dbnomics-data-model-0.13.25.tar.gz
  • Upload date:
  • Size: 48.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.10.0-12-amd64

File hashes

Hashes for dbnomics-data-model-0.13.25.tar.gz
Algorithm Hash digest
SHA256 f305fa5933c444b9426ab38cf7f700bd50bc06cda0383ac1005772a97f034279
MD5 b939e2919fa0e9b3151322fc61ca602e
BLAKE2b-256 a48dba2e1be82863d5c0a3bbf9972e6ee4149c96de32ab7ccd8975f03474f4b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dbnomics_data_model-0.13.25-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f4b7a9ad860a502adee13f00b499fcc59decd9a5e5f68bc1c39f74215c63cd
MD5 b6a858eadc6575958c145808ac8c7c99
BLAKE2b-256 413ef003eb9c28ab73c94194cf5b0ba62969ffb6910360eb8ab6959c7f813833

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