Client for Genderize.io web service.
Project description
Client for Genderize.io web service.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Genderize-0.1.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for Genderize-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb44a956c4942b509808a26262d4141411c34ae8fd7e2de9bb75617adc350ee5 |
|
MD5 | 3ed308575fd906859dc035ae356e3c4f |
|
BLAKE2b-256 | 5af1a4ee49d370800978f8ece9b32c48dc1420c5a1cb1b6569cd209e4962a030 |