API de dados abertos da PRF
Project description
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
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
File details
Details for the file prf_api-0.2.2.tar.gz
.
File metadata
- Download URL: prf_api-0.2.2.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10a95eea05b4695f3e18e7570a78d12c0172550f1e1dfd42de652b67daec4e27 |
|
MD5 | 48b4cb5d699b343c22199f14f1b795d3 |
|
BLAKE2b-256 | 49f93e9f51235d4563e37d1cf661d3ddebc2de8848809b5b2ff19a4ed5e211d1 |
File details
Details for the file prf_api-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: prf_api-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f94e0542b3ea078a81ecf5e971a6580ba5a0b4eaec399587653bac81932fb3a4 |
|
MD5 | c1fa0500f934c23bb5d854a9d56c4ab0 |
|
BLAKE2b-256 | 9d47b3357472c3f5c0a331db9ce1369e42d1faddbd9115b55e3f7d21e4bd1343 |