dbnomics-data-model-0.13.9
توضیحات
Provide classes for DBnomics entities and a storage abstraction
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dbnomics-data-model-0.13.9 |
| نام | dbnomics-data-model |
| نسخه کتابخانه | 0.13.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DBnomics Team |
| ایمیل نویسنده | contact@nomics.world |
| آدرس صفحه اصلی | https://git.nomics.world/dbnomics/dbnomics-data-model |
| آدرس اینترنتی | https://pypi.org/project/dbnomics-data-model/ |
| مجوز | AGPL-3.0-or-later |
# 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:
```sh
dbnomics-validate-storage <storage_dir>
```
This script outputs the data validation errors it finds.
## Run tests
To run unit tests:
```sh
pytest
```
Code quality:
```sh
flake8 .
```
See also: <https://git.nomics.world/dbnomics-fetchers/documentation/wikis/code-style>
## Publish a new version
For package maintainers:
```bash
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`](./.gitlab-ci.yml)).
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0.1,<4.0.0 | daiquiri |
| >=2.2.5,<3.0.0 | dirsync |
| >=4.4.0,<5.0.0 | jsonschema |
| >=3.6.7,<4.0.0 | orjson |
| >=1.9.0,<2.0.0 | pydantic |
| >=4.0.3,<5.0.0 | pysimdjson |
| >=2.8.2,<3.0.0 | python-dateutil |
| >=0.11.2,<0.12.0 | toolz |
| >=0.7.0,<0.8.0 | typer[all] |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl dbnomics-data-model-0.13.9:
pip install dbnomics-data-model-0.13.9.whl
نصب پکیج tar.gz dbnomics-data-model-0.13.9:
pip install dbnomics-data-model-0.13.9.tar.gz