streamlit-token-craft


Namestreamlit-token-craft JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/stavrostheocharis/streamlit-token-craft
Summarystreamlit custom token craft and management component
upload_time2024-01-05 16:25:48
maintainer
docs_urlNone
authorStavros Theocharis
requires_python>=3.9
license
keywords python streamlit react javascript token craft token manager
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ๐ŸŒŸ Streamlit Token Craft Component ๐Ÿš€

[![Open in Streamlit][share_badge]][share_link] [![GitHub][github_badge]][github_link] [![PyPI][pypi_badge]][pypi_link] [![Download][download_badge]][download_link] [![Licence][licence_badge]][licence_link]
 
Welcome to the Streamlit Token Craft Component, where managing tokens is as fun as a barrel of monkeys! ๐Ÿ’ This custom Streamlit component is designed to bring joy and efficiency to your data management needs of displaying tokens in your Streamlit app.

## Features ๐ŸŽ‰
* Inline Editing: Edit tokens directly in the table like a ninja! ๐Ÿฅท
* Dynamic Column Visibility: Play hide and seek with your columns! ๐Ÿ™ˆ๐Ÿ™‰
* Action Handling: Manage token deletion with style. It's like having a mini-command center. ๐ŸŽฎ
* Responsive Design: Looks great on screens of all sizes, even on your grandma's old monitor! ๐Ÿ‘ต๐Ÿ’ป

## Demo ๐Ÿ“บ

Watch the Token Craft strut its stuff!

### Basic demo
![image_demo_!](demo.gif)

