Skip to main content

Client library for running Prefect Cloud flows in Saturn Cloud

Project description

prefect-saturn

GitHub Actions PyPI Version

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


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.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

prefect_saturn-0.4.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file prefect-saturn-0.4.3.tar.gz.

File metadata

  • Download URL: prefect-saturn-0.4.3.tar.gz
  • Upload date:
  • Size: 7.4 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.54.1 CPython/3.8.6

File hashes

Hashes for prefect-saturn-0.4.3.tar.gz
Algorithm Hash digest
SHA256 b4e57e9d16342fcb0637d5053e68bfcb91c7d0ba8b14760c43acb675ac487ebf
MD5 c6f3709f7cf3296dd46e5f07e28a506c
BLAKE2b-256 6e14d6f9d36866fc9ddc7d87334195e4532e64bcc813c6451a4a7bd7567d89e2

See more details on using hashes here.

File details

Details for the file prefect_saturn-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: prefect_saturn-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.54.1 CPython/3.8.6

File hashes

Hashes for prefect_saturn-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2d340b7516bbb681b6cbf97308a0e640cd0140934553cdb76f931144e43dbaaa
MD5 fa36436fc385f1747f3c2a3073fcb7d9
BLAKE2b-256 a8187f44b4f4e7d197227ca2114229352485cb4ade93b8bbc1156db21b53e90c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page