Skip to main content

Unofficial python stubs for SideFX Houdini

These stubs are designed to be used with a type checker like mypy to provide static type checking of python code, as well as to provide analysis and completion in IDEs like PyCharm and VSCode (with Pylance).

Installing

pip install types-houdini

The version of the package corresponds to the version of Houdini that it is generated from, plus a version suffix for the revision of the stubs

The stubs use the types of USD (pxr) and PySide6 where Houdini's API does, but don't depend on their stubs: install types-usd (and PySide6, which ships its own) to have them checked, or they are Any.

Contents

Alongside hou, the package has stubs for the other Python modules that Houdini ships in $HFS/houdini/pythonX.Ylibs, one <module>-stubs package each: pdg, pdgutils, pdgjob, hapi, husd, toolutils, soputils, hdefereval, viewerstate, nodegraph*, and the rest. PDG's built-in node types, which it loads from $HFS/houdini/pdg/types as pdg.types.<name> (pdg.types.schedulers.local, pdg.types.utils.wedge, ...), are in the pdg stubs.

  • Compiled extensions (_pdg, _pdgd, _pdgutils, hapi, _houqt, husd.UsdHoudini, ...) are stubbed by inspecting them, so their signatures are typed.
  • Pure-python modules are stubbed from source, with types from the annotation overlays in annotations/ (see annotate/README.md), since most of Houdini's python code is unannotated.
  • houtypes has TypedDicts for the kwargs dictionaries that Houdini passes to Python callbacks (viewer states and handles, shelf tools, parameter callbacks and menu scripts, asset event handlers, ...), for annotating your own callbacks, e.g. def onMouseEvent(self, kwargs: ViewerStateEventKwargs) -> bool. It exists only in the stubs, so import it under if TYPE_CHECKING:.

Generating

Run inside a Houdini environment, with the venv built on the python version Houdini uses:

uv venv --python 3.13 .venv && uv sync --no-install-project
rez env houdini-22 -- ./stubgen_houdini.sh

stubgen_houdini.py generates hou; stubgen_houdini_libs.py generates everything else. Both merge in the annotation overlays. For a new Houdini version, see annotate/README.md.

Metadata

Release files for types-houdini 22.0.508.2

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

Built distribution (wheel)

Table of built distributions (wheels) for types-houdini 22.0.508.2
File Interpreter ABI Platform Actions
types_houdini-22.0.508.2-py3-none-any.whl Python 3 none any Details for types_houdini-22.0.508.2-py3-none-any.whl

Release files / types_houdini-22.0.508.2-py3-none-any.whl

Download URL types_houdini-22.0.508.2-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
16615fd3a5e023e170abf771fcb93aef67cb6b18804fb6d3c3f4706031d8e386
BLAKE2b-256 checksum
How to use checksums
3f67f4a3e5ac1699fb6079df79c6b46418cdac9f9902e59a42bac474c154dc3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Rocky Linux","version":"9.8","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for types-houdini 22.0.508.2

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.

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