Skip to main content

Generate names in every language.

Project description

Name4py

Generate names in every language.

Installation

pip install -U name4py
pip install git+https://github.com/vortezwohl/Name4py.git

Quick Start

  1. Import SDKs
from name4py import NameGenerator, Country, Gender
  1. 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

name4py-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

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

Hashes for name4py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 196d4549a480d109af98cef93cf14d4e3a9aa86b5dd0a0193bcfac3d65c8a62c
MD5 c50f42174d14a8efc96434800ddb5866
BLAKE2b-256 f9944d473bb58f80c62788cf549a83ffaf88ea1ae243253e6c00246cc587d4f7

See more details on using hashes here.

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

Hashes for name4py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbb717962287c10c920a422e6a4e696aa47c2f16ab1fed16b83f76978718e43e
MD5 acef8d8207f75bb33880259852c5fdde
BLAKE2b-256 a831e359e24b1f9c9b60e0be78ced82d0557949ee119420fb13ff7e5dfc0dee5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page