github hatchet-dev/hatchet py/1.44.0
Python SDK 1.44.0

latest releases: serverless/0.2.0, rb/0.12.0
5 hours ago

Overview

Added

  • Adds hatchet.streams, a client for durable streams: topics that store messages independent of any run, which readers can resume from a cursor. publish (async) returns once a message is stored, keeps a client's messages to a topic in call order, and batches publishes queued behind an in-flight request (batch_timeout holds a message to gather more). Payloads over 4 MiB are uploaded over REST, up to 64 MiB. subscribe (an async iterator) reads a topic from the oldest retained message or a cursor, resubscribing from the last event read when the connection drops. reset / aio_reset start new readers after the latest message or a given cursor, and topic_metadata / aio_topic_metadata describe a topic's retained messages.

Documentation for agents

The linked pages serve plain markdown for tools and agents. Full docs index: https://docs.hatchet.run/llms.txt

Setup and local development:

Core concepts:

Flow control:

Python SDK reference (overview: https://docs.hatchet.run/reference/python.md):

Installation

Install the SDK using pip:

pip install hatchet-sdk

Or using poetry:

poetry add hatchet-sdk

Documentation

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

What's Changed?

Don't miss a new hatchet release

NewReleases is sending notifications on new releases.