hugpy-tools
Hugpy Tools exposes portable operations for text, files, structured data and web content. An application can discover their input schemas and call them locally from Python or the command line.
Installation
Install optional backends only for the capabilities you use. Examples include documents, images, render and media.
python -m pip install hugpy-tools
Quick start
List the tools, then call the token estimator with a JSON argument.
hugpy-tools list
hugpy-tools call text_estimate_tokens --arguments '{"text":"hello world"}'
The estimator reports an approximation. Use the schema returned by list to inspect the inputs for a particular tool.
Python API
from hugpy_tools import call_tool, list_tools
schemas = list_tools()
result = call_tool("text_estimate_tokens", {"text": "hello world"})
get_toolset() returns the category-to-callable mapping used by hosts. hugpy-tools list --optional includes optional tools, and call --optional enables their lookup. The CLI accepts --arguments - to read a JSON object from standard input.
Hosted use
Abstract Toolserver adds transport, authentication and persistent host services around these operations. Local callers can use Hugpy Tools directly. Shared parsing, file inspection and sizing functions come from Hugpy Resources.
For code that needs the registry rather than a single result, get_toolset() returns fresh category mappings. To expose only a subset of tools, select those callables or schemas before adding them to the host application. Optional integrations keep their own dependency and runtime requirements.
Metadata
Release files for hugpy-tools 0.2.27
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hugpy_tools-0.2.27.tar.gz | 64.4 kB | Without provenance | Details for hugpy_tools-0.2.27.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hugpy_tools-0.2.27-py3-none-any.whl | Python 3 | none | any | Details for hugpy_tools-0.2.27-py3-none-any.whl |
Total release size: 120.4 kB
Release files / hugpy_tools-0.2.27.tar.gz
| Download URL | hugpy_tools-0.2.27.tar.gz |
|---|---|
| Size | 64.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df33060d76b7fe42a8aca797147c390ad6738143ed4a046caf1ce668845d9240
|
|
BLAKE2b-256 checksum How to use checksums |
e6c62e3a4b2363c20622c58d6c06b758f42b624c1c0040a25c6c4f59c3bc5eed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / hugpy_tools-0.2.27-py3-none-any.whl
| Download URL | hugpy_tools-0.2.27-py3-none-any.whl |
|---|---|
| Size | 56.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbf1770a25b561956d924672c43df70c34bd8d5bc7dc1c014d7e6bbee4b4c2a8
|
|
BLAKE2b-256 checksum How to use checksums |
a4359b055fc66dadb5b3570064644d4687734c2910e815daf51059f3d753f6b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for hugpy-tools 0.2.27
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.