# `gradio_collection`
<div style="display: flex; gap: 7px;">
<a href="https://pypi.org/project/gradio-collection/" target="_blank"><img alt="PyPI" src="https://img.shields.io/pypi/v/gradio-collection"></a>
<a href="https://huggingface.co/spaces/dwancin/gradio_collection" target="_blank"><img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Demo-%23097EFF?style=flat&logoColor=black"></a>
<a href="https://github.com/dwancin/gradio-collection" target="_blank"><img alt="GitHub" src="https://img.shields.io/badge/Repository-white?logo=github&logoColor=black"></a>
</div>
The `gradio_collection` package is a *meta-package* that consolidates a range of [custom Gradio components](https://www.gradio.app/guides/custom-components-in-five-minutes) into one easily installable collection.
## Installation
To install the package, execute this command in your terminal:
```bash
pip install gradio_collection
```
## Usage
To use the package, add this import statement to your Python script:
```python
import gradio_collection as gc
```
## Components
This package includes custom Gradio components designed to enhance your user interfaces:
| Component | Description |
|---------------------|-----------------------------------------------------------------------------------------------------|
| **Toggle** | A button that toggles between on and off states. |
| **Calendar** | A Textbox for selecting dates with a built-in calendar. |
| **ImageFeed** | A vertical feed of images that updates dynamically as new images are generated. |
| **HighlightedCode** | Enhances the Code component with line highlighting capabilities. |
| **PDF** | A component for displaying PDF files. |
| **ImageSlider** | Allows users to compare two images side-by-side. |
| **Folium** | Integrates Folium maps, enabling the display of interactive maps. |
## Block Layouts
The package also includes custom layout elements for Gradio Blocks:
| Component | Description |
|---------------------|-----------------------------------------------------------------------------------------------------|
| **Grid** | A layout element that renders all children in a two dimensional grid system. |
| **Modal** | A popup modal within Blocks for displaying additional information or collecting inputs. |
| **Notebook** | Creates a notebook playground within Hugging Face Spaces, simplifying the execution of live code. |
## Examples
Below is an example using the `Toggle` component in a Gradio Blocks interface:
```python
import gradio as gr
import gradio_collection as gc
def toggle_action(value):
return "Toggle is **on**." if value else "Toggle is **off**."
with gr.Blocks() as demo:
toggle = gc.Toggle(label="Input", show_label=True, info="Toggle this button.")
output = gr.Label(label="Output")
toggle.change(fn=toggle_action, inputs=toggle, outputs=output)
demo.launch()
```
## Acknowledgements
Special thanks to the authors of the individual Gradio components included in this collection.
| Author | Packages
|----------------------|--------------------------------------------------------------------------------------------------------------------------|
| [**Daniel Ialcin Misser Westergaard**](https://huggingface.co/dwancin) | [*`gradio_collection`*](https://pypi.org/project/gradio-collection), [`gradio_toggle`](https://pypi.org/project/gradio-toggle), [`gradio_grid`](https://pypi.org/project/gradio-grid) |
| [**Freddy Boulton**](https://huggingface.co/freddyaboulton) | [`gradio_pdf`](https://pypi.org/project/gradio-pdf), [`gradio_calendar`](https://pypi.org/project/gradio-calendar), [`gradio_folium`](https://pypi.org/project/gradio-folium) |
| [**Ali Abdalla**](https://huggingface.co/aliabd) | [`gradio_imagefeed`](https://pypi.org/project/gradio-imagefeed) |
| [**Abubakar Abid**](https://huggingface.co/abidlabs) | [`gradio_highlightedcode`](https://pypi.org/project/gradio-highlightedcode) |
| [**Ali Abid**](https://huggingface.co/aliabid94) | [`gradio_modal`](https://pypi.org/project/gradio-modal) |
| [**Pete**](https://huggingface.co/pngwn) | [`gradio_imageslider`](https://pypi.org/project/gradio-imageslider) |
| [**LastMile AI**](https://huggingface.co/lastmileai) | [`gradio_notebook`](https://pypi.org/project/gradio-notebook) |
Raw data
{
"_id": null,
"home_page": "https://github.com/dwancin/gradio-collection/",
"name": "gradio-collection",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "gradio, gradio-custom-component, meta-package",
"author": "Daniel Ialcin Misser Westergaard",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4a/73/eeaff7c99abba433087068e5fdeb6a27249c4208d4a8c326a560c45c251b/gradio_collection-1.0.1.tar.gz",
"platform": null,
"description": "# `gradio_collection`\n<div style=\"display: flex; gap: 7px;\">\n <a href=\"https://pypi.org/project/gradio-collection/\" target=\"_blank\"><img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/gradio-collection\"></a>\n <a href=\"https://huggingface.co/spaces/dwancin/gradio_collection\" target=\"_blank\"><img alt=\"Hugging Face\" src=\"https://img.shields.io/badge/%F0%9F%A4%97%20Demo-%23097EFF?style=flat&logoColor=black\"></a>\n <a href=\"https://github.com/dwancin/gradio-collection\" target=\"_blank\"><img alt=\"GitHub\" src=\"https://img.shields.io/badge/Repository-white?logo=github&logoColor=black\"></a>\n</div>\n\nThe `gradio_collection` package is a *meta-package* that consolidates a range of [custom Gradio components](https://www.gradio.app/guides/custom-components-in-five-minutes) into one easily installable collection.\n\n## Installation\nTo install the package, execute this command in your terminal:\n\n```bash\npip install gradio_collection\n```\n\n## Usage\nTo use the package, add this import statement to your Python script:\n\n```python\nimport gradio_collection as gc\n```\n\n## Components\nThis package includes custom Gradio components designed to enhance your user interfaces:\n\n| Component | Description |\n|---------------------|-----------------------------------------------------------------------------------------------------|\n| **Toggle** | A button that toggles between on and off states. |\n| **Calendar** | A Textbox for selecting dates with a built-in calendar. |\n| **ImageFeed** | A vertical feed of images that updates dynamically as new images are generated. |\n| **HighlightedCode** | Enhances the Code component with line highlighting capabilities. |\n| **PDF** | A component for displaying PDF files. |\n| **ImageSlider** | Allows users to compare two images side-by-side. |\n| **Folium** | Integrates Folium maps, enabling the display of interactive maps. |\n\n## Block Layouts\nThe package also includes custom layout elements for Gradio Blocks:\n\n| Component | Description |\n|---------------------|-----------------------------------------------------------------------------------------------------|\n| **Grid** | A layout element that renders all children in a two dimensional grid system. |\n| **Modal** | A popup modal within Blocks for displaying additional information or collecting inputs. |\n| **Notebook** | Creates a notebook playground within Hugging Face Spaces, simplifying the execution of live code. |\n\n## Examples\nBelow is an example using the `Toggle` component in a Gradio Blocks interface:\n\n```python\nimport gradio as gr\nimport gradio_collection as gc\n\ndef toggle_action(value):\n return \"Toggle is **on**.\" if value else \"Toggle is **off**.\"\n\nwith gr.Blocks() as demo:\n toggle = gc.Toggle(label=\"Input\", show_label=True, info=\"Toggle this button.\")\n output = gr.Label(label=\"Output\")\n \n toggle.change(fn=toggle_action, inputs=toggle, outputs=output)\n \ndemo.launch()\n```\n\n## Acknowledgements\nSpecial thanks to the authors of the individual Gradio components included in this collection.\n\n| Author | Packages \n|----------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [**Daniel Ialcin Misser Westergaard**](https://huggingface.co/dwancin) | [*`gradio_collection`*](https://pypi.org/project/gradio-collection), [`gradio_toggle`](https://pypi.org/project/gradio-toggle), [`gradio_grid`](https://pypi.org/project/gradio-grid) |\n| [**Freddy Boulton**](https://huggingface.co/freddyaboulton) | [`gradio_pdf`](https://pypi.org/project/gradio-pdf), [`gradio_calendar`](https://pypi.org/project/gradio-calendar), [`gradio_folium`](https://pypi.org/project/gradio-folium) |\n| [**Ali Abdalla**](https://huggingface.co/aliabd) | [`gradio_imagefeed`](https://pypi.org/project/gradio-imagefeed) |\n| [**Abubakar Abid**](https://huggingface.co/abidlabs) | [`gradio_highlightedcode`](https://pypi.org/project/gradio-highlightedcode) |\n| [**Ali Abid**](https://huggingface.co/aliabid94) | [`gradio_modal`](https://pypi.org/project/gradio-modal) |\n| [**Pete**](https://huggingface.co/pngwn) | [`gradio_imageslider`](https://pypi.org/project/gradio-imageslider) |\n| [**LastMile AI**](https://huggingface.co/lastmileai) | [`gradio_notebook`](https://pypi.org/project/gradio-notebook) |\n",
"bugtrack_url": null,
"license": null,
"summary": "A collection of Custom Gradio components.",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/dwancin/gradio-collection/"
},
"split_keywords": [
"gradio",
" gradio-custom-component",
" meta-package"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a4ae5d3a65ddcb900bb8a43170ec215650b9bc8c9e43875bdebd4c9bbde8d166",
"md5": "2dfc7cdce7d1c6c599f47e310b90a1fd",
"sha256": "d4796963dfc6ce43ec963f61bf07b493a9b3810c51cb3d7a8b951191a74abac3"
},
"downloads": -1,
"filename": "gradio_collection-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2dfc7cdce7d1c6c599f47e310b90a1fd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3484,
"upload_time": "2024-05-04T01:28:08",
"upload_time_iso_8601": "2024-05-04T01:28:08.016848Z",
"url": "https://files.pythonhosted.org/packages/a4/ae/5d3a65ddcb900bb8a43170ec215650b9bc8c9e43875bdebd4c9bbde8d166/gradio_collection-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4a73eeaff7c99abba433087068e5fdeb6a27249c4208d4a8c326a560c45c251b",
"md5": "bc4746aa1e7eca372e92dbb16086f26d",
"sha256": "c49ba07b671ff4bee9256c0cdb545ca1b4199b86e6113b49ee59efef025e8fe5"
},
"downloads": -1,
"filename": "gradio_collection-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "bc4746aa1e7eca372e92dbb16086f26d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3483,
"upload_time": "2024-05-04T01:28:09",
"upload_time_iso_8601": "2024-05-04T01:28:09.382776Z",
"url": "https://files.pythonhosted.org/packages/4a/73/eeaff7c99abba433087068e5fdeb6a27249c4208d4a8c326a560c45c251b/gradio_collection-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-04 01:28:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dwancin",
"github_project": "gradio-collection",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "gradio-collection"
}