hedron-gradio
Production-grade Gradio client interoperability for Hedron.
Endpoint discovery, allowlisted remote calls, predict / job / stream helpers with explicit schemas, bounded file transport, and Hugging Face vendor-node adapters — without embedding Gradio’s UI runtime in core. Disabled by default; absence of this package adds no core dependency or startup cost.
Also available as the flagship extra hedron[gradio].
Package maturity: Beta · Train: 0.2.x · pin >=0.2.0,<0.3
Install
pip install "hedron-gradio>=0.2.3,<0.3"
# or
uv add "hedron-gradio>=0.2.0,<0.3"
# via flagship extra:
pip install "hedron[gradio]>=1.0.0"
Requires Python 3.11–3.14.
Hedron does not automatically construct gradio_client.Client: that library
does not expose the connection-bound transport needed to prevent DNS rebinding.
Use declared endpoints for offline/stub behavior, or provide an
application-owned transport that routes its HTTP through
hedron_core.fetch_with_policy.
Quick start
from hedron_gradio import GradioClientAdapter, GradioEndpoint, GradioRemoteConfig
config = GradioRemoteConfig.from_base_url("https://example.gradio.live")
adapter = GradioClientAdapter(
base_url=config.base_url,
enabled=True,
remote_config=config,
endpoints=(GradioEndpoint(name="predict", api_name="/predict", parameters={}),),
)
endpoints = adapter.discover()
result = adapter.predict("predict", {"text": "hi"})
With enabled=False (the default), discover() returns empty.
Public API
| Symbol | Role |
|---|---|
GradioRemoteConfig |
Allowlisted destination policy |
GradioClientAdapter |
Discovery, predict, jobs, streams, file transfer |
GradioEndpoint |
Declared endpoint metadata |
GradioRemoteError |
Remote failure signal |
HuggingFaceVendorNode / hf_space_node |
HF Space vendor helpers |
Links
License
MIT. See the repository license.
Metadata
Release files for hedron-gradio 0.2.6
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 |
|---|---|---|---|---|
| hedron_gradio-0.2.6.tar.gz | 16.1 kB | Without provenance | Details for hedron_gradio-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hedron_gradio-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for hedron_gradio-0.2.6-py3-none-any.whl |
Total release size: 35.3 kB
Release files / hedron_gradio-0.2.6.tar.gz
| Download URL | hedron_gradio-0.2.6.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d617066bb7ea87670cf239d253e7d34790dd339d4ed9b5059edb96e04f9e53d
|
|
BLAKE2b-256 checksum How to use checksums |
9ecaa42e9a24dd70e4727949d6caf6d5568ba2b85b154c71d6988339e6bfa397
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / hedron_gradio-0.2.6-py3-none-any.whl
| Download URL | hedron_gradio-0.2.6-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1caf63ff2d36766941c3dc9a7139aedc5aaacd0c64eeb69e4fbd9b12dabe1107
|
|
BLAKE2b-256 checksum How to use checksums |
31e6ba961f591749f8c9b3d14a43056120e35f6baf24e4310598a69b277c6e00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for hedron-gradio 0.2.6
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.