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

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.1.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.1-py3-none-any.whl (789.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hatchet_sdk-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 89d4b7aec613d01e6d9241a3ac3d056ff4b5319e36d4a83c0d2ee28fecb5991e
MD5 3ff99d7a6d6f58c6081cc8bd3134726c
BLAKE2b-256 90dc7731ff68d967b205171cda3cc338bfe06263e41996d019c4b27cc5ebcabc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hatchet_sdk-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 789.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff422652924a5cf0d1316d246a9f2dfb90c11ac6454680fc57c3a6d9e38fd09e
MD5 09e8599399ed49dabb93fab6cda024dd
BLAKE2b-256 ad23d21b7cb57db0e60cec145b724626a23021fb30cf93b045bce0a200c5b3cf

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