hugpy-discovery
Hugpy Discovery inventories model files on declared drives. It records model facts, tensors, weight chunks and available copies, then publishes an SQLite export that Wrapper uses to decide which models it can serve.
Installation
Use Python 3.11 or later on a host with readable model storage.
python -m pip install 'hugpy-discovery>=0.2,<0.3'
Quick start
Replace the example path with a model store. The immutable role lets Discovery inventory a drive while excluding it as a write destination.
hugpy-discovery drives add /data/models immutable
hugpy-discovery scan
hugpy-discovery routes
Start hugpy-discovery serve to browse the record. Use hugpy-discovery watch to track changes to declared drives and refresh the export.
Drives and placement
Declare drives as central, worker or immutable. Discovery records a model once and associates its files with each drive that holds them. It compares the measured cost of loading a complete copy with the cost of moving and then loading one. hugpy-discovery routes MODEL explains a choice. hugpy-discovery accommodate MODEL prepares the selected copy and may write model files on a writable drive.
Consumer interface
The api_*_v1 tables in export.sqlite3 describe the model inventory for other processes. hugpy-discovery export refreshes them from the record, and hugpy-discovery request accepts JSON requests. Engine’s export supplies backend capabilities used when matching files to engines.
For host-wide operation, hugpy-discovery system install provisions the watcher under systemd and sets access to declared drives. Its state lives under /var/lib/hugpy/discovery. Per-user operation defaults to ~/.local/share/hugpy/discovery.
Host service
On a systemd host, hugpy-discovery system install provisions the watcher and its data directory. It can declare a drive during installation or apply access permissions for one added later. For a single-user installation the default data directory is ~/.local/share/hugpy/discovery. The system service uses /var/lib/hugpy/discovery. Use hugpy-discovery settings to inspect the effective configuration and hugpy-discovery system status to inspect the service.
Metadata
Release files for hugpy-discovery 0.2.2
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_discovery-0.2.2.tar.gz | 141.9 kB | Without provenance | Details for hugpy_discovery-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hugpy_discovery-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for hugpy_discovery-0.2.2-py3-none-any.whl |
Total release size: 313.8 kB
Release files / hugpy_discovery-0.2.2.tar.gz
| Download URL | hugpy_discovery-0.2.2.tar.gz |
|---|---|
| Size | 141.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d94a23e09063afda2ae527cdd3b4e7c7a438f4d297129856d3df1b2e4d421620
|
|
BLAKE2b-256 checksum How to use checksums |
2d8a32becbabbceadd53d1703e4a872da882f73edc970840d8176a8df14c2a6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / hugpy_discovery-0.2.2-py3-none-any.whl
| Download URL | hugpy_discovery-0.2.2-py3-none-any.whl |
|---|---|
| Size | 172.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89123907da353fc9e2cb27c1790c9c78d0e96f19b5a28e7d6390357e05937a2c
|
|
BLAKE2b-256 checksum How to use checksums |
74092a66854b73ae044fdca93767b0b739a4e32cf41aed9a190d1d5e9191aff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for hugpy-discovery 0.2.2
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.