All Projects → SteelPangolin → genderize

SteelPangolin / genderize

Licence: MIT License
Python client for the Genderize.io web service.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to genderize

content-api-scala-client
A Scala client library for the Guardian's Content API
Stars: ✭ 37 (-37.29%)
Mutual labels:  api-client
WeConnect-python
Python API for the Volkswagen WeConnect Services
Stars: ✭ 27 (-54.24%)
Mutual labels:  api-client
CveXplore
CveXplore
Stars: ✭ 21 (-64.41%)
Mutual labels:  api-client
processed-imdb-wiki-dataset
Processes IMDB WIKI dataset ready to be used in any projects
Stars: ✭ 48 (-18.64%)
Mutual labels:  gender-classification
portainer-stack-utils
CLI client for Portainer
Stars: ✭ 66 (+11.86%)
Mutual labels:  api-client
pyark
CyberArk Enterprise Password Vault API CLI tool
Stars: ✭ 25 (-57.63%)
Mutual labels:  api-client
webflow-ruby
🕸 🌀Webflow API bindings for Ruby
Stars: ✭ 20 (-66.1%)
Mutual labels:  api-client
SignNowNodeSDK
The Official SignNow Node.js Client Library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.
Stars: ✭ 14 (-76.27%)
Mutual labels:  api-client
xing-android-sdk
The Official XING API client for Java/Android
Stars: ✭ 33 (-44.07%)
Mutual labels:  api-client
RESTEasy
REST API calls made easier
Stars: ✭ 12 (-79.66%)
Mutual labels:  api-client
laravel-transporter
Transporter is a futuristic way to send API requests in PHP. This is an OOP approach to handling API requests.
Stars: ✭ 282 (+377.97%)
Mutual labels:  api-client
lua-api-client
Lua REST API Client
Stars: ✭ 30 (-49.15%)
Mutual labels:  api-client
bitrix
Bitrix24 REST API client that doesn't suck. Suffer no more.
Stars: ✭ 59 (+0%)
Mutual labels:  api-client
client-js
JS client for polygon.io api
Stars: ✭ 81 (+37.29%)
Mutual labels:  api-client
activecollab-feather-sdk
PHP SDK for ActiveCollab 5 and 6 API
Stars: ✭ 47 (-20.34%)
Mutual labels:  api-client
StudentVue.py
Python StudentVue Library
Stars: ✭ 17 (-71.19%)
Mutual labels:  api-client
pcloud-sdk-js
pCloud's Javascript SDK
Stars: ✭ 62 (+5.08%)
Mutual labels:  api-client
Workday.WebServices
Workday API clients
Stars: ✭ 18 (-69.49%)
Mutual labels:  api-client
doccano-client
A simple client wrapper for doccano API.
Stars: ✭ 52 (-11.86%)
Mutual labels:  api-client
protonmail-api
✉ Node.js API for ProtonMail
Stars: ✭ 108 (+83.05%)
Mutual labels:  api-client

Genderize

Client for the 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/travis/SteelPangolin/genderize.svg?style=flat https://img.shields.io/codecov/c/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, an API key, and a shorter timeout than the default 30 seconds. 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',
    timeout=5.0)
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'}]

Maintenance

Setup for local development:

virtualenv --prompt '(genderize) ' venv -p python3
pip install -r requirements.txt
pip install -r requirements-dev.txt

Release checklist:

  1. Generate a new version number: major.minor.micro. It should be compatible with both PEP 440 and SemVer 2.0.0.
  2. Update __version__ in genderize/__init__.py. This is read by setup.py and doesn't need to be changed there.
  3. Add a changelog entry and date for the new version in CHANGES.rst.
  4. Commit the changes. This may be done as part of another change.
  5. Tag the commit with git tag major.minor.micro.
  6. Push the tag to GitHub with git push origin major.minor.micro.
  7. Travis will create a new PyPI release from the tag.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].