streamlit-carousel


Namestreamlit-carousel JSON
Version 1.1.2 PyPI version JSON
download
home_pagehttps://github.com/thomasbs17/streamlit-contributions/bootstrap_carousel
SummaryA Streamlit implementation of the React Bootstrap Carousel component.
upload_time2024-08-26 17:42:28
maintainerNone
docs_urlNone
authorThomas Bouamoud
requires_python>=3.6
licenseCopyright (c) 2023 Thomas Bouamoud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords python streamlit react bootstrap carousel gallery
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Streamlit Carousel

Streamlit Carousel is a Python package that provides a custom component for integrating the React Bootstrap Carousel into Streamlit applications.

## Installation

To install streamlit_carousel, use the following command:

```shell
pip install streamlit-carousel
```

## Usage

Once installed, you can use the streamlit_carousel component in your Streamlit application. Here's an example:

```python
from streamlit_carousel import carousel

test_items = [
    dict(
        title="Slide 1",
        text="A tree in the savannah",
        img="https://img.freepik.com/free-photo/wide-angle-shot-single-tree-growing-clouded-sky-during-sunset-surrounded-by-grass_181624-22807.jpg?w=1380&t=st=1688825493~exp=1688826093~hmac=cb486d2646b48acbd5a49a32b02bda8330ad7f8a0d53880ce2da471a45ad08a4",
        link="https://discuss.streamlit.io/t/new-component-react-bootstrap-carousel/46819",
    ),
    dict(
        title="Slide 2",
        text="A wooden bridge in a forest in Autumn",
        img="https://img.freepik.com/free-photo/beautiful-wooden-pathway-going-breathtaking-colorful-trees-forest_181624-5840.jpg?w=1380&t=st=1688825780~exp=1688826380~hmac=dbaa75d8743e501f20f0e820fa77f9e377ec5d558d06635bd3f1f08443bdb2c1",
        link="https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel",
    ),
    dict(
        title="Slide 3",
        text="A distant mountain chain preceded by a sea",
        img="https://img.freepik.com/free-photo/aerial-beautiful-shot-seashore-with-hills-background-sunset_181624-24143.jpg?w=1380&t=st=1688825798~exp=1688826398~hmac=f623f88d5ece83600dac7e6af29a0230d06619f7305745db387481a4bb5874a0",
        link="https://github.com/thomasbs17/streamlit-contributions/tree/master",
    ),
    dict(
        title="Slide 4",
        text="PANDAS",
        img="pandas.webp",
    ),
    dict(
        title="Slide 4",
        text="CAT",
        img="cat.jpg",
    ),
]

carousel(items=test_items)
```

Please note that the images provided should be the path or URL to the image files.

## Known issues
- If an item's text is too long, it overflows on other items

## Contributing
Contributions to Streamlit Carousel are welcome! If you find any issues or have suggestions for improvements, please open an issue on the [GitHub repository](https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel). If you'd like to contribute code, you can fork the repository, make your changes, and submit a pull request.

Before contributing, please review the [Contributing Guidelines](https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel/README.md) for more information.

## License
This package is licensed under the MIT License. See the [LICENSE file](https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel/LICENSE) for more information.

