Skip to content

Commit

Permalink
Adicionando a populaçao dos 167 municipios
Browse files Browse the repository at this point in the history
  • Loading branch information
Boardstroke committed Apr 20, 2020
1 parent e2d71b8 commit 7ae9d7d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
Binary file added ApiCovidUfrgsPy/__pycache__/mtr.cpython-38.pyc
Binary file not shown.
12 changes: 12 additions & 0 deletions ApiCovidUfrgsPy/mtr.py
Expand Up @@ -3,6 +3,18 @@

url = 'https://f6d58753.ngrok.io'

class Municipios:
def __init__(self, url=url):
self.url = url + '/index/municipios'
self.data = r.get(self.url).json()

def matriz_municipios(self):
d = self.data
arr = []
for mp in d:
arr.append([mp['pop_senso_2010'], mp['pop_est_2019']])
return np.asarray(arr)

class Distancias:
def __init__(self,url=url):
self.url = url + '/index/distancias'
Expand Down
Binary file added dist/ApiCovidUfrgsPy-0.1.1.tar.gz
Binary file not shown.
Binary file modified dist/ApiCovidUfrgsPy-0.1.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -3,13 +3,13 @@
setup(
name = 'ApiCovidUfrgsPy', # How you named your package folder (MyLib)
packages = ['ApiCovidUfrgsPy'], # Chose the same as "name"
version = '0.1',
version = '0.1.1',
license='MIT',
description = 'Uma interface para acessar dados do servidor relacionado a covid no RS',
author = 'Matheus Fachini', # Type in your name
author_email = 'matheus.fachinis@gmail.com', # Type in your E-Mail
url = 'https://github.com/Boardstroke/api-covid-ufrgs-py', # Provide either the link to your github or to your website
download_url = 'https://github.com/Boardstroke/api-covid-ufrgs-py/archive/v0.1.tar.gz', # I explain this later on
download_url = 'https://github.com/Boardstroke/api-covid-ufrgs-py/archive/v0.1.1.tar.gz', # I explain this later on
keywords = ['API', 'COVID', 'RS'], # Keywords that define your package best
install_requires=[ # I get to this in a second
'numpy',
Expand Down

0 comments on commit 7ae9d7d

Please sign in to comment.