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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86e706d0ae45407a59da8cb2ebfbb685f68cd56c2ff76e78f2167fe640a81cb0
|
|
| MD5 |
9ce30069fedfba74053270a2ef208c48
|
|
| BLAKE2b-256 |
4362d7b5d9eda49c4bcaf6cd380b943659802d94fa822824478baac614dd4b99
|
Provenance
The following attestation bundles were made for seigov-0.1.0.tar.gz:
Publisher:
publish.yml on StrategicProjects/seigov
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seigov-0.1.0.tar.gz -
Subject digest:
86e706d0ae45407a59da8cb2ebfbb685f68cd56c2ff76e78f2167fe640a81cb0 - Sigstore transparency entry: 1828055193
- Sigstore integration time:
-
Permalink:
StrategicProjects/seigov@66df75c6238c13a723fe286f9d74cad4f9acebe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/StrategicProjects
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@66df75c6238c13a723fe286f9d74cad4f9acebe5 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8511168bcb0ddefac98ed40588deaa83e22fcd24c007fcfc9646be3e1010eb23
|
|
| MD5 |
f7c01657befcbfb21b3372a037f2fde9
|
|
| BLAKE2b-256 |
7e353f33967a3c10e41e556a54a77d2b46e1a776c8e8a509617b4a3eaf2fb06d
|
Provenance
The following attestation bundles were made for seigov-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on StrategicProjects/seigov
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seigov-0.1.0-py3-none-any.whl -
Subject digest:
8511168bcb0ddefac98ed40588deaa83e22fcd24c007fcfc9646be3e1010eb23 - Sigstore transparency entry: 1828055518
- Sigstore integration time:
-
Permalink:
StrategicProjects/seigov@66df75c6238c13a723fe286f9d74cad4f9acebe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/StrategicProjects
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@66df75c6238c13a723fe286f9d74cad4f9acebe5 -
Trigger Event:
workflow_dispatch
-
Statement type: