weave
A toolkit for building composable interactive data driven applications.
What it is and what it does
Weave is a tracing and evaluation framework for generative AI development built by Weights & Biases. It lets you decorate Python functions with @weave.op to automatically capture their inputs, outputs, and execution flow, creating a queryable trace tree. This is useful for debugging LLM pipelines, understanding how data flows through your application, and building systematic evaluations of model behavior. The toolkit integrates with OpenTelemetry for observability and requires a Weights & Biases account to store and visualize traces.
The package depends on 15 runtime libraries including pydantic for schema validation, opentelemetry for instrumentation, sentry-sdk for error tracking, and tenacity for retry logic. It is actively maintained, supports current Python versions (3.10+), and carries no known security vulnerabilities. The Apache 2.0 license permits commercial use with standard attribution requirements.
Use it for:
- Instrument LLM API calls (OpenAI, Anthropic, etc.) and downstream processing to debug multi-step generative workflows.
- Build reproducible evaluations comparing model outputs across different prompts, parameters, or model versions.
- Log and organize experimental runs during development to track which configurations and data transformations produced which results.
- Monitor production LLM applications by capturing request traces and flagging anomalies or errors in real time.
- Validate data transformations and intermediate outputs in complex AI pipelines to catch silent failures early.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Weave is a toolkit for tracing, logging, and evaluating generative AI applications, letting you instrument functions to capture inputs, outputs, and execution traces for debugging and analysis.
Yes, if you are actively developing or operating generative AI applications and want structured tracing without manual instrumentation. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. The requirement for a Weights & Biases account and Python 3.10+ are minor barriers; the 15 runtime dependencies are a consideration only if you have strict dependency budgets.
Install
weave on PyPI
pip
pip install weaveuv
uv add weavepoetry
poetry add weaveInstalling weave
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a release 1 day old and 1116 repository stars. Requires Python 3.10 or higher and a Weights & Biases account (free tier available) to function.
License in practice
Apache License 2.0 is permissive; you can use, modify, and distribute Weave freely in commercial and private projects provided you include license and attribution notices.
Quickstart
pip install weave
import weave
weave.init("my-project")
@weave.op
def my_function(x: int) -> int:
return x + 1
my_function(5)
Requires Python 3.10 or higher and a Weights & Biases account (free tier available) to initialize and log traces.
Verify before relying
- Whether the 15 runtime dependencies (including opentelemetry, pydantic, sentry-sdk) add significant overhead or complexity to projects with strict dependency constraints.
- Performance characteristics and latency impact of tracing on function execution, especially for high-frequency or latency-sensitive workloads.
- Whether Weave's trace storage and retrieval scale well for long-running production applications generating high volumes of traces.
Package facts
| License | Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 15 — cachetools, click, diskcache-weave, gql, jsonschema, opentelemetry-api, opentelemetry-exporter-otlp-proto-http, opentelemetry-sdk, packaging, polyfile-weave, pydantic, pyyaml, sentry-sdk, tenacity, tzdata |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,007,512/month — #4,523 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: weave-0.53.6-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
mlflow-tracingInstrument GenAI applications with distributed…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-google-generativeaiAutomatically traces prompts, completions, and…
permissive · top 5,000 on PyPI
promptflowPrompt flow is a development suite for…
permissive · top 15,000 on PyPI
traceloop-sdkTraceloop SDK instruments LLM applications to…
permissive · top 5,000 on PyPI
trulensTruLens instruments LLM applications to trace…
permissive · top 15,000 on PyPI
opikOpik is an open-source LLM observability and…
permissive · top 5,000 on PyPI
aliyun-traceManually creates traces for LLM applications…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-openaiCaptures traces of OpenAI API calls (prompts,…
permissive · top 5,000 on PyPI
opentelemetry-util-genaiProvides standardized instrumentation utilities…
permissive · top 5,000 on PyPI
hunterHunter is a code tracing toolkit that…
permissive · top 5,000 on PyPI