Skip to main content

🌟 Streamlit Token Craft Component 🚀

Open in Streamlit GitHub PyPI Download Licence

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_!

You can also find the deployed example app in streamlit's community cloud!

Peek at more cool tricks up its sleeve!

Secondary demo

image_demo_!

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",
)

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.

Metadata

Release files for streamlit-token-craft 0.2.0

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

Source distribution (sdist)

Source distribution for streamlit-token-craft 0.2.0
File Size Uploaded
streamlit-token_craft-0.2.0.tar.gz 819.9 kB Details

Release files / streamlit-token_craft-0.2.0.tar.gz

Download URL streamlit-token_craft-0.2.0.tar.gz
Size 819.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c27d5d6f2927d6cd67045c392b52c8389d6bbe51d967a0cc7493e2cededd547b
BLAKE2b-256 checksum
How to use checksums
102953c9f49542fe8869d20d2208c1b98540d3acf9afd7adf67a267e7033dac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

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