Skip to main content

hedron-gradio

PyPI Python CI License: MIT

Production-grade Gradio client interoperability for Hedron.

Endpoint discovery, allowlisted remote calls, typed predict / job / stream helpers, 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 (at 0.34 train cut):
pip install "hedron[gradio]>=0.34.0,<0.35"

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

Links

License

MIT. See the repository license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hedron_gradio-0.2.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hedron_gradio-0.2.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file hedron_gradio-0.2.0.tar.gz.

File metadata

  • Download URL: hedron_gradio-0.2.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for hedron_gradio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8d2d2e91596a1dd61ee2e7e6bb833acd489c0416f147261b8f681adfcde56d2d
MD5 dab038e81c8bfd4c977d14a7f1239f8d
BLAKE2b-256 2bb809d6f207edcc65036f7c18f89da0404ba38d896f8458ef311803f1313d02

See more details on using hashes here.

File details

Details for the file hedron_gradio-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hedron_gradio-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for hedron_gradio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3abdc96fa2dbec3159865e681ff3a79a560cba7461dc41aecc99c212537c5e78
MD5 c00965705b788d39a1ca31b8e483decd
BLAKE2b-256 d67bde3cea55db8fe8c506379382d028bbb678cac8205ebf2c17da7d274015b2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page