Skip to main content

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:

  1. Biblioteca Python + CLI (audcom) para envio determinístico em lote (templates Markdown + Jinja2, anexos em disco ou .zip, --dry-run, --teste-para e idempotência dupla).
  2. 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.0

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

Source distribution (sdist)

Source distribution for audcom 0.1.0
File Size Uploaded Provenance Actions
audcom-0.1.0.tar.gz 165.3 kB With provenance Details for audcom-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for audcom 0.1.0
File Interpreter ABI Platform Actions
audcom-0.1.0-py3-none-any.whl Python 3 none any Details for audcom-0.1.0-py3-none-any.whl

Total release size: 333.7 kB

Release files / audcom-0.1.0.tar.gz

Download URL audcom-0.1.0.tar.gz
Size 165.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9f7eac2f655feabb3c6ab7cb0f4743923ce70101a51208d0c1dcdcd5124e3a36
BLAKE2b-256 checksum
How to use checksums
21aff1fc5a5c934a3d46113fc14fc8d400ebf56a1de466a882d2394daf71881e
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 log

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

Download URL audcom-0.1.0-py3-none-any.whl
Size 168.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3734b21dcffaefe6743dea1790de2d5baa38e74ac4156dff3a2688515c94ee09
BLAKE2b-256 checksum
How to use checksums
4b76d10e0d2bfc821325938fc071f330ab3e507777dfbf24a4479d7e742511bc
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 log

Security for audcom 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for audcom-0.1.0.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 log

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

2 release files Full 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