Skip to main content

Hugging Bay Python SDK

This source is the unpublished hugging-bay 0.4.12 candidate for Python 3.9 or newer. It corrects shared retry hints and read pacing in SwarmClient, retains find_model(..., snapshot=...), hardware and memory filters, and the optional oneAnswer finder verdict. Version 0.4.11 is already on PyPI. Pip installs the package's dependencies, including httpx and cryptography.

Install in a virtual environment with python -m pip install 'hugging-bay==0.4.11'. Follow the Python quickstart for the tested install and search example. Public catalog reads need no account or token.

Read the catalog

Use Client for search, repository resolution, artifact records and download plans. Search returns rows; use a returned row's id for later requests. Keep nextCursor unchanged with the same query and filters for pagination.

A download plan describes file availability and recorded hashes. A catalog match or a hosted file does not establish a complete model, hardware compatibility, quality or permission to use it. Inspect the current plan and license before downloading; compare downloaded bytes with the expected hash.

Handle errors

For an unsuccessful HTTP response, the client raises HuggingBayError with status, body and retry_after_seconds. Error codes and request IDs may also be available. A network or timeout failure can raise an httpx exception before an HTTP response exists.

Honor retry hints, limit total attempts and keep API errors separate from empty results. For multiple workers, share a queue, request budget and cooldown. Server extensions depend on the deployment; a package export does not prove that its backing route is enabled. In particular, SwarmClient.limits() returns HTTP 404 when the server's optional swarm features are disabled. The client preserves that error; it does not infer a budget from another endpoint.

Reference

Bay Run is a separate service with separate credentials and limits. This catalog quickstart does not call it. The hosted single-file SDK is also a separate distribution; use the PyPI package for the guide linked above.

License

MIT.

Metadata

Release files for hugging-bay 0.4.12

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

Source distribution (sdist)

Source distribution for hugging-bay 0.4.12
File Size Uploaded Provenance Actions
hugging_bay-0.4.12.tar.gz 80.1 kB Without provenance Details for hugging_bay-0.4.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hugging-bay 0.4.12
File Interpreter ABI Platform Actions
hugging_bay-0.4.12-py3-none-any.whl Python 3 none any Details for hugging_bay-0.4.12-py3-none-any.whl

Total release size: 133.4 kB

Release files / hugging_bay-0.4.12.tar.gz

Download URL hugging_bay-0.4.12.tar.gz
Size 80.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f614ad9763fbe62b75fdc53fd1985f121970ede060e13c0fa0568a6fa9d54244
BLAKE2b-256 checksum
How to use checksums
2c20d6dc9e0e1eb412e4f3a2e0c7be771cca76a71e320a3ea70121358d04e4ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Release files / hugging_bay-0.4.12-py3-none-any.whl

Download URL hugging_bay-0.4.12-py3-none-any.whl
Size 53.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d62bc39d1f39e995d57332a46af3132933c8fa9b69165612057cf7f642249da7
BLAKE2b-256 checksum
How to use checksums
5e6c0f07c1ed4371961afa26ed41ff4cbd4cca9443b6221434cc5fe9cf11db01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Security for hugging-bay 0.4.12

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.

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