Python lib não oficial do serviço BIOValid do SERPRO no Brasil
Project description
Instalando
pip install py_serpro_biodata
Como usar
Solicitando o token de autenticação
from py_serpro_biodata.serpro.biovalid import SERPROBioValid
session = SERPROBioValid(SERPRO_CONSUMER_KEY, SERPRO_CONSUMER_SECRET)
session = session.authenticate()
session.get_token()
Solicitando token para realiazar o processo da prova de vida
from py_serpro_biodata.serpro.biovalid import SERPROBioValid
cpf = 11111111111
session = SERPROBioValid(SERPRO_CONSUMER_KEY, SERPRO_CONSUMER_SECRET)
session = session.authenticate()
session.get_biodata_token(cpf)
Com esse token você pode baixar o aplicativo BIOValid do SERPRO. Informar o token a na tela inicial e fazer o processo de prova de vida.
Após realizar o processo no aplicativo BIOValid do SERPRO. Você precisa verificar o resultada da prova de vida.
from py_serpro_biodata.serpro.biovalid import SERPROBioValid
token = <TOKEN_QUE_FOI_USADO_PARA_FAZER_A_PROVA_DE_VIDA>
cpf = 11111111111
session = SERPROBioValid(SERPRO_CONSUMER_KEY, SERPRO_CONSUMER_SECRET)
session = session.authenticate()
session.validate_biodata_token(cpf, token)
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
File details
Details for the file py_serpro_biodata-1.0.1.tar.gz
.
File metadata
- Download URL: py_serpro_biodata-1.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36deb39527da08ebf50f04a92008390c3b3d58d628ce01f9435f2226df1106c7 |
|
MD5 | bedb97df7c1985cc2baffbaaa3a126ec |
|
BLAKE2b-256 | f0be01271482e8c0cf0058f663c0445ec74d04b912ad3b87ee079ec7095f8125 |