Client library for running Prefect Cloud flows in Saturn Cloud
Project description
prefect-saturn
prefect-saturn
is a Python package that makes it easy to run Prefect Cloud flows on a Dask cluster with Saturn Cloud.
Getting Started
import prefect
from prefect import Flow, task
from prefect_saturn import PrefectCloudIntegration
@task
def hello_task():
logger = prefect.context.get("logger")
logger.info("hello prefect-saturn")
flow = Flow("sample-flow", tasks=[hello_task])
project_name = "sample-project"
integration = PrefectCloudIntegration(
prefect_cloud_project_name=project_name
)
flow = integration.register_flow_with_saturn(flow)
flow.register(
project_name=project_name,
labels=["saturn-cloud"]
)
Installation
prefect-saturn
is available on PyPi.
pip install prefect-saturn
prefect-saturn
can be installed directly from GitHub
pip install git+https://github.com/saturncloud/prefect-saturn.git@main
Contributing
See CONTRIBUTING.md
for documentation on how to test and contribute to prefect-saturn
.
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
prefect-saturn-0.1.0.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file prefect-saturn-0.1.0.tar.gz
.
File metadata
- Download URL: prefect-saturn-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72b5470602698210918c868005732046982b729a117e296ddd4a97b53b0b380e |
|
MD5 | dec692fbf584242ad45e2c97828bcd5e |
|
BLAKE2b-256 | 37065d719dfc056826c6e468fa6841d42f6caa09208ada63a38f1bda6350a868 |
File details
Details for the file prefect_saturn-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: prefect_saturn-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d56144d1fcd27b63bd96055400a322d6962089bfcbe91c4997c645a1350d95f |
|
MD5 | 0d44f47fcca7b1ce191a9756ac62aa37 |
|
BLAKE2b-256 | f0f9f8373ae0c92c28d5b5d9eabb05abbced7868306b344993286223484899ef |