Skip to main content

Hugpy

The complete Hugpy Python suite in one install. hugpy declares the component dependencies and exposes their Python modules through lazy imports. Components keep their own implementations, releases, and canonical import paths.

Install the suite

Debian or Ubuntu. Add the signed Hugpy APT repository, then install the suite.

sudo apt install hugpy

The Debian suite includes Engine 0.4, Discovery, Downloader, Wrapper, Core, Harness, Fleet, Agent, Media, Video, Station, Abstract Toolserver and the native Llama server. Services run in their own Python environments. Set up the model drives with Discovery and install the Engine profiles you need. Wrapper owns model execution, and Core connects to each Wrapper.

Python 3.11 or newer. Install the Python applications and clients in an isolated environment.

python -m venv .venv
.venv/bin/python -m pip install hugpy
# Optional provider adapters
.venv/bin/python -m pip install 'hugpy[all]'

The PyPI suite includes Resources, Downloader and Identity. The worker, media, video, agent and identity extras remain valid for earlier scripts. Those components are included by default.

Media and Oracle use the Engine 0.3 Python client. Install Engine 0.4 in a separate worker environment if you are provisioning a worker from PyPI:

python -m venv .venv-worker
.venv-worker/bin/python -m pip install 'hugpy-engine>=0.4,<0.5'
.venv/bin/hugpy-wrapper set engine_command "$PWD/.venv-worker/bin/hugpy-engine"

Engine profiles and model weights are installed separately. Station is distributed with the Debian suite, and the frontend libraries are published on npm. See Hugpy Downloads for the installation channels.

Imports

import hugpy
from hugpy import core, engine, discovery, downloader, wrapper, harness, fleet
from hugpy import media, video, oracle, storage, agent
from hugpy import resources, settings, platform, tools, toolserver, terminal, identity

# Convenience exports from hugpy_engine:
from hugpy import execute_prompt, execute_prompt_stream, execute_chat_stream

# With the matching optional extras installed:
from hugpy import serve, claude, gpt

import hugpy loads no component. Accessing an alias imports and caches that component's actual module; for example, hugpy.wrapper is hugpy_wrapper and hugpy.media is hugpy_media. Component initialization happens when that component is requested. Optional components are listed by dir(hugpy) but excluded from star imports.

Alias Canonical Python module Distribution Install
resources hugpy_resources hugpy-resources Default
settings hugpy_settings hugpy-settings Default
platform hugpy_platform hugpy-platform Default
tools hugpy_tools hugpy-tools Default
toolserver abstract_toolserver abstract-toolserver Default
storage hugpy_storage hugpy-storage Default
engine hugpy_engine hugpy-engine Default
wrapper hugpy_wrapper hugpy-wrapper Default
discovery hugpy_discovery hugpy-discovery Default
downloader hugpy_downloader hugpy-downloader Default
core hugpy_core hugpy-core Default
terminal hugpy_terminal hugpy-terminal Default
harness hugpy_harness hugpy-harness Default
fleet hugpy_fleet hugpy-fleet Default
agent hugpy_agent hugpy-agent Default
media hugpy_media hugpy-media Default
oracle hugpy_oracle hugpy-oracle Default
video hugpy_video hugpy-video Default
serve abstract_serve_core abstract-serve-core hugpy[providers]
claude abstract_claude abstract-claude hugpy[claude] or hugpy[providers]
gpt abstract_gpt abstract-gpt hugpy[gpt] or hugpy[providers]
identity abstract_identity abstract-identity Default

For submodules, use canonical paths, for example import hugpy_media.extract. The aliases support attribute access and from hugpy import ...; they do not create a second submodule tree under hugpy. The three inference functions above are forwarded unchanged from hugpy_engine.

This package installs no hugpy or hpy command. Each component owns its own command line and runtime configuration.

Metadata

Release files for hugpy 0.3.0.4

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

Source distribution (sdist)

Source distribution for hugpy 0.3.0.4
File Size Uploaded Provenance Actions
hugpy-0.3.0.4.tar.gz 6.0 kB Without provenance Details for hugpy-0.3.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hugpy 0.3.0.4
File Interpreter ABI Platform Actions
hugpy-0.3.0.4-py3-none-any.whl Python 3 none any Details for hugpy-0.3.0.4-py3-none-any.whl

Total release size: 11.7 kB

Release files / hugpy-0.3.0.4.tar.gz

Download URL hugpy-0.3.0.4.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
78598eeb1355981281a5a8f9774355eafe6564e778b79c332c68ff0341282581
BLAKE2b-256 checksum
How to use checksums
d1caa318586e52d7bfabbdac14acdb81c0e1c01a35149575ddd9062730f8cf70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / hugpy-0.3.0.4-py3-none-any.whl

Download URL hugpy-0.3.0.4-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c9d95bf6d7c902737eac3ceae8ba32a770dbdccda9f4f6f9d97c9b1bee0fdf8
BLAKE2b-256 checksum
How to use checksums
7177a1ba78509d88bea6352d1beda87f908c14f57cbc8ccee44bb6dfebd9c9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for hugpy 0.3.0.4

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.

Release history Release notifications | RSS feed

This release

0.3.0.4 This release

2 release files No 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