datapipe-app-0.3.2.dev2
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datapipe-app-0.3.2.dev2 |
| نام | datapipe-app |
| نسخه کتابخانه | 0.3.2.dev2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andrey Tatarinov |
| ایمیل نویسنده | a@tatarinov.co |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/datapipe-app/ |
| مجوز | - |
# datapipe-app
`datapipe-app` implements two aspects to make every [datapipe](https://github.com/epoch8/datapipe) pipeline to work as
an application:
1. REST API + debug UI based of FastAPI
1. `datapipe` CLI tool
## Common usage
Common pattern to use `datapipe-app` is to create `app.py` with the following code:
```
from datapipe_app import DatapipeApp
from pipeline import ds, catalog, pipeline
app = DatapipeApp(ds, catalog, pipeline)
```
Where `pipeline` is a module that defines common elements: `ds`, `catalog` and
`pipeline`.
## REST API + UI
`DatapipeApp` inherits from `FastApi` app and can be started with server like
`uvicorn`.
```
uvicorn app:app
```
### UI

### REST API
API documentation can be found at `/api/v1alpha1/docs` sub URL.
## CLI
`datapipe` CLI tool implements useful operations.
### run
`datapipe run --pipeline app`
Does full run of a specific pipeline.
### table list
`datapipe table list`
Lists all tables in pipeline.
### table reset-metadata
`datapipe table reset-metadata TABLE`
Resets metadata for a specific table: sets `updated_ts`, `processed_ts`, `hash`
to `0`.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.69.0 | fastapi |
| >=0.17.0 | uvicorn[standard] |
| >=7.1.2 | click |
| >=2.1.0,<3.0.0 | termcolor |
| >=0.11.9-alpha.6,<0.12 | datapipe-core |
| ==0.35b0 | opentelemetry-instrumentation-fastapi |
| >=1.3.0,<2.0.0) | opentelemetry-exporter-gcp-trace |
| >=1.8.0,<2.0.0) | opentelemetry-exporter-jaeger |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<3.11 | Python |
نحوه نصب
نصب پکیج whl datapipe-app-0.3.2.dev2:
pip install datapipe-app-0.3.2.dev2.whl
نصب پکیج tar.gz datapipe-app-0.3.2.dev2:
pip install datapipe-app-0.3.2.dev2.tar.gz