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)
Metadata
Release files for py-serpro-biodata 1.0.1
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 |
|---|---|---|---|---|
| py_serpro_biodata-1.0.1.tar.gz | 3.6 kB | Without provenance | Details for py_serpro_biodata-1.0.1.tar.gz |
Release files / py_serpro_biodata-1.0.1.tar.gz
| Download URL | py_serpro_biodata-1.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36deb39527da08ebf50f04a92008390c3b3d58d628ce01f9435f2226df1106c7
|
|
BLAKE2b-256 checksum How to use checksums |
f0be01271482e8c0cf0058f663c0445ec74d04b912ad3b87ee079ec7095f8125
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for py-serpro-biodata 1.0.1
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.