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.10–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.
Release files for hedron-gradio 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hedron_gradio-0.2.4.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hedron_gradio-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.1 kB
Release files / hedron_gradio-0.2.4.tar.gz
| Download URL | hedron_gradio-0.2.4.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27006de7cb8aafd1e64aee3ac316788c474f9ae4470780faeade691282dd814c
|
|
BLAKE2b-256 checksum How to use checksums |
60c0a9531ffb9a080345bc449681462210c10b0966f36fe49a1f907b01a5f6a8
|
| 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.4-py3-none-any.whl
| Download URL | hedron_gradio-0.2.4-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b073f142881bfa762cae8f779c7940edbe5ac0f4dd753f0563b82145c89d01f2
|
|
BLAKE2b-256 checksum How to use checksums |
c815370c0b5c6c70a4e3d1f0cb9bd2b41bf4a3668ef677452d25ee5fa767a6dd
|
| 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}
|