Skip to main content

py_houdini

py_houdini is a Python package for reading and editing SideFX Houdini scene files (.hip) without Houdini.

Sibling project of py-aep, py-premiere and py-maya-scene.

About

A .hip file is a list of named sections (scene settings, then a few sections per node) stored either as a MIME multipart message (Houdini's "Text" save mode) or as a cpio archive ("Binary"). This package will read and edit both, keeping every byte it does not change, so that tools can list and replace a scene's file dependencies on machines and farms without a Houdini licence.

Status

Pre-alpha.

Supported

  • Both containers, byte for byte: parse then save gives the same bytes (all 18,152 production MIME and cpio files; the two others, one truncated and one converted to CRLF outside Houdini, are refused at parse time). Files of other formats named .hip (Apprentice, Alembic, Maya...) are refused with an error naming the format
  • Scene model: nodes (path, type, children in Houdini's order, wired inputs through network dots), parameter tuples (values decoded as Houdini reads them, animated components with their channel), channel expressions with their language, set -g variables, the asset libraries the scene installs; checked against Houdini's own view of every fixture
  • Editing a parameter value or a variable rewrites that token only, quoted and escaped the way Houdini writes it
  • File references (scene.file_references()): every file parameter as Houdini types it (built-in node types from a table generated from Houdini 20.5, asset types from their definitions saved in the scene, spare parameters), with its file chooser mode (read/write) and whether an expression drives it; the asset libraries the scene installs, uses and prefers; scene.expand() for the scene's variables, $HIP from where the file is
  • Replacing every name and string through a function (scene.replace_strings(fn)), like a text replace that keeps the scene consistent: parameter values, expressions, variables (but $HIP, $HIPFILE, $HIPNAME), library paths, takes, and node names with everything that names a node (paths, children order, inputs, network dots). Houdini's view of the result matches a hython remap on every fixture, takes aside (hython leaves their overrides behind). Nothing changes when a new node name is invalid or clashes
  • Remapping file paths only (scene.remap_paths(fn))
  • Saving atomically: save(path) refuses to overwrite, save_in_place() overwrites the parsed file

Apprentice files (.hipnc) are encrypted and out of scope.

Installation

uv sync --extra dev

Getting started

import py_houdini

scene = py_houdini.parse("shot.hip")
for node in scene.nodes:
    for parm in node.parms:
        print(node.path, node.type, parm.name, [c.value for c in parm.components])

scene.node("/obj/geo1/file1").set_parm("file", "$HIP/geo/rock.bgeo.sc")
scene.save("shot_edited.hip")

# Inputs only, with variables expanded
for ref in scene.file_references():
    if ref.value and ref.mode != "write" and not ref.animated:
        print(ref.node.path, ref.parm, scene.expand(ref.value, node=ref.node))

# Rename an item everywhere: node names, values, expressions...
scene.replace_strings(lambda value: value.replace("e101_s010_p020", "e101_s010_p030"))
scene.save_in_place()

Documentation

See docs/file_format.md for what is known of the .hip format.

Metadata

Release files for py-houdini 0.1.0

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

Source distribution (sdist)

Source distribution for py-houdini 0.1.0
File Size Uploaded Provenance Actions
py_houdini-0.1.0.tar.gz 130.3 kB With provenance Details for py_houdini-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-houdini 0.1.0
File Interpreter ABI Platform Actions
py_houdini-0.1.0-py3-none-any.whl Python 3 none any Details for py_houdini-0.1.0-py3-none-any.whl

Total release size: 180.8 kB

Release files / py_houdini-0.1.0.tar.gz

Download URL py_houdini-0.1.0.tar.gz
Size 130.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3d5128e60fa90bad2355bd233a01a0b8229e3b8fdc0d048c3c817dc11fcf39fd
BLAKE2b-256 checksum
How to use checksums
113756c5a5665b471ecb09c962c5942d1b4654ffcfb5370b3d61fa87c7fc0bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / py_houdini-0.1.0-py3-none-any.whl

Download URL py_houdini-0.1.0-py3-none-any.whl
Size 50.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36ffa2984949a792916f59e3f67b8a24d58659c0f5361aad27f3289b54becc64
BLAKE2b-256 checksum
How to use checksums
4165c28c39a9e82809f02f18c86c8a40d50768652f4dc9f7d817fce7ba83acd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for py-houdini 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for py_houdini-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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