Generate names in every language.
Project description
Name4py
Generate names in every language.
Installation
- From PyPi
pip install -U name4py
- From Github
pip install git+https://github.com/vortezwohl/Name4py.git
Quick Start
- Import SDKs
from name4py import NameGenerator, Country, Gender
- Generate names
available_countries = [Country.CAN, Country.CHN, Country.FRA,
Country.DEU, Country.IDN, Country.JPN,
Country.KOR, Country.PHL, Country.PRT,
Country.RUS, Country.VNM, Country.ESP,
Country.THA, Country.GBR, Country.USA]
for country in available_countries:
surname_first = False
hyphenate = True
if country in [Country.CHN, Country.JPN, Country.KOR, Country.VNM]:
surname_first = True
if country in [Country.CHN, Country.KOR, Country.JPN]:
hyphenate = False
print(NameGenerator(country).generate(Gender.Female, surname_first=surname_first, hyphenate=hyphenate))
output:
Pénélope Farrell
汤雨桐
Cléopâtre Fromont
Alla Koslowski
Suciati Arsyad
金田理枝
남궁계영
Fiona Sobrino
Glauce Caldeira
Татьяна Наумов
Giáp Châu Hoa
Paulina Monreal
ธนัญญา กสิกร
Gunda Dawson
Dione Kidd
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
name4py-0.1.1.tar.gz
(6.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file name4py-0.1.1.tar.gz.
File metadata
- Download URL: name4py-0.1.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
196d4549a480d109af98cef93cf14d4e3a9aa86b5dd0a0193bcfac3d65c8a62c
|
|
| MD5 |
c50f42174d14a8efc96434800ddb5866
|
|
| BLAKE2b-256 |
f9944d473bb58f80c62788cf549a83ffaf88ea1ae243253e6c00246cc587d4f7
|
File details
Details for the file name4py-0.1.1-py3-none-any.whl.
File metadata
- Download URL: name4py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbb717962287c10c920a422e6a4e696aa47c2f16ab1fed16b83f76978718e43e
|
|
| MD5 |
acef8d8207f75bb33880259852c5fdde
|
|
| BLAKE2b-256 |
a831e359e24b1f9c9b60e0be78ced82d0557949ee119420fb13ff7e5dfc0dee5
|