Skip to main content

langgraph-events

Opinionated event-driven abstraction for LangGraph. State IS events.

Quick Start

Group related commands and events into a Namespace. Colocate the handler on the command.

from __future__ import annotations

from langgraph_events import Command, DomainEvent, EventGraph, Namespace


class Order(Namespace):
    class Place(Command):
        customer_id: str

        class Placed(DomainEvent):
            order_id: str

        def handle(self) -> Order.Place.Placed:
            return Order.Place.Placed(order_id=f"o-{self.customer_id}")


graph = EventGraph([Order.Place])
log = graph.invoke(Order.Place(customer_id="alice"))
print(log.latest(Order.Place.Placed))

@on(...) handlers add invariants, declared exceptions, and cross-namespace reactions. See Concepts and Control Flow.

Installation

Requires Python 3.11+.

pip install langgraph-events

# With AG-UI adapter support
pip install "langgraph-events[agui]"

# From source (development)
pip install git+https://github.com/cadance-io/langgraph-events.git

Documentation

Development

uv sync --group dev
uv run pytest tests/
uv run ruff check src/ tests/
uv run mypy src/

License

MIT - see LICENSE.

Metadata

Release files for langgraph-events 0.47.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langgraph-events 0.47.0
File Size Uploaded Provenance Actions
langgraph_events-0.47.0.tar.gz 877.7 kB Without provenance Details for langgraph_events-0.47.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langgraph-events 0.47.0
File Interpreter ABI Platform Actions
langgraph_events-0.47.0-py3-none-any.whl Python 3 none any Details for langgraph_events-0.47.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / langgraph_events-0.47.0.tar.gz

Download URL langgraph_events-0.47.0.tar.gz
Size 877.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7c1ecd48cace34d40431a3b2fb897838c49cee43c656acb344a55bf1a81d08d3
BLAKE2b-256 checksum
How to use checksums
26a2cd03981d39b9a010d8aa800a0c454fe92ace2a7761ca0d9b19c27fea2920
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / langgraph_events-0.47.0-py3-none-any.whl

Download URL langgraph_events-0.47.0-py3-none-any.whl
Size 269.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fe7bf7c526c910f0e334510f59d3c2af95d11ec4f989bfb4ae1b864223a8b2f
BLAKE2b-256 checksum
How to use checksums
9d740c4a02bffdae8c71455d0c5d1509ad314d6771abe5faad50f248e00bb535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for langgraph-events 0.47.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.47.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page