PRF API
API de dados abertos da PRF
Esta pacote tem o objetivo de facilitar o download e o uso dos dados abertos da PRF, que contém informações sobre acidentes e infrações cometidas nas rodovias federais do Brasil.
Dependências
Para baixar dados anteriores a 2018, é necessário instalar unrar.
Para MacOS
brew install unrar
Para Linux
apt-get install unrar
Uso
O pacote pode ser obtido via pip.
pip install prf-api
Para utlizar, basta instanciar a classe:
from prf_api import prf_api
data = prf_api.PRFApi()
data.baixar('infracoes', anos=list(range(2017, 2019)))
df = data.dataframe('infracoes', anos=list(range(2017, 2019)), estado='RN')
Créditos
Este pacote foi criado com Cookiecutter e o template audreyr/cookiecutter-pypackage .
History
0.0.1 (2019-08-09)
First release on PyPI.
0.2.1 (2021-06-08)
Fix download of accident data
Metadata
Release files for prf-api 0.2.2
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 |
|---|---|---|---|---|
| prf_api-0.2.2.tar.gz | 13.8 kB | Without provenance | Details for prf_api-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prf_api-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for prf_api-0.2.2-py2.py3-none-any.whl |
Total release size: 22.8 kB
Release files / prf_api-0.2.2.tar.gz
| Download URL | prf_api-0.2.2.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10a95eea05b4695f3e18e7570a78d12c0172550f1e1dfd42de652b67daec4e27
|
|
BLAKE2b-256 checksum How to use checksums |
49f93e9f51235d4563e37d1cf661d3ddebc2de8848809b5b2ff19a4ed5e211d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.7.0 requests/2.22.0 setuptools/56.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
|
Release files / prf_api-0.2.2-py2.py3-none-any.whl
| Download URL | prf_api-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f94e0542b3ea078a81ecf5e971a6580ba5a0b4eaec399587653bac81932fb3a4
|
|
BLAKE2b-256 checksum How to use checksums |
9d47b3357472c3f5c0a331db9ce1369e42d1faddbd9115b55e3f7d21e4bd1343
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.7.0 requests/2.22.0 setuptools/56.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
|
Security for prf-api 0.2.2
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.