You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

streamlit-position-selector

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamlit-position-selector

Streamlit component for chart position selection and management

0.1.1
pipPyPI
Maintainers
1

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?

Keywords

chart

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts