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.0

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.0.tar.gz (323.0 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.0-py3-none-any.whl (789.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hatchet_sdk-1.2.0.tar.gz
  • Upload date:
  • Size: 323.0 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.0.tar.gz
Algorithm Hash digest
SHA256 db5fcebc26fd4d9f2b2e5c54e8d9ab6a72206d12574c3dcf56ca83df3bb302a7
MD5 485bff9464a5abe2718046e28efa0809
BLAKE2b-256 f33421972fc26c17b6ff28dbafae0feed80eee3ea30e946de38e986bbbd65404

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hatchet_sdk-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 789.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8a9ecebf221f59cfd674bd0650b7b2ab5b852114edc980c5035f335081f6a2
MD5 15bcda5cf85ddfe211c2315d03acfeea
BLAKE2b-256 abd3f8f00570607a26e41d3bd2b6ae95f07bb10d0004a235b0c1f80a3cfd488f

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