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_new-0.1.1.tar.gz (60.1 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_new-0.1.1-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamlit_position_selector_new-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ec17912e99a141e263f0e61fa3c51e4deb89717976972f3e980e4c3ff4e20185
MD5 f2112bcbf37b47cb55372d5601587a8a
BLAKE2b-256 e53bd62c0c613e68f7c4179c12429a019d3eaa0dc998c8600c9d0b36d2eac09e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_position_selector_new-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 976aa0042ec5b012a94e61e15ff19a51b618d24f47badfe9b455c02a460d8db1
MD5 1f7cf0cd1b4fadbfbe4a5de45f4fe7bd
BLAKE2b-256 aa701b4c3c66c7e7121b008528c5e61a3672abd4a2b1bda38feebe81dee2555c

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