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.0,<0.3"
# or
uv add "hedron-gradio>=0.2.0,<0.3"
# via flagship extra:
pip install "hedron[gradio]>=0.61.0,<0.62"

Requires Python 3.11–3.14.

For live Gradio endpoints, also install gradio_client. The package imports without gradio or gradio_client installed; with declared endpoints and no client library, helpers return stub-friendly status payloads.

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.1

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.1
File Size Uploaded
hedron_gradio-0.2.1.tar.gz 15.0 kB Details

Built distribution (wheel)

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

Total release size: 33.5 kB

Release files / hedron_gradio-0.2.1.tar.gz

Download URL hedron_gradio-0.2.1.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9421b85dd2b6cc99e29a2913889f59b41209971d73b7c083ddf774774385f093
BLAKE2b-256 checksum
How to use checksums
53ad604b54a3fac1eb2f2dba496ff5e2d701b0e211ae2c297f83948da03260c3
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.1-py3-none-any.whl

Download URL hedron_gradio-0.2.1-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17f35ca380bce312ea719f72a8a5af83082b05127387c527ca83cdb030c4b28b
BLAKE2b-256 checksum
How to use checksums
7d487c1055714da5b5858dc0f3cde1348add8ac40bc4bcfce6374742da44830a
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

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

This release

0.2.1 This release

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