Skip to main content

Client for Genderize.io web service.

Project description

Client for Genderize.io web service.

https://img.shields.io/pypi/v/Genderize.svg?style=flat https://img.shields.io/pypi/dm/Genderize.svg?style=flat https://img.shields.io/travis/SteelPangolin/genderize.svg?style=flat

Basic usage

Import the Genderize class and call its get method with a list of names.

from genderize import Genderize
print(Genderize().get(['James', 'Eva', 'Thunderhorse']))
[{u'count': 1037, u'gender': u'male', u'name': u'James', u'probability': 0.99},
 {u'count': 234, u'gender': u'female', u'name': u'Eva', u'probability': 1.0},
 {u'gender': None, u'name': u'Thunderhorse'}]

Shell usage

If run as a script, takes a list of names on stdin, and prints them with their genders.

echo "James\nEva\nThunderhorse" | python -m genderize
James: male
Eva: female
Thunderhorse: None

Project details


Download files

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

Files for Genderize, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size Genderize-0.1.3-py2-none-any.whl (4.5 kB) File type Wheel Python version 2.6 Upload date Hashes View hashes
Filename, size Genderize-0.1.3-py3-none-any.whl (4.5 kB) File type Wheel Python version 3.2 Upload date Hashes View hashes
Filename, size Genderize-0.1.3.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page