AudCom — Biblioteca, CLI e Portal de Comunicação de Auditoria
Sistema modular para equipes de auditoria do TCE-RJ gerenciarem comunicações por e-mail via Exchange Web Services (EWS + OAuth/MFA) — sem depender do Outlook instalado — oferecendo:
- Biblioteca Python + CLI (
audcom) para envio determinístico em lote (templates Markdown + Jinja2, anexos em disco ou.zip,--dry-run,--teste-parae idempotência dupla). - Portal web opcional (
audcom[web]) em FastAPI + SQLite + React para visualização de caixas de entrada compartilhadas, redação, ciência (leitura/resposta) e controle de prazos.
Instalação
# Instalação leve (somente núcleo EWS + envio em lote + CLI — ideal para repositórios de fiscalização)
python3 -m venv .venv
.venv/bin/pip install -e /caminho/para/audcom
# Instalação completa (inclui portal web FastAPI/SQLAlchemy e ferramentas de desenvolvimento)
.venv/bin/pip install -e ".[web,dev]"
Primeiro uso (configuração obrigatória do remetente)
Não existe caixa remetente padrão hardcoded. No primeiro acesso, defina sua caixa principal:
audcom init --mailbox sua.caixa@tcerj.tc.br
audcom auth-ews # aprovação única via device code + MFA no navegador
audcom status # verifica configuração e cache EWS
Principais comandos da CLI
audcom status # diagnóstico
audcom auth-ews # renova/autoriza token OAuth EWS
audcom send-batch --template t.md --manifest m.json --remetente caixa@tcerj.tc.br --dry-run
audcom serve --host 127.0.0.1 --port 8000 # sobe o portal web (requer [web])
audcom sync-inbox # sincroniza caixas monitoradas ([web])
audcom send-now # processa outbox do portal ([web])
audcom check-prazos # checa prazos e gera lembretes ([web])
Desenvolvimento e qualidade
.venv/bin/pre-commit install
.venv/bin/ruff check audcom tests
.venv/bin/bandit -r audcom -ll -q
.venv/bin/pip-audit --local
.venv/bin/coverage run -m unittest discover -s tests -q && .venv/bin/coverage report --fail-under=80
.venv/bin/python -m build && .venv/bin/twine check dist/*
Consulte AGENTS.md para regras de segurança e guia operacional completo para agentes.
Metadata
Release files for audcom 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| audcom-0.1.1.tar.gz | 165.3 kB | With provenance | Details for audcom-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| audcom-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for audcom-0.1.1-py3-none-any.whl |
Total release size: 333.7 kB
Release files / audcom-0.1.1.tar.gz
| Download URL | audcom-0.1.1.tar.gz |
|---|---|
| Size | 165.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb5b3153c7aa6cd52b53dfdbdb1afdac4ff5e59d02d16e595b62aec39b637b58
|
|
BLAKE2b-256 checksum How to use checksums |
cf49d20cae38ddee1df0192d73cea99eb6a5b7e02132efbc9396a2e70e28421f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / audcom-0.1.1-py3-none-any.whl
| Download URL | audcom-0.1.1-py3-none-any.whl |
|---|---|
| Size | 168.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a5988dff7b08db93d88f443594497b43731aa324de51c2c3d12346617c183eb
|
|
BLAKE2b-256 checksum How to use checksums |
3df74ca870bb61d7133b30eab54d33da215514ec582e66c20192b9b0b65ef04b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for audcom 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for audcom-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA 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.