This release is a pre-release and may not be stable for production use.
Plott SDK for LangGraph
Automatic analytics tracking for LangGraph applications. Just wrap your graph and analytics are collected transparently.
Installation
pip install plott-sdk-langgraph
Quick Start
from langgraph.graph import StateGraph
from langchain_core.messages import HumanMessage
from plott_langgraph import plott_tracked_graph
# Create and compile your graph
graph = workflow.compile(checkpointer=memory)
# Wrap with Plott - that's it!
tracked_graph = plott_tracked_graph(graph, {
"api_key": "cpk_...", # or set PLOTT_API_KEY env var
"environment": "development",
})
# Use exactly like the original graph - analytics are automatic
async for event in tracked_graph.astream_events(
{"messages": [HumanMessage(content="Hello!")]},
config={"configurable": {"thread_id": "123", "run_id": "run-456"}},
):
# Your normal event handling
if event["event"] == "on_chat_model_stream":
print(event["data"]["chunk"].content, end="", flush=True)
What Gets Tracked
The SDK automatically tracks:
| Event | Description |
|---|---|
| Messages | User input and assistant responses |
| Tool Calls | Tool executions with arguments and results |
| State Snapshots | State changes as the graph executes |
| Run Lifecycle | Start and end of each graph run |
| Errors | Any errors that occur during execution |
Configuration
tracked_graph = plott_tracked_graph(graph, {
"api_key": "cpk_...", # Required (or PLOTT_API_KEY env var)
"environment": "production", # production, staging, development, test
"retry_attempts": 3, # Number of retry attempts on failure
"retry_delay": 1.0, # Seconds between retries
"debug": False, # Enable debug logging
})
Environment Variables
PLOTT_API_KEY- API key (if not provided in config)
Tracked Methods
The following methods have analytics tracking:
astream_events()- Full event streaming with detailed trackingastream()- State streaming with lifecycle trackinginvoke()- Synchronous invocation with lifecycle trackingainvoke()- Async invocation with lifecycle tracking
License
Apache 2.0
Metadata
Release files for plott-sdk-langgraph 0.0.1a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plott_sdk_langgraph-0.0.1a1.tar.gz | 12.6 kB | Without provenance | Details for plott_sdk_langgraph-0.0.1a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plott_sdk_langgraph-0.0.1a1-py3-none-any.whl | Python 3 | none | any | Details for plott_sdk_langgraph-0.0.1a1-py3-none-any.whl |
Total release size: 27.2 kB
Release files / plott_sdk_langgraph-0.0.1a1.tar.gz
| Download URL | plott_sdk_langgraph-0.0.1a1.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7c8040a6af8f326507ee4362f323b842ee4566186848db6095984e816a5a785
|
|
BLAKE2b-256 checksum How to use checksums |
9857940bdcad16e53edd4e4b386ee680f35c484a7e0eecab6a80a3ae4156257e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.8
|
Release files / plott_sdk_langgraph-0.0.1a1-py3-none-any.whl
| Download URL | plott_sdk_langgraph-0.0.1a1-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ba531a72500a0f749fd22e2ff1526a9bd9bfe13ee1aaa7e6b8d3c291e4176d7
|
|
BLAKE2b-256 checksum How to use checksums |
90fced8f7965c2cb803c526e6a4a19ea52f331699c51117b02aef28ebed49779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.8
|
Security for plott-sdk-langgraph 0.0.1a1
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.