Skip to main content

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:

  1. Limpe os arquivos antigos:

    rmdir /s /q dist
    rmdir /s /q streamlit_chart_positions.egg-info
    
  2. Reconstrua o pacote:

    python -m build
    
  3. Tente publicar novamente:

    twine upload dist/*
    

Se quiser, posso executar esses comandos para você.
Deseja que eu faça isso automaticamente?

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

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file streamlit_position_selector_new_without_problems-0.1.1.tar.gz.

File metadata

File hashes

Hashes for streamlit_position_selector_new_without_problems-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7d34a6da31e1bb31e5977fb01e601b37dc5eb53261e67df8c04187d6b04351e7
MD5 b608302e4f139d2a50757d28acee6b0c
BLAKE2b-256 fdc1cb47416aec61734ef3933b31f18f988d24d5fbd66bbc5aeb5529395f9708

See more details on using hashes here.

File details

Details for the file streamlit_position_selector_new_without_problems-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_position_selector_new_without_problems-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ea1cdd493b99ee0079bb418befaecad60aecab68c984fe9f40c186aba7a5600
MD5 7a9a69f04dbd6459b7773173f70be10d
BLAKE2b-256 22cbf791b97b308dd05234ad93880bdee18c3a9efa6465a44197e665727ba2f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page