Skip to main content

Houdini package manager command-line tool

Project description

hpackage command reference

This guide walks you through downloading/installing packages first, then authoring and uploading your own. Commands are shown exactly as you’d type them.

Tip: run hpackage -h or hpackage <subcommand> -h for built-in help.

Installing & managing packages

Install a package

hpackage install mytoolkit
  • If you don’t specify a version, the latest available version is chosen.
  • Dependencies are resolved automatically. If a dependency has max_version, that version is used; otherwise the latest is used.

Install a specific version

hpackage install mytoolkit==1.2.3

Install from a requirements file

hpackage install -r hrequirements.txt

Where hrequirements.txt lists one package per line, e.g.:

coollib
otherlib==2.0
# comments and blank lines are ignored

Upgrade a package to its latest version

hpackage install -U mytoolkit

List installed packages

hpackage list
hpackage list --show-location   # also prints paths

Uninstall a package

hpackage uninstall mytoolkit

If Houdini is running, note that dynamic libraries loaded by the package won’t unload unless Houdini is restarted.

If other packages depend on it, you’ll be warned. To skip the prompt:

hpackage uninstall -y mytoolkit

How downloads work

  • Downloads resume automatically if interrupted.
  • A progress bar is shown by default (-v controls verbosity).
  • After download, the file size and MD5 are verified; a mismatch aborts install.

Authentication

You only need to sign in if you:

  • install a package that requires a grant, or
  • use author upload/publish features.

Sign in (via browser session)

$ hpackage auth login
Waiting for you to log in via a browser (press Ctrl+C to quit)

$hpackage auth status
username      : yourusername
email         : you@yourdomain.com
company       : Your Company Name
Login method  : Session

To log out of the browser session:

hpackage auth logout

API key (non-interactive)

Create and install a key tied to your account:

hpackage auth installkey

This writes an API key to your hserver.ini file. These keys are also used by Houdini’s licensing tools and the launcher. Commands to uninstall keys and delete them from hpackage’s server also exist.

$ hpackage auth status
username      : yourusername
email         : you@yourdomain.com
company       : Your Company Name
Login method  : API Key
API client id : <your-client-id>

Authoring & uploading packages

1) Reserve a package name and create a starter template

hpackage author reserve mypkg

This:

  • verifies you are allowed to reserve the name,
  • creates a starter package skeleton under your Houdini user packages directory,
  • writes getting-started.txt with next steps.

If a folder/JSON already exists with that name, nothing is overwritten; you’ll be asked to complete the required fields instead.

2) Verify your package JSON

hpackage author verifyjson mypkg
# Or provide a path to a JSON:
# hpackage author verifyjson /path/to/mypkg.json

This validates:

  • the JSON object structure and required keys and values (including env list entries),
  • version format,
  • a strict minimum Houdini version via enable, e.g.:
    "enable": "houdini_version >= '21.0'"

If anything is wrong, you’ll get actionable error messages.

3) Prepare your package folder

Your package folder typically looks like:

mypkg.json
mypkg/
  README.md       # required by uploader
  houdini/        # items in search path (otls, scripts, etc.)
  ...             # items you reference via $PCK_MYPKG

Required: README.md in the package directory.
Remove getting-started.txt after you follow its steps; uploads will refuse to proceed while it exists.

4) Upload (chunked, resumable)

hpackage author upload mypkg
# or use a JSON path: hpackage author upload /path/to/mypkg.json
  • The CLI zips your JSON + package folder, computes MD5, starts an upload, and streams chunks.
  • If an earlier attempt partially succeeded, it automatically resumes from the server-reported offset.
  • Server-side checks verify the zip and JSON match the metadata, and then queues a security scan.
  • On success, the CLI prints your package page URL.
  • Pass -i (or -–interactive) to fill out the contents of README.md and delete getting-started.txt automatically.

Make the package require a grant to download

hpackage author upload mypkg --requires-grant

(You can later grant access and publish.)

5) Check status (as author)

hpackage author getstatus mypkg

Shows the most recent version and its state (e.g., scanning / reviewing / reviewed / unsafe / published).

6) Grant access (for packages that require a grant)

hpackage author grant mypkg user1@example.com user2@example.com

7) Publish

hpackage author publish mypkg==1.2.3

Publishing requires:

  • your package version to be reviewed and not flagged unsafe,
  • all minimum dependency versions to be published.

8) Unpublish (time/usage limits may apply)

hpackage author unpublish mypkg==1.2.3

The server prevents you from unpublishing if it would break other published packages depending on this version (subject to rules you’ll see as error messages).

9) Delete a version

hpackage author delete mypkg==1.2.3

If it’s published, it will first be unpublished (and must pass the same safety checks as above).

Configuration & flags

  • Verbosity: -v 0|1|2|3 (default 2 but 3 if HOUDINI_PACKAGE_VERBOSE is set)
  • Timeout: --timeout <seconds> (default 30)
  • Server: --server <url> (intended for internal/testing use)

Troubleshooting

  • “You are not logged in”
    Run hpackage auth login (or use auth installkey to set an API key).
  • Upload refused due to getting-started.txt
    Complete the steps in that file and delete it before uploading.
  • JSON validation errors
    Use hpackage author verifyjson and follow the exact messages (e.g., env must be a list; enable must contain a quoted two-segment Houdini version like "houdini_version >= '21.0'").

Examples

# Install the latest version of a public package
hpackage install mushroomcloud
# Install a specific version
hpackage install mushroomcloud==2.3.1
# Install everything from a requirements file
hpackage install -r hrequirements.txt
# List installed packages (with locations)
hpackage list --show-location
# Uninstall
hpackage uninstall mushroomcloud
# Author flow
hpackage auth login
hpackage author reserve freetools
hpackage author verifyjson freetools
# (edit README.md, remove getting-started.txt, add files under
# freetools/)
hpackage author upload freetools
hpackage author getstatus freetools
# (wait until the status is “reviewed”)
hpackage author publish freetools
# Paid Content Author flow
hpackage auth login
hpackage author reserve paidtools
# (edit README.md, remove getting-started.txt, add files under
# paidtools/)
hpackage author upload paidtools --requires-grant
hpackage author getstatus paidtools
# (wait until the status is “reviewed”)
hpackage author publish paidtools
# (from your commerce website:)
hpackage author grant paidtools purchaser@example.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpackage-0.2.2.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hpackage-0.2.2-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file hpackage-0.2.2.tar.gz.

File metadata

  • Download URL: hpackage-0.2.2.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for hpackage-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7de74ec5771be28a6df77c0dbee514df43d1ec52052f44be70cd0ba29e6307a5
MD5 85c63f903dbcc6917a92f331421398a4
BLAKE2b-256 1d9b34a93a8ae55e311f64383af1b4bb21b8a94ae934ef870d30dfe5ee1642a0

See more details on using hashes here.

File details

Details for the file hpackage-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: hpackage-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 43.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for hpackage-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c80eaeec5770f61e5bcc2c6a2f5b98c89bb381685bc288147be266d107fc5977
MD5 c34cc88bc7d32c69db67a34265e3337f
BLAKE2b-256 1a945bc61bf36c3ee16e5ba3a65d49794f22728aa0c00bcc73bf752112e42cbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page