Metadata-Version: 2.4
Name: hugpy
Version: 0.3.0.4
Summary: The complete Hugpy Python suite with lazy component imports
Author-email: Hugpy <support@hugpy.ai>
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://hugpy.ai
Project-URL: Repository, https://github.com/hugpy/hugpy
Project-URL: Source, https://github.com/hugpy/hugpy/tree/main/staging/hugpy/package
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: hugpy-resources<0.2,>=0.1.18.2
Requires-Dist: hugpy-settings<0.2,>=0.1.18
Requires-Dist: hugpy-platform<0.4,>=0.3.5
Requires-Dist: hugpy-tools<0.3,>=0.2.26
Requires-Dist: abstract-toolserver<0.1,>=0.0.121
Requires-Dist: hugpy-storage<0.3,>=0.2.20
Requires-Dist: hugpy-engine<0.4,>=0.3.16
Requires-Dist: hugpy-wrapper<0.3,>=0.2.0
Requires-Dist: hugpy-discovery<0.3,>=0.2.0
Requires-Dist: hugpy-downloader<0.2,>=0.1.0.3
Requires-Dist: hugpy-core<0.6,>=0.5.0
Requires-Dist: hugpy-terminal<0.2,>=0.1.39.2
Requires-Dist: hugpy-harness<0.2,>=0.1.31
Requires-Dist: hugpy-fleet<0.3,>=0.2.16
Requires-Dist: hugpy-agent<0.2,>=0.1.137
Requires-Dist: hugpy-media<0.4,>=0.3.13
Requires-Dist: hugpy-oracle<0.4,>=0.3.27
Requires-Dist: hugpy-video<0.4,>=0.3.33
Requires-Dist: abstract-identity<0.2,>=0.1.3.2
Provides-Extra: worker
Provides-Extra: media
Provides-Extra: video
Provides-Extra: agent
Provides-Extra: providers
Requires-Dist: abstract-serve-core>=0.1.34; extra == "providers"
Requires-Dist: abstract-claude>=0.1.110; extra == "providers"
Requires-Dist: abstract-gpt>=0.1.27; extra == "providers"
Provides-Extra: claude
Requires-Dist: abstract-serve-core>=0.1.34; extra == "claude"
Requires-Dist: abstract-claude>=0.1.110; extra == "claude"
Provides-Extra: gpt
Requires-Dist: abstract-serve-core>=0.1.34; extra == "gpt"
Requires-Dist: abstract-gpt>=0.1.27; extra == "gpt"
Provides-Extra: identity
Provides-Extra: all
Requires-Dist: abstract-serve-core>=0.1.34; extra == "all"
Requires-Dist: abstract-claude>=0.1.110; extra == "all"
Requires-Dist: abstract-gpt>=0.1.27; extra == "all"
Dynamic: license-file

# 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.

```sh
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.

```sh
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:

```sh
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](https://hugpy.ai/downloads/) for the installation channels.

## Imports

```python
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.

