dbnomics-fetcher-ops-0.5.4
توضیحات
Manage DBnomics fetchers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dbnomics-fetcher-ops-0.5.4 |
| نام | dbnomics-fetcher-ops |
| نسخه کتابخانه | 0.5.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Christophe Benz |
| ایمیل نویسنده | christophe.benz@nomics.world |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dbnomics-fetcher-ops/ |
| مجوز | AGPL-3.0-or-later |
# DBnomics fetcher ops
Manage DBnomics fetchers: list, configure and run pipelines.
## Install
```bash
pip install dbnomics-fetcher-ops[cli]
```
## Usage
### Configure a fetcher
The configure command needs write privileges. Create a GitLab [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) having the `api` scope, and pass it using the `--gitlab-private-token` option or the `GITLAB_PRIVATE_TOKEN` environment variable in `~/.config/dbnomics/dbnomics-fetchers.env`.
```bash
dbnomics-fetchers -v configure scsmich --dry-run
# If everything seems OK, remove the --dry-run flag:
dbnomics-fetchers -v configure scsmich
```
### List fetchers
```bash
dbnomics-fetchers -v list
```
### Run fetcher pipelines
```bash
# Replace PROVIDER_SLUG by the real value:
dbnomics-fetchers -v run --provider-slug PROVIDER_SLUG
# To run a pipeline for each fetcher:
dbnomics-fetchers -v list --slug | xargs -I {} dbnomics-fetchers -v run --provider-slug {}
```
## Development
Install [Poetry](https://python-poetry.org/).
```bash
# git clone repo or fork
cd dbnomics-fetcher-ops
poetry install
cp .env.example .env
```
Run commands with:
```bash
poetry shell
dbnomics-fetchers COMMAND
```
نیازمندی
| مقدار | نام |
|---|---|
| >=3.11.0,<4.0.0 | python-gitlab |
| >=0.7.0,<0.8.0 | typer[all] |
| >=3.0.1,<4.0.0 | daiquiri |
| >=0.20.0,<0.21.0 | validators |
| >=0.21.0,<0.22.0 | python-dotenv |
| >=2.24.0,<3.0.0 | requests |
| >=1.8.1,<2.0.0 | pydantic |
| >=1.1.13,<2.0.0 | dbnomics-solr |
| >=5.1.1,<6.0.0 | xdg |
| >=6.0,<7.0 | PyYAML |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl dbnomics-fetcher-ops-0.5.4:
pip install dbnomics-fetcher-ops-0.5.4.whl
نصب پکیج tar.gz dbnomics-fetcher-ops-0.5.4:
pip install dbnomics-fetcher-ops-0.5.4.tar.gz