Infer Gender
Infers gender from the indian first name or full name.
Installation
Using pip
You can install using the pip package manager by running
pip install infer-gender
Alternatively, you could install the latest version directly from Github:
pip install https://github.com/infer-gender/infer-gender/archive/master.zip
Using conda
You can install using the conda package manager by running
conda install -c conda-forge infer-gender
From source
Download the source code by cloning the repository or by pressing 'Download ZIP' on this page.
Install by navigating to the proper directory and running:
python setup.py install
Usage
from infer_gender import GenderPredictor
gp = GenderPredictor()
sample_names = ['katrina kaif','narendra modi','naga budigam','james bond','samantha']
predicted_genders = gp.predict_gender(sample_names)
for name,pred_gender in zip(sample_names,predicted_genders):
print('{} --> {}'.format(name,pred_gender))
katrina kaif --> Female
narendra modi --> Male
naga budigam --> Male
james bond --> Male
samantha --> Female
Metadata
Release files for infer-gender 0.2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| infer-gender-0.2.0.2.tar.gz | 85.9 kB | Without provenance | Details for infer-gender-0.2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| infer_gender-0.2.0.2-py3-none-any.whl | Python 3 | none | any | Details for infer_gender-0.2.0.2-py3-none-any.whl |
Total release size: 173.3 kB
Release files / infer-gender-0.2.0.2.tar.gz
| Download URL | infer-gender-0.2.0.2.tar.gz |
|---|---|
| Size | 85.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9339706da7370e94f084df304a476909d326f64b8197ea85bc305c1b27fddcab
|
|
BLAKE2b-256 checksum How to use checksums |
bf46d3822017b4dec78df0234d5e2a5338847e245b74d81e6afdd9b37f7b9db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Release files / infer_gender-0.2.0.2-py3-none-any.whl
| Download URL | infer_gender-0.2.0.2-py3-none-any.whl |
|---|---|
| Size | 87.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
487369d22057c24df2885e09501a2a579afb55b432c89b0b77a4eb0581bd5e02
|
|
BLAKE2b-256 checksum How to use checksums |
9d1bfeaf1f305c71aba35972f2e13aaba3026e241fe93fc1c791a706639e1911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Security for infer-gender 0.2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.