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.4
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.4.tar.gz | 4.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Genderize-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
| Genderize-0.1.4-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 14.8 kB
Release files / Genderize-0.1.4.tar.gz
| Download URL | Genderize-0.1.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2964f8cacf6d829401def35200025bebc8316be1e9d39d129a0ddbfac21cf63b
|
|
BLAKE2b-256 checksum How to use checksums |
48a66c8d76e9a80344ab4b57508d92be00757b621f9f592075db0839ea27c5ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Genderize-0.1.4-py3-none-any.whl
| Download URL | Genderize-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e96dea97804c489937ad8605df06a48b2529d67166af893ba563d851c3dfd3ca
|
|
BLAKE2b-256 checksum How to use checksums |
e59a8f67a57db1416d7ceefe8866dc7d3ee0d9e399dba6a3e09b61c41560bf9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Genderize-0.1.4-py2-none-any.whl
| Download URL | Genderize-0.1.4-py2-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
8a8dec1963edcf9dbcf862af81ac0ecf2d46ec74ba150257e7b4a25ee3a01b7d
|
|
BLAKE2b-256 checksum How to use checksums |
d7f0d7ca2de84a2c863889a2e0a30fd8306dedc8c2de6dbbe479d8fc7c083fb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |