$npx skillfedfor your agent

hiddenlayer-sdk

The official Python library for the hiddenlayer API

Worth itPyPI Python ModulesReleased Aug 202696.1K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — hiddenlayer_sdk-3.9.0-py3-none-any.whl
v3.9.0 · released 2026-08-10 · Python >=3.9 · 9 runtime deps: anyio, distro, httpx, pydantic, requests-auth, requests, sniffio, types-requests

Yes. The package is actively maintained (released 4 days ago), has no known vulnerabilities, low install friction, and is the official SDK for HiddenLayer's API. Use it if you need to integrate HiddenLayer's security analysis into a Python application. The permissive Apache-2.0 license and broad Python version support make adoption straightforward.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires HIDDENLAYER_TOKEN environment variable or explicit bearer_token; Python 3.9 or later.
  • Low friction: pure Python wheel with no compiled dependencies.
  • Active maintenance—last commit 2026-08-13, released 4 days ago.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-08-10 (4 days) · last repo commit 2026-08-13 · 4 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 96,097 downloads/mo, #13,231 on PyPI

Verify before relying

pip install hiddenlayer-sdk

from hiddenlayer import HiddenLayer

client = HiddenLayer(environment="prod-eu")
response = client.interactions.analyze(
    metadata={"model": "gpt-4", "requester_id": "user-id"},
    input={"messages": [{"role": "user", "content": "hello"}]}
)
print(response.analysis)
  • Whether the monthly downloads reflect active production use or test/CI installations.
  • What specific HiddenLayer API endpoints and features are covered by this SDK version.
  • Whether Beta APIs marked in the documentation carry breaking-change risk for production deployments.
Same gist for agents: .md · .json

What it is and what it does

hiddenlayer-sdk is an official Python client library for the HiddenLayer REST API, generated using Stainless. It wraps HiddenLayer's security and AI analysis endpoints with full type hints, Pydantic models for responses, and TypedDict for request parameters. The library ships both synchronous (HiddenLayer) and asynchronous (AsyncHiddenLayer) clients, both backed by httpx for HTTP transport.

It is designed for developers integrating HiddenLayer's security analysis into Python applications. The package handles authentication via bearer token, supports multiple environments (prod-us, prod-eu), and includes auto-paginating iterators for list endpoints. Error handling distinguishes between connection failures (APIConnectionError), rate limits (RateLimitError), and HTTP status errors (APIStatusError). Type definitions enable IDE autocomplete and early error detection.

Use it for

  • Integrate HiddenLayer's model interaction analysis into a Python application to detect security risks in LLM inputs and outputs.
  • Build a monitoring service that periodically calls HiddenLayer's API to analyze model behavior and log results.
  • Implement async batch analysis of multiple model interactions using AsyncHiddenLayer for concurrent API requests.
  • Fetch and iterate through paginated lists of model cards or analysis results without manual page-handling logic.
  • Catch and handle API errors (rate limits, auth failures, connection issues) with specific exception types in production workflows.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained (released 4 days ago), has no known vulnerabilities, low install friction, and is the official SDK for HiddenLayer's API. Use it if you need to integrate HiddenLayer's security analysis into a Python application. The permissive Apache-2.0 license and broad Python version support make adoption straightforward.

Install

hiddenlayer-sdk on PyPI

Before you install

Low friction: pure Python wheel with no compiled dependencies. Active maintenance—last commit 2026-08-13, released 4 days ago. Supports Python 3.9 through 3.14.

Requires HIDDENLAYER_TOKEN environment variable or explicit bearer_token; Python 3.9 or later.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install hiddenlayer-sdk

from hiddenlayer import HiddenLayer

client = HiddenLayer(environment="prod-eu")
response = client.interactions.analyze(
    metadata={"model": "gpt-4", "requester_id": "user-id"},
    input={"messages": [{"role": "user", "content": "hello"}]}
)
print(response.analysis)

Verify before relying

  • Whether the monthly downloads reflect active production use or test/CI installations.
  • What specific HiddenLayer API endpoints and features are covered by this SDK version.
  • Whether Beta APIs marked in the documentation carry breaking-change risk for production deployments.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
anyiodistrohttpxpydanticrequests-authrequestssniffiotypes-requeststyping-extensions
MaintenanceActively maintained 4 days since the last release
Last repo commit
First released
Downloads96,097 / month, #13,231 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: hiddenlayer_sdk-3.9.0-py3-none-any.whl

Tags

Capabilities
hiddenlayer api clientpython rest api clientasync http client librarytyped api wrapperhiddenlayer sdkapi security integrationpydantic typed requests
Topics
rest-api-clientasync-supporttype-hints

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “hiddenlayer api client”

  • hiddenlayer-sdkProvides a typed Python client for the HiddenLayer REST API, with…
  • codewords-clientA Python client library for the Codewords API with built-in FastAPI…
  • twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also bilibili-api-python · lithic · opencode-ai · agentex-client · composio-client · groq · llama-api-client · socketdev · steel-sdk · simple-rest-client