Streamlit component for chart position selection and management
Project description
Streamlit Chart Positions
Um componente Streamlit para seleção e gerenciamento de posições de gráficos em layouts responsivos.
Instalação
pip install streamlit-chart-positions
Como usar
import streamlit as st
from my_component import my_component
# Lista de posições disponíveis para o gráfico
positions = [
"ROW2, COL1", "ROW2, COL2", "ROW2, COL3",
"ROW3, COL1", "ROW3, COL2", "ROW3, COL3",
"ROW4, COL1", "ROW4, COL2", "ROW4, COL3",
"ROW5, COL1", "ROW5, COL2", "FULL ROW 6",
"ROW7, COL1", "ROW7, COL2", "ROW7, COL3",
"ROW1, COL1(Auto Select)", "ROW1, COL2(Auto Select)", "ROW1, COL3(Auto Select)"
]
# Usar o componente
selected_position = my_component(positions=positions, key="chart_positions")
st.write(f"Posição selecionada: {selected_position}")
Funcionalidades
- Seleção visual de posições de gráficos
- Layout responsivo com grid system
- Suporte a seleção automática
- Integração perfeita com Streamlit
Desenvolvimento
Para executar em modo de desenvolvimento:
cd template/my_component/frontend
npm install
npm run start
Em outro terminal:
streamlit run template/example.py
Passos para corrigir e publicar:
-
Limpe os arquivos antigos:
rmdir /s /q dist rmdir /s /q streamlit_chart_positions.egg-info
-
Reconstrua o pacote:
python -m build
-
Tente publicar novamente:
twine upload dist/*
Se quiser, posso executar esses comandos para você.
Deseja que eu faça isso automaticamente?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_position_selector_new_without_problems-0.1.1.tar.gz.
File metadata
- Download URL: streamlit_position_selector_new_without_problems-0.1.1.tar.gz
- Upload date:
- Size: 60.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d34a6da31e1bb31e5977fb01e601b37dc5eb53261e67df8c04187d6b04351e7
|
|
| MD5 |
b608302e4f139d2a50757d28acee6b0c
|
|
| BLAKE2b-256 |
fdc1cb47416aec61734ef3933b31f18f988d24d5fbd66bbc5aeb5529395f9708
|
File details
Details for the file streamlit_position_selector_new_without_problems-0.1.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_position_selector_new_without_problems-0.1.1-py3-none-any.whl
- Upload date:
- Size: 175.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ea1cdd493b99ee0079bb418befaecad60aecab68c984fe9f40c186aba7a5600
|
|
| MD5 |
7a9a69f04dbd6459b7773173f70be10d
|
|
| BLAKE2b-256 |
22cbf791b97b308dd05234ad93880bdee18c3a9efa6465a44197e665727ba2f3
|