streamlit custom token craft and management component
Project description
🌟 Streamlit Token Craft Component 🚀
[![PyPI][pypi_badge]][pypi_link] [![Download][download_badge]][download_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!
Peek at more cool tricks up its sleeve!
Installation 🛠️
Get this party started with a simple command:
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:
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 for column selection.
Contributing 🤝
Got ideas? Jump in! Contributions are as welcome as puppies at a park! 🐶
For more information, see CONTRIBUTING instructions.
License 📜
This project is licenced under an MIT Licence.
[pypi_badge]:
[pypi_link]:
[download_badge]:
[download_link]:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for streamlit-token_craft-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b1462f60fbcd3857db42bfa4cd839e0310d7a28bfa764ae8210fca92d957b2 |
|
MD5 | 80c870147b0cbc65b42b489f4c25c41d |
|
BLAKE2b-256 | 60882d6d9423f52324cc39ec331d9ffd670f61bd3c02e17cdd9cf07f0b504469 |