## Credits
Streamlit Carousel is created and maintained by Thomas Bouamoud. 
It leverages the [React Bootstrap Carousel component](https://react-bootstrap.netlify.app/docs/components/carousel/) and utilizes the Streamlit Custom Components feature.

## Contact
If you have any questions or inquiries, feel free to reach out to thomas.bouamoud@gmail.com.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thomasbs17/streamlit-contributions/bootstrap_carousel",
    "name": "streamlit-carousel",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "python, streamlit, react, bootstrap, carousel, gallery",
    "author": "Thomas Bouamoud",
    "author_email": "Thomas Bouamoud <thomas.bouamoud@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8b/0d/1d8254fd32e25ea5c7422b0003ddd96dc6d79ce414dbb7bb807facac7d87/streamlit_carousel-1.1.2.tar.gz",
    "platform": null,
    "description": "# Streamlit Carousel\n\nStreamlit Carousel is a Python package that provides a custom component for integrating the React Bootstrap Carousel into Streamlit applications.\n\n## Installation\n\nTo install streamlit_carousel, use the following command:\n\n```shell\npip install streamlit-carousel\n```\n\n## Usage\n\nOnce installed, you can use the streamlit_carousel component in your Streamlit application. Here's an example:\n\n```python\nfrom streamlit_carousel import carousel\n\ntest_items = [\n    dict(\n        title=\"Slide 1\",\n        text=\"A tree in the savannah\",\n        img=\"https://img.freepik.com/free-photo/wide-angle-shot-single-tree-growing-clouded-sky-during-sunset-surrounded-by-grass_181624-22807.jpg?w=1380&t=st=1688825493~exp=1688826093~hmac=cb486d2646b48acbd5a49a32b02bda8330ad7f8a0d53880ce2da471a45ad08a4\",\n        link=\"https://discuss.streamlit.io/t/new-component-react-bootstrap-carousel/46819\",\n    ),\n    dict(\n        title=\"Slide 2\",\n        text=\"A wooden bridge in a forest in Autumn\",\n        img=\"https://img.freepik.com/free-photo/beautiful-wooden-pathway-going-breathtaking-colorful-trees-forest_181624-5840.jpg?w=1380&t=st=1688825780~exp=1688826380~hmac=dbaa75d8743e501f20f0e820fa77f9e377ec5d558d06635bd3f1f08443bdb2c1\",\n        link=\"https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel\",\n    ),\n    dict(\n        title=\"Slide 3\",\n        text=\"A distant mountain chain preceded by a sea\",\n        img=\"https://img.freepik.com/free-photo/aerial-beautiful-shot-seashore-with-hills-background-sunset_181624-24143.jpg?w=1380&t=st=1688825798~exp=1688826398~hmac=f623f88d5ece83600dac7e6af29a0230d06619f7305745db387481a4bb5874a0\",\n        link=\"https://github.com/thomasbs17/streamlit-contributions/tree/master\",\n    ),\n    dict(\n        title=\"Slide 4\",\n        text=\"PANDAS\",\n        img=\"pandas.webp\",\n    ),\n    dict(\n        title=\"Slide 4\",\n        text=\"CAT\",\n        img=\"cat.jpg\",\n    ),\n]\n\ncarousel(items=test_items)\n```\n\nPlease note that the images provided should be the path or URL to the image files.\n\n## Known issues\n- If an item's text is too long, it overflows on other items\n\n## Contributing\nContributions to Streamlit Carousel are welcome! If you find any issues or have suggestions for improvements, please open an issue on the [GitHub repository](https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel). If you'd like to contribute code, you can fork the repository, make your changes, and submit a pull request.\n\nBefore contributing, please review the [Contributing Guidelines](https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel/README.md) for more information.\n\n## License\nThis package is licensed under the MIT License. See the [LICENSE file](https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel/LICENSE) for more information.\n\n## Credits\nStreamlit Carousel is created and maintained by Thomas Bouamoud. \nIt leverages the [React Bootstrap Carousel component](https://react-bootstrap.netlify.app/docs/components/carousel/) and utilizes the Streamlit Custom Components feature.\n\n## Contact\nIf you have any questions or inquiries, feel free to reach out to thomas.bouamoud@gmail.com.\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2023 Thomas Bouamoud  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A Streamlit implementation of the React Bootstrap Carousel component.",
    "version": "1.1.2",
    "project_urls": {
        "Homepage": "https://github.com/thomasbs17/streamlit-contributions/tree/master/bootstrap_carousel"
    },
    "split_keywords": [
        "python",
        " streamlit",
        " react",
        " bootstrap",
        " carousel",
        " gallery"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5bb816f7e65c3ec9d7346f2638be4658cbc93eee13c5e99a4d12d1c8b6de112a",
                "md5": "4a3313493de531f3578db549b2553ca7",
                "sha256": "dabc6e86056c704b105d39299a29131f2283713b4d91ce95fd36ad02b62855bc"
            },
            "downloads": -1,
            "filename": "streamlit_carousel-1.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4a3313493de531f3578db549b2553ca7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 563126,
            "upload_time": "2024-08-26T17:42:26",
            "upload_time_iso_8601": "2024-08-26T17:42:26.875518Z",
            "url": "https://files.pythonhosted.org/packages/5b/b8/16f7e65c3ec9d7346f2638be4658cbc93eee13c5e99a4d12d1c8b6de112a/streamlit_carousel-1.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b0d1d8254fd32e25ea5c7422b0003ddd96dc6d79ce414dbb7bb807facac7d87",
                "md5": "03c2a50f0a00038399ba26fd87b738c1",
                "sha256": "30e2f9255bd81611eb7c3493003a454fcec00f547d6ad353a5c98d89d7bbce20"
            },
            "downloads": -1,
            "filename": "streamlit_carousel-1.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "03c2a50f0a00038399ba26fd87b738c1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 559535,
            "upload_time": "2024-08-26T17:42:28",
            "upload_time_iso_8601": "2024-08-26T17:42:28.761880Z",
            "url": "https://files.pythonhosted.org/packages/8b/0d/1d8254fd32e25ea5c7422b0003ddd96dc6d79ce414dbb7bb807facac7d87/streamlit_carousel-1.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-26 17:42:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thomasbs17",
    "github_project": "streamlit-contributions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "streamlit-carousel"
}
        
Elapsed time: 0.83126s