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.4.2.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file prefect-saturn-0.4.2.tar.gz
.
File metadata
- Download URL: prefect-saturn-0.4.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ede75e59bd6e6cf0aedfb3e997e34469902ca799f3e31b05490b4e62cfe061c |
|
MD5 | 1660546a8d5d43b9b293d249385bb408 |
|
BLAKE2b-256 | 205e26949cb2cf8d4ebb67508f2c5afa1bbbc3ba197e73c38ec07181d2a26a17 |
File details
Details for the file prefect_saturn-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: prefect_saturn-0.4.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf010f26a90195b2fb8a1d5b401a37641160d241e475716dacc29ec23773cb0 |
|
MD5 | 81e85271dce79aba2da1032dd1d3c040 |
|
BLAKE2b-256 | 9a04dc20be46496f8c41bad66b6491c5331cd0ef27b8e081261b5b514228c062 |