Skip to main content

tags: [gradio-path-selector, ] title: gradio_path_selector short_description: A gradio Path Selector colorFrom: blue colorTo: yellow sdk: gradio pinned: false app_file: space.py

gradio_path_selector

PyPI - Version Static Badge

A path Selector component for Gradio

Installation

pip install gradio_path_selector

Build from source

git clone https://github.com/ncassereau-idris/gradio_path_selector
cd gradio_path_selector
make build
pip install dist/gradio_path_selector-*-py3-none-any.whl

Usage

import gradio as gr

from gradio_path_selector import PathSelector


with gr.Blocks() as demo:
    PathSelector()

if __name__ == "__main__":
    demo.launch()

PathSelector

Initialization

name type default description
value
str | Callable | None
None default text to provide in textbox. If callable, the function will be called whenever the app loads to set the initial value of the component.
placeholder
str | None
None placeholder hint to provide behind textbox.
label
str | None
None component name in interface.
every
Timer | float | None
None Continously calls `value` to recalculate it if `value` is a function (has no effect otherwise). Can provide a Timer whose tick resets `value`, or a float that provides the regular interval for the reset Timer.
show_label
bool | None
None if True, will display label.
scale
int | None
None relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.
min_width
int
160 minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.
visible
bool
True If False, component will be hidden.
elem_id
str | None
None An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
elem_classes
list[str] | str | None
None An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
render
bool
True If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
key
int | str | None
None if assigned, will be used to assume identity across a re-render. Components that have the same key across a re-render will have their value preserved.

Events

name description
change Triggered when the value of the PathSelector changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See .input() for a listener that is only triggered by user input.

Metadata

Release files for gradio-path-selector 0.1.3

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

Source distribution (sdist)

Source distribution for gradio-path-selector 0.1.3
File Size Uploaded Provenance
gradio_path_selector-0.1.3.tar.gz 83.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gradio-path-selector 0.1.3
File Interpreter ABI Platform
gradio_path_selector-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 125.1 kB

Release files / gradio_path_selector-0.1.3.tar.gz

Download URL gradio_path_selector-0.1.3.tar.gz
Size 83.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9507e00318586ec751da1754152a3fb3a028e6b482eaa92cac3b3dff1e90c0e8
BLAKE2b-256 checksum
How to use checksums
4e894220c2487d844cf65616847c610516e297279f29f113183b6594d1998e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / gradio_path_selector-0.1.3-py3-none-any.whl

Download URL gradio_path_selector-0.1.3-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7f08e3e8e396372d93625759fe8b306e98e3f629874b8480f7754983f2a7701
BLAKE2b-256 checksum
How to use checksums
655fa4e8123c64f68a23d42348c9f5491b11beb5089c008990035045ac1e78c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for gradio-path-selector 0.1.3

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.

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