Genderize
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
Advanced usage
Create a Genderize instance with a custom user agent, and an API key. Note that you’ll need to use your own API key or this example won’t work.
from genderize import Genderize
genderize = Genderize(
user_agent='GenderizeDocs/0.0',
api_key='example_api_key')
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'}]
Metadata
Release files for Genderize 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Genderize-0.1.5.tar.gz | 4.9 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Genderize-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
| Genderize-0.1.5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 15.9 kB
Release files / Genderize-0.1.5.tar.gz
| Download URL | Genderize-0.1.5.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c534188b61f23f66aa8ab608f029ac2d79e59cd271695d7c07b62edc1d3d53d
|
|
BLAKE2b-256 checksum How to use checksums |
3b4b342bcb95134a4d6ab70758adaac98e68f03ad1a7cdc9cbe95a095b43fc21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Genderize-0.1.5-py3-none-any.whl
| Download URL | Genderize-0.1.5-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3805a8eab98e01d1aa8c1ec4650d53fbcb74c6c3b2140f5bba83b323db8539fe
|
|
BLAKE2b-256 checksum How to use checksums |
978fd4797f290ce127a3ef6c038c0ef1105e4814b84507bf91d141d5c01cef45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Genderize-0.1.5-py2-none-any.whl
| Download URL | Genderize-0.1.5-py2-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
be075a78b4dcfe53cd412197bb00f50a3407e210236a23412de6a6127d268e2d
|
|
BLAKE2b-256 checksum How to use checksums |
79bcd3a90b3f06d77f253b37e543edbe0b24607380d8802f5ee51ef72e7c382e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |