Skip to main content

Retorna dados de hash dos ultimos n dias da biblioteca de dados abertos do governo

Project description

calculaHashDadosAbertos

The library can calculate hash files from dados abertos website in MD5 format. So far it works with chamber of deputies data. Example of PyPI package.

Getting Started

Dependencies

You need Python 3.7 or later to use calculaHashDadosAbertos. You can find it at python.org.

Maybe you should need to import some of those libraries
import requests
import pandas as pd
from pandas.io.json import json_normalize
from datetime import date
import json
import io
import hashlib, os, sys
import shutil

Installation

Clone this repo to your local machine using:

git clone https://github.com/masuta16/calculaHash.git

Features

This function example returns a csv file with HashMD5 from dados abertos website using API v2 Con3Prop function returns values with 3 input propositions on government and the fourth input is the number of days until today and HashMD5Camara method returns the csv file

from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con3Prop('PLP','PEC','PL', 3).HashMD5Camara

This function example returns a csv file with HashMD5 from dados abertos website using API v2 too Con2Prop function returns values with 2 input propositions on government the third input is the number of days until today

from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con2Prop('PLP','PEC', 3).HashMD5Camara

This function example returns a csv file with HashMD5 from dados abertos website using API v2 too Con1Prop function returns values with only 1 input propositions on government the second input is the number of days until today

from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con2Prop('PLP', 3).HashMD5Camara

diferenca1Prop function returns a string with the url with data consulting on dados abertos website with one input data diferenca2Prop function returns -------------------------------------------------------------------with two input data diferenca3Prop function returns ----- with three input data

from calculaHashDadosAbertos import CalculaHashCamara
CalculaHashCamara.Con1Prop('PLP', 3).diferenca1Prop

Project details


Download files

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

Source Distribution

calculaHashDadosAbertos-0.0.5.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file calculaHashDadosAbertos-0.0.5.tar.gz.

File metadata

  • Download URL: calculaHashDadosAbertos-0.0.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for calculaHashDadosAbertos-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d72b6e1750b0982d3ce82171400cebb9936f727b8e179fbdcf5422455d4282d1
MD5 de9970764f952b32355c685ce3492784
BLAKE2b-256 86942b0bcb87d54b3ee9120cb3badcbdc0a7076d5475c27115ba5a5fecc7005a

See more details on using hashes here.

Supported by

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