Skip to main content

Cliente Python para os Web Services SOAP do SEI (Sistema Eletronico de Informacoes) e do SIP

Project description

seigov seigov logo

CI PyPI Docs

📖 Documentação: https://strategicprojects.github.io/seigov/

Cliente Python para os Web Services SOAP do SEI (Sistema Eletrônico de Informações) e do SIP (Sistema de Permissões). Construído sobre zeep, devolve os resultados como pandas.DataFrame. É a porta Python do pacote R rsei.

⚠️ Acesso restrito por IP. Os Web Services do SEI só respondem a requisições vindas de IPs/servidores previamente autorizados no cadastro do serviço. As funções só retornam dados a partir de um host autorizado.

Genérico. O pacote não é amarrado a nenhum órgão: informe o endpoint do Web Service do seu SEI em SeiClient(url=...).

Instalação

pip install seigov            # (após publicação no PyPI)
# ou, do código-fonte:
pip install -e ".[dev]"

Uso

from seigov import SeiClient

sei = SeiClient(
    url="https://sei.<seu-orgao>.gov.br/sei/ws/SeiWS.php",
    sigla_sistema="MEU_SISTEMA",
    identificacao_servico="minha-chave",   # chave de acesso
)

# Consultar um processo (retorna um DataFrame)
df = sei.consultar_procedimento("12.1.000000077-4")

# Vários de uma vez (empilha; coluna 'erro' isola falhas por linha)
lote = sei.consultar_procedimentos(["12.1.000000077-4", "12.1.000000078-2"])

# Listagens
unidades = sei.listar_unidades()
series   = sei.listar_series()

Configuração também por variáveis de ambiente: SEIGOV_URL, SEIGOV_SIGLA_SISTEMA, SEIGOV_IDENTIFICACAO_SERVICO, SEIGOV_ID_UNIDADE.

SIP (permissões):

from seigov import SipClient
sip = SipClient(url="https://sei.<seu-orgao>.gov.br/sip/controlador_ws.php?servico=sip",
                chave_acesso="...", id_sistema="...")
perms = sip.listar_permissao(id_unidade="110000001")

Estado

Em desenvolvimento (Fase 0/1: core + consultas/listagens iniciais). Veja PLAN.md para o roteiro completo (escrita, SIP, helpers em lote/por-processo).

Licença

GPL-3.0-or-later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seigov-0.1.1.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seigov-0.1.1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file seigov-0.1.1.tar.gz.

File metadata

  • Download URL: seigov-0.1.1.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for seigov-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cec73fa8e215a83435a337a0a26f22f54a52c9ac6a075af0c4116dfe9c3446ac
MD5 bd8a485db41ae9990761eaa698cbf935
BLAKE2b-256 88e0433da1726ef9555bc50b07e27a33435e69ba498942567939e6d06e548284

See more details on using hashes here.

Provenance

The following attestation bundles were made for seigov-0.1.1.tar.gz:

Publisher: publish.yml on StrategicProjects/seigov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seigov-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: seigov-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for seigov-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e37b5d46d89247d0f78088b956ff8460fb03e96d66e8c7641de53d561d22c343
MD5 7c243628c53f2d3afc109b2232456cf6
BLAKE2b-256 5ff8a0ce727380b075bc9cd7e231d5683c9bc642f8719adf4f67bdf8ea61e382

See more details on using hashes here.

Provenance

The following attestation bundles were made for seigov-0.1.1-py3-none-any.whl:

Publisher: publish.yml on StrategicProjects/seigov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page