You can also find the [deployed example app](https://app-token-craft-example.streamlit.app/) in streamlit's community cloud!

Peek at more cool tricks up its sleeve!

### Secondary demo
![image_demo_!](demo_column_selection.gif)

## Installation ๐Ÿ› ๏ธ
Get this party started with a simple command:
```python
pip install streamlit-token-craft
```

## Usage ๐Ÿ“š
Hereโ€™s a very simple example on how to unleash the power of the Token Craft in your app:

```python
import streamlit as st
from token_craft import st_token_table

mock_tokens = [
    {
        "id": "token98a1c077",
        "key": "token98-e316-49d9",
        "display_key": "token98a...e5437d75",
        "name": "Token 1",
        "dateCreated": "2023-12-20",
        "lastUsed": "Never",
        "is_active": True,
    },
]

rendered_tokens = st_token_table(
    tokens=mock_tokens,
    key="token_table",
)
```
> [!IMPORTANT]
> Keep in mind that the functionality of this component has to be combined with your token management service.
>
>For more complex functionality have a look at [demo full app](demo_full_app.py) & [demo for column selection](demo_col_selection_app.py).

## Contributing ๐Ÿค
Got ideas? Jump in! Contributions are as welcome as puppies at a park! ๐Ÿถ

For more information, see [CONTRIBUTING](CONTRIBUTING.md) instructions.

## License ๐Ÿ“œ
This project is licenced under an [MIT Licence](LICENSE).



[share_badge]: https://static.streamlit.io/badges/streamlit_badge_black_white.svg

[share_link]: https://app-token-craft-example.streamlit.app/

[github_badge]: https://badgen.net/badge/icon/GitHub?icon=github&color=black&label

[github_link]: https://github.com/stavrostheocharis/streamlit-token-craft

[pypi_badge]: https://badge.fury.io/py/streamlit-token-craft.svg

[pypi_link]: https://pypi.org/project/streamlit-token-craft

[download_badge]: https://badgen.net/pypi/dm/streamlit-token-craft

[download_link]: https://pypi.org/project/streamlit-token-craft/#files

[licence_badge]: https://img.shields.io/github/license/stavrostheocharis/streamlit-token-craft

[licence_link]: LICENSE




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/stavrostheocharis/streamlit-token-craft",
    "name": "streamlit-token-craft",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "Python,Streamlit,React,JavaScript,token craft,token manager",
    "author": "Stavros Theocharis",
    "author_email": "stavrostheocharis@yahoo.gr",
    "download_url": "https://files.pythonhosted.org/packages/10/29/53c9f49542fe8869d20d2208c1b98540d3acf9afd7adf67a267e7033dac9/streamlit-token_craft-0.2.0.tar.gz",
    "platform": null,
    "description": "# \ud83c\udf1f Streamlit Token Craft Component \ud83d\ude80\n\n[![Open in Streamlit][share_badge]][share_link] [![GitHub][github_badge]][github_link] [![PyPI][pypi_badge]][pypi_link] [![Download][download_badge]][download_link] [![Licence][licence_badge]][licence_link]\n \nWelcome to the Streamlit Token Craft Component, where managing tokens is as fun as a barrel of monkeys! \ud83d\udc12 This custom Streamlit component is designed to bring joy and efficiency to your data management needs of displaying tokens in your Streamlit app.\n\n## Features \ud83c\udf89\n* Inline Editing: Edit tokens directly in the table like a ninja! \ud83e\udd77\n* Dynamic Column Visibility: Play hide and seek with your columns! \ud83d\ude48\ud83d\ude49\n* Action Handling: Manage token deletion with style. It's like having a mini-command center. \ud83c\udfae\n* Responsive Design: Looks great on screens of all sizes, even on your grandma's old monitor! \ud83d\udc75\ud83d\udcbb\n\n## Demo \ud83d\udcfa\n\nWatch the Token Craft strut its stuff!\n\n### Basic demo\n![image_demo_!](demo.gif)\n\nYou can also find the [deployed example app](https://app-token-craft-example.streamlit.app/) in streamlit's community cloud!\n\nPeek at more cool tricks up its sleeve!\n\n### Secondary demo\n![image_demo_!](demo_column_selection.gif)\n\n## Installation \ud83d\udee0\ufe0f\nGet this party started with a simple command:\n```python\npip install streamlit-token-craft\n```\n\n## Usage \ud83d\udcda\nHere\u2019s a very simple example on how to unleash the power of the Token Craft in your app:\n\n```python\nimport streamlit as st\nfrom token_craft import st_token_table\n\nmock_tokens = [\n    {\n        \"id\": \"token98a1c077\",\n        \"key\": \"token98-e316-49d9\",\n        \"display_key\": \"token98a...e5437d75\",\n        \"name\": \"Token 1\",\n        \"dateCreated\": \"2023-12-20\",\n        \"lastUsed\": \"Never\",\n        \"is_active\": True,\n    },\n]\n\nrendered_tokens = st_token_table(\n    tokens=mock_tokens,\n    key=\"token_table\",\n)\n```\n> [!IMPORTANT]\n> Keep in mind that the functionality of this component has to be combined with your token management service.\n>\n>For more complex functionality have a look at [demo full app](demo_full_app.py) & [demo for column selection](demo_col_selection_app.py).\n\n## Contributing \ud83e\udd1d\nGot ideas? Jump in! Contributions are as welcome as puppies at a park! \ud83d\udc36\n\nFor more information, see [CONTRIBUTING](CONTRIBUTING.md) instructions.\n\n## License \ud83d\udcdc\nThis project is licenced under an [MIT Licence](LICENSE).\n\n\n\n[share_badge]: https://static.streamlit.io/badges/streamlit_badge_black_white.svg\n\n[share_link]: https://app-token-craft-example.streamlit.app/\n\n[github_badge]: https://badgen.net/badge/icon/GitHub?icon=github&color=black&label\n\n[github_link]: https://github.com/stavrostheocharis/streamlit-token-craft\n\n[pypi_badge]: https://badge.fury.io/py/streamlit-token-craft.svg\n\n[pypi_link]: https://pypi.org/project/streamlit-token-craft\n\n[download_badge]: https://badgen.net/pypi/dm/streamlit-token-craft\n\n[download_link]: https://pypi.org/project/streamlit-token-craft/#files\n\n[licence_badge]: https://img.shields.io/github/license/stavrostheocharis/streamlit-token-craft\n\n[licence_link]: LICENSE\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "streamlit custom token craft and management component",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/stavrostheocharis/streamlit-token-craft"
    },
    "split_keywords": [
        "python",
        "streamlit",
        "react",
        "javascript",
        "token craft",
        "token manager"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "102953c9f49542fe8869d20d2208c1b98540d3acf9afd7adf67a267e7033dac9",
                "md5": "3036d4aeb6a93faeb076ff8c872ab580",
                "sha256": "c27d5d6f2927d6cd67045c392b52c8389d6bbe51d967a0cc7493e2cededd547b"
            },
            "downloads": -1,
            "filename": "streamlit-token_craft-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3036d4aeb6a93faeb076ff8c872ab580",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 819911,
            "upload_time": "2024-01-05T16:25:48",
            "upload_time_iso_8601": "2024-01-05T16:25:48.878744Z",
            "url": "https://files.pythonhosted.org/packages/10/29/53c9f49542fe8869d20d2208c1b98540d3acf9afd7adf67a267e7033dac9/streamlit-token_craft-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-05 16:25:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stavrostheocharis",
    "github_project": "streamlit-token-craft",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "streamlit-token-craft"
}
        
Elapsed time: 0.18207s