Skip to main content

hedron-gradio

PyPI Python CI License: MIT

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

License

MIT. See the repository license.

Release files for hedron-gradio 0.2.5

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

Source distribution (sdist)

Source distribution for hedron-gradio 0.2.5
File Size Uploaded
hedron_gradio-0.2.5.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hedron-gradio 0.2.5
File Interpreter ABI Platform
hedron_gradio-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 35.3 kB

Release files / hedron_gradio-0.2.5.tar.gz

Download URL hedron_gradio-0.2.5.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c3b011548f00333c3bf59ce1abb41a2d8f463c42a75051121eb740f3d25a70f9
BLAKE2b-256 checksum
How to use checksums
e357ffa8e19ef5d3c1cf4e4bab89807e5ccc492a5115d692bf8f99af27562e54
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.5-py3-none-any.whl

Download URL hedron_gradio-0.2.5-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43f30e6e98da18cd9683fc736da0e3e39abe42fd2acfab34499f77aeb26a8178
BLAKE2b-256 checksum
How to use checksums
ff20fc7c46a75b75ca856fca2aeec882c4fc0c29ebec4fb057da6f1e152e9c77
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 history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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