Skip to main content

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

Project description

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.0.tar.gz (22.7 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.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seigov-0.1.0.tar.gz
  • Upload date:
  • Size: 22.7 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.0.tar.gz
Algorithm Hash digest
SHA256 86e706d0ae45407a59da8cb2ebfbb685f68cd56c2ff76e78f2167fe640a81cb0
MD5 9ce30069fedfba74053270a2ef208c48
BLAKE2b-256 4362d7b5d9eda49c4bcaf6cd380b943659802d94fa822824478baac614dd4b99

See more details on using hashes here.

Provenance

The following attestation bundles were made for seigov-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: seigov-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8511168bcb0ddefac98ed40588deaa83e22fcd24c007fcfc9646be3e1010eb23
MD5 f7c01657befcbfb21b3372a037f2fde9
BLAKE2b-256 7e353f33967a3c10e41e556a54a77d2b46e1a776c8e8a509617b4a3eaf2fb06d

See more details on using hashes here.

Provenance

The following attestation bundles were made for seigov-0.1.0-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