# pySEI Atualizado para interagir com o SEI 4.0
Pacote para interagir com o SEI - Sistema Eletrônico de Informação. O pacote usa Selenium com o chromedriver ou Ms Edge. O chromedriver pode ser obtido em https://chromedriver.chromium.org/downloads O Ms Edge Driver pode ser obtido em https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
Install
pip install pySEI
Use
Importar pacote
from pySEI import Sei
Iniciar navegador
sei = Sei(headless=False)
Iniciar navegador headless
sei = Sei()
Especificar o caminho para o chromedriver
sei = Sei(executable_path='chromedriver')
Entrar na página do SEI
sei.start_driver(url='http://sei.anatel.gov.br', usuario=usuario, senha=senha)
Ir para um processo
sei.go_to(numero_sei=numero_sei)
Verificar se um processo está aberto em uma área
is_aberto,mensagem = sei.is_processo_aberto(processo=processo,area=area)
Verificar se um processo está anexado a outro
processo_anexador = sei.get_processo_anexador(processo=processo)
Trocar área do usuário
is_area_trocada = sei.seleciona_area(area=area)
Clicar em um botão do processo ou documento
is_botao_clicado = sei.clicar_botao(botao=botao)
Verificar se o processo está sobrestado
is_sobrestado,mensagem_sobrestamento = sei.is_sobrestado(processo=processo)
Verificar se o processo está sobrestado em uma área
is_sobrestado,is_na_area = sei.is_sobrestado(processo=processo, area=area)
Sobrestar processo na área atual
is_sobrestado = sei.sobrestar_processo(motivo='Quero sobrestar', processo=processo)
Remover sobrestamento do processo na área atual
sobrestamento_removido = sei.remover_sobrestamento(processo=processo)
Fechar a janela de alerta
mensagem_alerta = sei.fechar_alerta()
Publicar apenas no Boletim de Serviço
is_publicado = sei.publicar(documento=documento
,resumo_ementa=resumo_ementa, data_disponibilizacao='21/01/2021')
Publicar no Boletim de Serviço e no DOU
is_publicado = sei.publicar(documento=documento
,resumo_ementa=resumo_ementa, data_disponibilizacao='21/01/2021'
, dou=dou, secao=secao, pagina=pagina)
Obter conteúdo HTML de documento
try:
conteudo_documento = sei.get_conteudo_documento(documento=documento)
except:
print('Conteúdo não encontrado')
Fechar o navegador
sei.close()
Metadata
Release files for pySEI 1.4.3
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 |
|---|---|---|---|---|
| pysei-1.4.3.tar.gz | 11.5 kB | Without provenance | Details for pysei-1.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysei-1.4.3-py3-none-any.whl | Python 3 | none | any | Details for pysei-1.4.3-py3-none-any.whl |
Total release size: 21.9 kB
Release files / pysei-1.4.3.tar.gz
| Download URL | pysei-1.4.3.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
992ad2053e9758ead6747a86ec106047486ef2890cfdfbab3ce3ef6355ca4b88
|
|
BLAKE2b-256 checksum How to use checksums |
421093419a213ed6a326fd9688a88171e6d8da13addf381c053ad3f2b86cda21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Release files / pysei-1.4.3-py3-none-any.whl
| Download URL | pysei-1.4.3-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
229df22b095b0f374d459b25c8cea5428e2ffb825345bd8745fffa6c0445e354
|
|
BLAKE2b-256 checksum How to use checksums |
926b38c3a2207c407f41a4f1338dcd3a943feeaf003f65b937965e2b634bca14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Security for pySEI 1.4.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.