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
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.
- 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. houtypeshasTypedDicts for thekwargsdictionaries 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 underif 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| types_houdini-22.0.508.1-py3-none-any.whl | Python 3 | none | any | Details for types_houdini-22.0.508.1-py3-none-any.whl |
Release files / types_houdini-22.0.508.1-py3-none-any.whl
| Download URL | types_houdini-22.0.508.1-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8967630ed61de043708542b4d82344dc2ca00dbd4643af46189ac292ef1ff64
|
|
BLAKE2b-256 checksum How to use checksums |
3da04b5942f96b8adcb73ec1567df1126e6157d97e532d75a736e8eac6b01106
|
| 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.1
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.