Skip to main content

This package generates random Turkish names. You can choose the gender of name and you can get also only first name or last name.

Project description

Install

For install turkish-name-gen package use:

$ pip install turkish-name-generator

Note: add --user if you get user error

Usage

  1. Import Module
import trnamegen
  1. Generate Random Names
import trnamegen as trn

# randomName() function returns name with surname.

randomName = trn.randomName() # If you won't send any arguments there will no gender selection. Default is 0.
print("Random Name:", randomName)
randomWomanName = trn.randomName(2)
print("Random Woman Name:", randomWomanName)
randomManName = trn.randomName(1)
print("Random Man Name:", randomManName)
  • Example Response
Random Name: Emir Yağcı
Random Woman Name: Melekşah Sucak
Random Man Name: Nejla Sertkayaoğlu
  1. Generate Random First Names
import trnamegen as trn

# firstName() function returns just name.

randomFirstName = trn.firstName() # If you won't send any arguments there will no gender selection. Default is 0.
print("Random Firstname:", randomFirstName)
randomWomanFirstName = trn.firstName(2)
print("Random Woman Firstname:", randomWomanFirstName)
randomManFirstName = trn.firstName(1)
print("Random Man Firstname:", randomManFirstName)
  • Example Response
Random Firstname: Nazlı
Random Woman Firstname: Çağrınur
Random Man Firstname: Yağızalp
  1. Generate Random Last Names
import trnamegen as trn

# lastName() function returns just surname.

randomLastName = trn.lastName() # There is no gender selection here.
print("Random Lastname:", randomLastName)
  • Example Response
Random Lastname: Yıldız

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

turkish-name-generator-1.0.6.tar.gz (55.9 kB view details)

Uploaded Source

File details

Details for the file turkish-name-generator-1.0.6.tar.gz.

File metadata

  • Download URL: turkish-name-generator-1.0.6.tar.gz
  • Upload date:
  • Size: 55.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for turkish-name-generator-1.0.6.tar.gz
Algorithm Hash digest
SHA256 376251f070302dc16c43696b02fbe8ae5f42a5c3057d2cbf732edb34f74b9331
MD5 41dbe16447a0f57fdf396e2798773aa3
BLAKE2b-256 d8ba5472a046d6c3f6792ddb5b04ceb8935fb5964aa79eff89f230d0f22c6994

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