hud-sdk
Hud runtime code sensor for Python
What it is and what it does
Hud-sdk is a runtime instrumentation library that hooks into your Python application to observe function-level behavior in production without requiring explicit logging or tracing setup. It captures execution duration, error signals, and behavioral patterns, then exposes this data to Hud's IDE plugins, CI/CD integrations, and AI coding agents like Cursor and Copilot. The sensor is designed to be lightweight and read-only, transmitting only anonymized function metadata and runtime statistics over TLS.
The package targets engineers and AI agents building production-safe code by providing continuous visibility into how functions actually behave in live environments. It integrates with modern development workflows—VS Code, JetBrains IDEs, and agentic development tools—without requiring source code transmission or complex configuration. The library depends on aiohttp, requests, psutil, orjson, and dataclasses to handle async communication, system metrics, and efficient serialization.
Use it for:
- Instrument a production service to detect performance regressions or error spikes in specific functions without adding logging overhead.
- Feed real-time function behavior data to Cursor or Copilot to help AI agents understand production constraints when generating code.
- Monitor function execution patterns in CI/CD pipelines to catch behavioral changes before they reach production.
- Provide IDE plugins with live production telemetry so developers can see how their code actually behaves without context-switching to dashboards.
- Identify the exact function responsible for a production degradation by correlating execution duration and error signals.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Hud-sdk is a lightweight runtime sensor that instruments Python functions to capture real-time behavior—execution duration, errors, and execution patterns—for use in IDEs, CI/CD pipelines, and code-generating agents.
Yes, with conditions. The package is actively maintained, has no known vulnerabilities, and provides a genuinely useful capability for production visibility. However, the license treatment is unclear—verify the actual license terms before committing to production use. Medium install friction is acceptable given the value of runtime instrumentation. Ensure your platform (Python 3.8+, x86_64 or aarch64) is supported and that you understand the data transmission model and any backend service requirements.
Install
hud-sdk on PyPI
pip
pip install hud-sdkuv
uv add hud-sdkpoetry
poetry add hud-sdkInstalling hud-sdk
Before you install
Medium install friction due to compiled wheels for multiple Python versions and architectures. Active maintenance with a release 2 days old. Depends on aiohttp, requests, psutil, orjson, and dataclasses—all common, stable libraries with low friction.
License in practice
License treatment is unclear: the package declares 'SEE LICENSE FILE' but provides no SPDX identifier. You should verify the actual license terms in the project repository or documentation before committing to production use.
Quickstart
pip install hud-sdk
import hud_sdk
hud_sdk.init() # Starts runtime instrumentation
Requires Python 3.8 or later. Compiled wheels are provided for x86_64 and aarch64 on Linux, macOS, and musl; verify your platform is supported before installing.
Verify before relying
- Exact initialization and configuration API—the description mentions 'installed in under a minute' but does not specify the full setup steps.
- Whether the package requires network connectivity to a Hud backend service or can operate standalone.
- Overhead and performance impact in high-throughput production environments—described as 'negligible' but not quantified.
- Data retention and transmission policies for anonymized function-level metadata.
Package facts
| License | SEE LICENSE FILE (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 5 — aiohttp, requests, psutil, orjson, dataclasses |
| Maintenance | actively maintained — 2 days since the last release |
| First released | |
| Downloads | 107,272/month — #12,621 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: hud_sdk-0.5.1-cp310-cp310-macosx_10_9_x86_64.whl; hud_sdk-0.5.1-cp310-cp310-macosx_11_0_arm64.whl; hud_sdk-0.5.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; hud_sdk-0.5.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; hud_sdk-0.5.1-cp310-cp310-musllinux_1_2_aarch64.whl; hud_sdk-0.5.1-cp310-cp310-musllinux_1_2_x86_64.whl; hud_sdk-0.5.1-cp311-cp311-macosx_10_9_x86_64.whl; hud_sdk-0.5.1-cp311-cp311-macosx_11_0_arm64.whl; hud_sdk-0.5.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; hud_sdk-0.5.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; hud_sdk-0.5.1-cp311-cp311-musllinux_1_2_aarch64.whl; hud_sdk-0.5.1-cp311-cp311-musllinux_1_2_x86_64.whl; hud_sdk-0.5.1-cp312-cp312-macosx_10_13_x86_64.whl; hud_sdk-0.5.1-cp312-cp312-macosx_11_0_arm64.whl; hud_sdk-0.5.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; hud_sdk-0.5.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; hud_sdk-0.5.1-cp312-cp312-musllinux_1_2_aarch64.whl; hud_sdk-0.5.1-cp312-cp312-musllinux_1_2_x86_64.whl; hud_sdk-0.5.1-cp313-cp313-macosx_10_13_x86_64.whl; hud_sdk-0.5.1-cp313-cp313-macosx_11_0_arm64.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
cursor-sdkPython SDK for scripting Cursor agents with…
unclear · top 15,000 on PyPI
aiodebugaiodebug provides monitoring and testing…
permissive · top 15,000 on PyPI
autodynatraceAutodynatrace wraps the Dynatrace OneAgent SDK…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-openai-agentsAdds distributed tracing to OpenAI Agents…
permissive · top 5,000 on PyPI
serena-agentSerena is an MCP server that provides semantic…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-crewaiAdds OpenTelemetry tracing to crewAI agentic…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-loggingIntegrates Python's standard logging module…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-agnoAutomatically instruments the Agno framework to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-structlogIntegrates structlog logging with OpenTelemetry…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-mcpAdds distributed tracing to MCP (Model Context…
permissive · top 5,000 on PyPI