Skip to main content

Python tool to interface with "Nomes" IBGE API v.2

Project description

Python library to interface with “Nomes” IBGE API. Further, the tools can be used to query the persons names from Brazil. The IBGE API is based on 2010 Census.

Features

  • Query by name(s) gender(s) based on 2010 IBGE Census from Brazil. Gender return are ‘F’ or ‘M’. Indefined gender is ‘’.

  • Query by name(s) ocurrence(s) by gender on Brazil or specific state

  • Query by name(s) occurrence(s) on specific gender or on all

  • Query by names ranking occurrence on Brazil (20’s most)

Prerequisites

  • Python 2 or newer

  • requests

  • Pandas

Site

Installation

$ pip3 install pygenderbr

Usage

Class Gender

>>> from pygenderbr import Gender
>>> gapi = Gender()
>>> g = gapi.getgender('joao')
>>> print(g)
name
JOAO    M
Name: gender, dtype: object
>>> g = gapi.getgender(['joao','maria'])
>>> print(g)
name
JOAO     M
MARIA    F
Name: gender, dtype: object

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

pygenderbr-0.5.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file pygenderbr-0.5.0.tar.gz.

File metadata

  • Download URL: pygenderbr-0.5.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygenderbr-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e3d0a8d05d6cccdde40a51c6f69f1a0331154ac264d87e75af9fea470cb1215c
MD5 83bb985c7da01eed62770b43d46e5d92
BLAKE2b-256 4b5a24f4f623db1922ad61f4e80bad5d548943b9f4e8fe25744f7db54d72a4d5

See more details on using hashes here.

Supported by

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