Skip to main content

Workflow orchestration and management.

Project description

PyPI

Prefect

Prefect is an orchestrator for data-intensive workflows. It's the simplest way to transform any Python function into a unit of work that can be observed and orchestrated. With Prefect, you can build resilient, dynamic workflows that react to the world around them and recover from unexpected changes. With just a few decorators, Prefect supercharges your code with features like automatic retries, distributed execution, scheduling, caching, and much more. Every activity is tracked and can be monitored with the Prefect server or Prefect Cloud dashboard.

from prefect import flow, task
from typing import List
import httpx


@task(retries=3)
def get_stars(repo: str):
    url = f"https://api.github.com/repos/{repo}"
    count = httpx.get(url).json()["stargazers_count"]
    print(f"{repo} has {count} stars!")


@flow(name="GitHub Stars")
def github_stars(repos: List[str]):
    for repo in repos:
        get_stars(repo)


# run the flow!
github_stars(["PrefectHQ/Prefect"])

After running some flows, fire up the Prefect UI to see what happened:

prefect server start

Prefect UI dashboard

From here, you can continue to use Prefect interactively or deploy your flows to remote environments, running on a scheduled or event-driven basis.

Getting Started

Prefect requires Python 3.8 or later. To install Prefect, run the following command in a shell or terminal session:

pip install prefect

Start by exploring the core concepts of Prefect workflows, then follow one of our friendly tutorials to learn by example.

Prefect Cloud

Stop worrying about your workflows. Prefect Cloud allows you to centrally deploy, monitor, and manage the data workflows you support. With managed orchestration, automations, and webhooks, all backed by enterprise-class security, build production-ready code quickly and reliably.

Read more about Prefect Cloud here or signup to try it for yourself.

Prefect Automations

Join the community

Prefect is made possible by the fastest growing community of thousands of friendly data engineers. Join us in building a new kind of workflow system. The Prefect Slack community is a fantastic place to learn more about Prefect, ask questions, or get help with workflow design. The Prefect Discourse is a community-driven knowledge base to find answers to your Prefect-related questions. All community forums, including code contributions, issue discussions, and slack messages are subject to our Code of Conduct.

Contribute

See our documentation on contributing to Prefect.

Thanks for being part of the mission to build a new kind of workflow system and, of course, happy engineering!

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-client-2.14.8.tar.gz (486.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prefect_client-2.14.8-py3-none-any.whl (537.4 kB view details)

Uploaded Python 3

File details

Details for the file prefect-client-2.14.8.tar.gz.

File metadata

  • Download URL: prefect-client-2.14.8.tar.gz
  • Upload date:
  • Size: 486.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for prefect-client-2.14.8.tar.gz
Algorithm Hash digest
SHA256 f2486c3b82a6ffadfb7183a021e848980a07ab989036686eefe64f28f41d7560
MD5 f9c30ab7376e686b6c9a77aa6014fb28
BLAKE2b-256 093d09f9821be84f31ad66a01f38217ca146f316675681f8a339d032efe3ffeb

See more details on using hashes here.

File details

Details for the file prefect_client-2.14.8-py3-none-any.whl.

File metadata

File hashes

Hashes for prefect_client-2.14.8-py3-none-any.whl
Algorithm Hash digest
SHA256 28c6f2d2d8555b99de06dffff2a6f3fafdbc26fbecbbffcba595373051c7779e
MD5 9f76e78c522dfaa1f549558cec54cc3f
BLAKE2b-256 7a6007c33962978d5b9fdb37d189704f1811f8cde73e70d8e8d3d8b82536e694

See more details on using hashes here.

Supported by

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