# Streamlit Chart Positions
Um componente Streamlit para seleção e gerenciamento de posições de gráficos em layouts responsivos.
## Instalação
```sh
pip install streamlit-chart-positions
```
## Como usar
```python
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:
```sh
cd template/my_component/frontend
npm install
npm run start
```
Em outro terminal:
```sh
streamlit run template/example.py
```
---
### Passos para corrigir e publicar:
1. **Limpe os arquivos antigos:**
```sh
rmdir /s /q dist
rmdir /s /q streamlit_chart_positions.egg-info
```
2. **Reconstrua o pacote:**
```sh
python -m build
```
3. **Tente publicar novamente:**
```sh
twine upload dist/*
```
---
Se quiser, posso executar esses comandos para você.
Deseja que eu faça isso automaticamente?
Raw data
{
"_id": null,
"home_page": null,
"name": "streamlit-position-selector",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "Seu Nome <seu.email@exemplo.com>",
"keywords": "chart, component, positions, streamlit, visualization",
"author": null,
"author_email": "Seu Nome <seu.email@exemplo.com>",
"download_url": "https://files.pythonhosted.org/packages/8c/9a/acffcd47d277fd7905500e4a871393fc07851f6f2b7da2f495bfd19841f9/streamlit_position_selector-0.1.1.tar.gz",
"platform": null,
"description": "# Streamlit Chart Positions\n\nUm componente Streamlit para sele\u00e7\u00e3o e gerenciamento de posi\u00e7\u00f5es de gr\u00e1ficos em layouts responsivos.\n\n## Instala\u00e7\u00e3o\n\n```sh\npip install streamlit-chart-positions\n```\n\n## Como usar\n\n```python\nimport streamlit as st\nfrom my_component import my_component\n\n# Lista de posi\u00e7\u00f5es dispon\u00edveis para o gr\u00e1fico\npositions = [\n \"ROW2, COL1\", \"ROW2, COL2\", \"ROW2, COL3\",\n \"ROW3, COL1\", \"ROW3, COL2\", \"ROW3, COL3\",\n \"ROW4, COL1\", \"ROW4, COL2\", \"ROW4, COL3\",\n \"ROW5, COL1\", \"ROW5, COL2\", \"FULL ROW 6\",\n \"ROW7, COL1\", \"ROW7, COL2\", \"ROW7, COL3\",\n \"ROW1, COL1(Auto Select)\", \"ROW1, COL2(Auto Select)\", \"ROW1, COL3(Auto Select)\"\n]\n\n# Usar o componente\nselected_position = my_component(positions=positions, key=\"chart_positions\")\nst.write(f\"Posi\u00e7\u00e3o selecionada: {selected_position}\")\n```\n\n## Funcionalidades\n\n- Sele\u00e7\u00e3o visual de posi\u00e7\u00f5es de gr\u00e1ficos\n- Layout responsivo com grid system\n- Suporte a sele\u00e7\u00e3o autom\u00e1tica\n- Integra\u00e7\u00e3o perfeita com Streamlit\n\n## Desenvolvimento\n\nPara executar em modo de desenvolvimento:\n\n```sh\ncd template/my_component/frontend\nnpm install\nnpm run start\n```\n\nEm outro terminal:\n```sh\nstreamlit run template/example.py\n```\n\n---\n\n### Passos para corrigir e publicar:\n\n1. **Limpe os arquivos antigos:**\n ```sh\n rmdir /s /q dist\n rmdir /s /q streamlit_chart_positions.egg-info\n ```\n\n2. **Reconstrua o pacote:**\n ```sh\n python -m build\n ```\n\n3. **Tente publicar novamente:**\n ```sh\n twine upload dist/*\n ```\n\n---\n\nSe quiser, posso executar esses comandos para voc\u00ea. \nDeseja que eu fa\u00e7a isso automaticamente?",
"bugtrack_url": null,
"license": "MIT",
"summary": "Streamlit component for chart position selection and management",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/seu-usuario/streamlit-chart-positions",
"Issues": "https://github.com/seu-usuario/streamlit-chart-positions/issues",
"Repository": "https://github.com/seu-usuario/streamlit-chart-positions"
},
"split_keywords": [
"chart",
" component",
" positions",
" streamlit",
" visualization"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "d4380058c1e8ec9d6d4b7ea2c6c9e9732c64ce403d997fb3e2da32753af55ddd",
"md5": "87fa6f57001cdbb9b3f29a28ace16e22",
"sha256": "48b8e9ce7132c08f7f2df6a514cc3760702a581899028ee35b881d7015a90f22"
},
"downloads": -1,
"filename": "streamlit_position_selector-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "87fa6f57001cdbb9b3f29a28ace16e22",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 2980,
"upload_time": "2025-07-12T16:04:32",
"upload_time_iso_8601": "2025-07-12T16:04:32.184085Z",
"url": "https://files.pythonhosted.org/packages/d4/38/0058c1e8ec9d6d4b7ea2c6c9e9732c64ce403d997fb3e2da32753af55ddd/streamlit_position_selector-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8c9aacffcd47d277fd7905500e4a871393fc07851f6f2b7da2f495bfd19841f9",
"md5": "23cffc6676df2d49b4b9ca1d48a99c75",
"sha256": "3580484e3c0c1d7be1a7ddec3a2239a6056f41446f328b1a83b27fb86ee962ef"
},
"downloads": -1,
"filename": "streamlit_position_selector-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "23cffc6676df2d49b4b9ca1d48a99c75",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 60024289,
"upload_time": "2025-07-12T16:04:37",
"upload_time_iso_8601": "2025-07-12T16:04:37.349758Z",
"url": "https://files.pythonhosted.org/packages/8c/9a/acffcd47d277fd7905500e4a871393fc07851f6f2b7da2f495bfd19841f9/streamlit_position_selector-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-12 16:04:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "seu-usuario",
"github_project": "streamlit-chart-positions",
"github_not_found": true,
"lcname": "streamlit-position-selector"
}