Skip to main content

shade-plugins-planilhas

Lê Excel e CSV como lista de itens e escreve planilha sem deixar o texto virar fórmula. É um plugin do shade-sdk; roda offline, sem credencial e sem nenhuma operação com efeito.

No shade.toml do robô:

[plugins]
planilhas = "0.1.0"
import shade_plugins_planilhas as planilhas

itens = planilhas.ler("pedidos.xlsx", aba="Abril")   # [{"cliente": "Acme", "valor": "10.5"}, ...]
planilhas.escrever_xlsx("saida.xlsx", itens)
planilhas.escrever_csv("saida.csv", itens)
item.anexar("saida.xlsx")                            # leva o arquivo para a saída do run
Operação O que faz
ler(caminho, aba=None) Itens de .xlsx/.xlsm (a aba pedida ou a primeira) ou .csv. A primeira linha é o cabeçalho; tudo vem em texto, e o mesmo dado em XLSX e em CSV dá os mesmos itens.
abas(caminho) Nomes das abas de um .xlsx/.xlsm.
escrever_xlsx(caminho, itens, aba="Planilha1") Grava os itens; o cabeçalho é a união das chaves.
escrever_csv(caminho, itens, delimitador=";") Grava UTF-8 com BOM, que o Excel brasileiro abre sem estragar acento.
  • CSV: o delimitador (;, ,, tab ou |) é detectado; UTF-8 e, se não for, Windows-1252.
  • Fórmula: texto que começa com =, +, -, @, tab ou CR é gravado como texto. No XLSX a célula é de texto; no CSV o valor sai com um ' na frente. Número, booleano e data não são texto e passam como vieram.
  • Não lê .xls antigo: salve como .xlsx ou .csv. Fórmula de uma planilha lida vale o último valor que o Excel calculou.

Metadata

Release files for shade-plugins-planilhas 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for shade-plugins-planilhas 0.1.0
File Interpreter ABI Platform
shade_plugins_planilhas-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / shade_plugins_planilhas-0.1.0-py3-none-any.whl

Download URL shade_plugins_planilhas-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08cc5d16f8aee8f6cf83e87d5dc7b249a9db6ca0a2334075bf7b158b54861799
BLAKE2b-256 checksum
How to use checksums
679c8640f0ded5bc4ef9f16f3e48a71d39b91c533a38c3d00ae8bc78360decf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for shade-plugins-planilhas 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page