Metadata-Version: 2.4
Name: hugpy-media
Version: 0.3.14
Summary: Hugpy media: engine task plugins for speech recognition, TTS, embeddings, keywords, summaries, vision, image generation, ComfyUI and document/URL extraction
Author-email: putkoff <support@hugpy.ai>
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://hugpy.ai
Project-URL: Documentation, https://hugpy.ai/docs
Project-URL: Downloads, https://hugpy.ai/downloads/
Keywords: hugpy,llm,self-hosted,whisper,embeddings,vision,image-generation,tts,media-intelligence
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: media_intelligence[documents]<0.3,>=0.1.3
Requires-Dist: hugpy-platform>=0.3.0
Requires-Dist: hugpy-resources<0.2,>=0.1.17.29
Requires-Dist: hugpy-settings<0.2,>=0.1.18
Requires-Dist: hugpy-engine<0.4,>=0.3.9
Requires-Dist: flask>=2
Requires-Dist: abstract_flask>=0.0.0.1079
Requires-Dist: abstract_essentials
Requires-Dist: pydantic>=2
Requires-Dist: requests
Requires-Dist: beautifulsoup4
Requires-Dist: PyPDF2
Requires-Dist: pdfplumber
Requires-Dist: pillow
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Requires-Dist: pytest-timeout; extra == "test"
Provides-Extra: audio
Requires-Dist: openai-whisper; extra == "audio"
Provides-Extra: imagegen
Requires-Dist: diffusers>=0.39; extra == "imagegen"
Requires-Dist: accelerate; extra == "imagegen"
Requires-Dist: transformers>=5.12; extra == "imagegen"
Requires-Dist: bitsandbytes>=0.48.0; extra == "imagegen"
Provides-Extra: embed
Requires-Dist: sentence-transformers; extra == "embed"
Provides-Extra: transformers
Requires-Dist: torch; extra == "transformers"
Requires-Dist: transformers; extra == "transformers"
Requires-Dist: accelerate; extra == "transformers"
Requires-Dist: sentencepiece; extra == "transformers"
Requires-Dist: timm; extra == "transformers"
Provides-Extra: vision
Requires-Dist: opencv-python-headless; extra == "vision"
Requires-Dist: onnxruntime; extra == "vision"
Requires-Dist: aiohttp; extra == "vision"
Provides-Extra: extract
Requires-Dist: python-docx; extra == "extract"
Requires-Dist: openpyxl; extra == "extract"
Requires-Dist: brotli; extra == "extract"
Requires-Dist: zstandard; extra == "extract"
Provides-Extra: keywords
Requires-Dist: keybert; extra == "keywords"
Provides-Extra: tts
Requires-Dist: chatterbox-tts; extra == "tts"
Provides-Extra: comfy
Requires-Dist: aiohttp; extra == "comfy"
Provides-Extra: local
Provides-Extra: core
Requires-Dist: hugpy-core>=0.4.84; extra == "core"
Provides-Extra: all
Requires-Dist: hugpy-media[audio,comfy,embed,extract,imagegen,keywords,transformers,vision]; extra == "all"
Dynamic: license-file

# hugpy-media

Hugpy Media serves a browser workspace and HTTP tools for audio, images, documents and chat. The service handles uploads and task requests, and uses a configured Hugpy endpoint for model inference.

## Installation

Install Media in the arms environment. Standalone inference goes through Core to Wrapper, which loads and runs models in the worker’s Engine environment.

```sh
python -m pip install hugpy-media
```

## Quick start

Start the service and explicitly point it at a Core 0.5 instance. Open `http://127.0.0.1:7340/media/` to use the workspace.

```sh
HUGPY_CORE_URL=http://127.0.0.1:7020 hugpy-media serve --host 127.0.0.1 --port 7340
```

A reachable Core and a Wrapper offering the corresponding task are required for model-backed requests. Check `GET /api/media/capabilities` for the enabled tools. Specialized image analysis requires a matching Wrapper endpoint.

![Hugpy Media workspace with conversation and media task controls](https://hugpy.ai/downloads/gallery/hugpy/hugpy-media.png)

## Task interfaces

| Workflow | Interface |
| --- | --- |
| Inspect and search documents | Upload a source, extract an artifact, then retrieve pages or search with the source and artifact ID. The native reader and OCR integration come from `media-intelligence`. |
| Work with audio and images | Use the media tools for transcription, speech synthesis, image analysis or generation. Available models determine which tasks can run. |
| Use chat or embeddings | Send model requests through the service’s `/v1` proxy to the configured inference endpoint. |

## Integration

The standalone Flask application serves the workspace under `/media/` and the tool routes under `/api/media/`. Media also publishes route, task and UI entry points for compatible Python hosts. `HUGPY_MEDIA_HOST` and `HUGPY_MEDIA_PORT` set the standalone listener. Use `HUGPY_CORE_URL` to match the actual Core address of the deployment.

To inspect the HTTP surface of a running standalone instance, request `GET /api/endpoints`. The response lists the registered URLs and methods, including the optional functionality present in that deployment.
