Skip to main content

Genderize

Client for Genderize.io web service.

https://img.shields.io/github/license/steelpangolin/genderize.svg?style=flat 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 https://img.shields.io/codeclimate/github/SteelPangolin/genderize.svg?style=flat https://img.shields.io/codeclimate/coverage/github/SteelPangolin/genderize.svg?style=flat https://readthedocs.org/projects/genderize/badge/?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

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)

Source distribution for Genderize 0.1.5
File Size Uploaded
Genderize-0.1.5.tar.gz 4.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for Genderize 0.1.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

0.2.0

3 release files

This release

0.1.5 This release

3 release files

0.1.4

3 release files

0.1.3

3 release files

0.1.2

2 release files

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page