Skip to main content

No project description provided

Project description

Hatchet Python SDK

PyPI version Documentation License: MIT

This is the official Python SDK for Hatchet, a distributed, fault-tolerant task queue. The SDK allows you to easily integrate Hatchet's task scheduling and workflow orchestration capabilities into your Python applications.

Installation

Install the SDK using pip:

pip install hatchet-sdk

Or using poetry:

poetry add hatchet-sdk

Quick Start

Here's a simple example of how to use the Hatchet Python SDK:

from hatchet_sdk import Context, EmptyModel, Hatchet

hatchet = Hatchet(debug=True)


@hatchet.task(name="SimpleWorkflow")
def step1(input: EmptyModel, ctx: Context) -> None:
    print("executed step1")


def main() -> None:
    worker = hatchet.worker("test-worker", slots=1, workflows=[step1])
    worker.start()

if __name__ == "__main__":
    main()

Features

  • 🔄 Workflow Orchestration: Define complex workflows with dependencies and parallel execution
  • 🔁 Automatic Retries: Configure retry policies for handling transient failures
  • 📊 Observability: Track workflow progress and monitor execution metrics
  • Scheduling: Schedule workflows to run at specific times or on a recurring basis
  • 🔄 Event-Driven: Trigger workflows based on events in your system

Documentation

For detailed documentation, examples, and best practices, visit:

Contributing

We welcome contributions! Please check out our contributing guidelines and join our Discord community for discussions and support.

License

This SDK is released under the MIT License. See LICENSE for details.

Project details


Release history Release notifications | RSS feed

This version

1.2.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatchet_sdk-1.2.2.tar.gz (323.1 kB view details)

Uploaded Source

Built Distribution

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

hatchet_sdk-1.2.2-py3-none-any.whl (790.0 kB view details)

Uploaded Python 3

File details

Details for the file hatchet_sdk-1.2.2.tar.gz.

File metadata

  • Download URL: hatchet_sdk-1.2.2.tar.gz
  • Upload date:
  • Size: 323.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for hatchet_sdk-1.2.2.tar.gz
Algorithm Hash digest
SHA256 19cf6aa003db7d93639230456704446762fb842210443f077602dde9b9ac9bee
MD5 a746b4cb996597e43db95c238829724c
BLAKE2b-256 55afb4075d60165f6f6d014d8c8dfaca7c33725f31025e419a80aeac293f120b

See more details on using hashes here.

File details

Details for the file hatchet_sdk-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: hatchet_sdk-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 790.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for hatchet_sdk-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42a9628da8c33f29ff56724aa8f078651b23baef16b8c698c0ef61b9619d95b5
MD5 3170d14071acccc550c4646643bb141a
BLAKE2b-256 2e9af848eedb31e84e47aeaf61f83d5c99b645fa992054544d85f79633223ac7

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