Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acceptable-security/gender.py
A simple python library to take first names and return their gender using the genderize.io API.
https://github.com/acceptable-security/gender.py
api gender genderize library python
Last synced: 3 months ago
JSON representation
A simple python library to take first names and return their gender using the genderize.io API.
- Host: GitHub
- URL: https://github.com/acceptable-security/gender.py
- Owner: acceptable-security
- License: mit
- Created: 2013-12-03T00:27:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-20T07:23:13.000Z (over 1 year ago)
- Last Synced: 2024-05-27T12:08:59.252Z (6 months ago)
- Topics: api, gender, genderize, library, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 29
- Watchers: 3
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gender.py
A simple library to take first names and return their gender using the genderize.io API.
## Usage
>>> from gender import getGenders
>>> getGenders(["Brian","Apple","Jessica","Zaeem","NotAName"])
[(u'male', u'1.00', 483), (u'female', u'0.86', 14), (u'female', u'1.00', 787), (u'male', u'1.00', 1), (u'None', u'0.0', 0.0)]## Output
Output is a list of results form the website, formated to be (name (string), probability (string), amount of documents that support the gender choice (int))
## Requirements
Requires requests to function for HTTP requests.