Skip to main content

PRF API

https://img.shields.io/pypi/v/prf-api.svg https://img.shields.io/travis/nymarya/prf_api.svg Updates

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prf_api-0.2.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prf_api-0.2.2-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2Python 3

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

Hashes for prf_api-0.2.2.tar.gz
Algorithm Hash digest
SHA256 10a95eea05b4695f3e18e7570a78d12c0172550f1e1dfd42de652b67daec4e27
MD5 48b4cb5d699b343c22199f14f1b795d3
BLAKE2b-256 49f93e9f51235d4563e37d1cf661d3ddebc2de8848809b5b2ff19a4ed5e211d1

See more details on using hashes here.

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

Hashes for prf_api-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f94e0542b3ea078a81ecf5e971a6580ba5a0b4eaec399587653bac81932fb3a4
MD5 c1fa0500f934c23bb5d854a9d56c4ab0
BLAKE2b-256 9d47b3357472c3f5c0a331db9ce1369e42d1faddbd9115b55e3f7d21e4bd1343

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page