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

streamlit_position_selector-0.1.1.tar.gz (60.0 MB view details)

Uploaded Source

Built Distribution

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

streamlit_position_selector-0.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamlit_position_selector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3580484e3c0c1d7be1a7ddec3a2239a6056f41446f328b1a83b27fb86ee962ef
MD5 23cffc6676df2d49b4b9ca1d48a99c75
BLAKE2b-256 8c9aacffcd47d277fd7905500e4a871393fc07851f6f2b7da2f495bfd19841f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_position_selector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48b8e9ce7132c08f7f2df6a514cc3760702a581899028ee35b881d7015a90f22
MD5 87fa6f57001cdbb9b3f29a28ace16e22
BLAKE2b-256 d4380058c1e8ec9d6d4b7ea2c6c9e9732c64ce403d997fb3e2da32753af55ddd

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