dagster-hex-0.1.2
توضیحات
Dagster library for Hex
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dagster-hex-0.1.2 |
| نام | dagster-hex |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Pedram Navid |
| ایمیل نویسنده | pedram@pedramnavid.com |
| آدرس صفحه اصلی | https://github.com/hex-inc/dagster-hex |
| آدرس اینترنتی | https://pypi.org/project/dagster-hex/ |
| مجوز | Apache License 2.0 |
# Hex Dagster Library
### Installation
To install the library, use pip alongside your existing Dagster environment.
```bash
pip install dagster_hex
```
### Configuration
First, you'll need to specify your Hex API Token key as a resource.
```python
# resources.py
from dagster_hex.resources import hex_resource
import os
API_KEY = os.getenv['DAGSTER_PROD_API']
my_resource = hex_resource.configured({'api_key': API_KEY})
```
### Ops
The `hex_project_op` will call the Hex API to run a project until it completes.
```python
from dagster_hex.resources import hex_resource
from dagster import job
from dagster_hex.ops import hex_project_op
API_KEY = 'abc123'
PROJ_ID = 'i-love-uuids'
my_resource = hex_resource.configured({'api_key': API_KEY})
run_hex_op = hex_project_op.configured({"project_id": PROJ_ID},
name='run_job')
@job(resource_defs={"hex": my_resource})
def hex_job():
run_hex_op()
```
### Asset Materializations
Ops will return an `AssetMaterialization` with the following keys:
```
run_url
run_status_url
trace_id
run_id
elapsed_time
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0 | dagster |
| - | dagit |
| >=2 | requests |
| >=0.8 | mypy |
| - | pytest |
| - | pre-commit |
| - | flake8 |
| - | isort |
| - | types-requests |
| - | black |
| - | pytest-mock |
| - | requests-mock |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl dagster-hex-0.1.2:
pip install dagster-hex-0.1.2.whl
نصب پکیج tar.gz dagster-hex-0.1.2:
pip install dagster-hex-0.1.2.tar.gz