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
- Import Module
import trnamegen
- 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
- 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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 turkish-name-generator-1.0.4.tar.gz.
File metadata
- Download URL: turkish-name-generator-1.0.4.tar.gz
- Upload date:
- Size: 56.1 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.60.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
534f685fbecf102b2124c32ceb2890804309ffebc22fa1943dd65aeb627e0d37
|
|
| MD5 |
81e8798d1f21064c65cb76a54a23a96d
|
|
| BLAKE2b-256 |
61e076cc5356cd1ec9ba03a58c71da13e9d28db6dd79b508c98ba52d77ba58c4
|
File details
Details for the file turkish_name_generator-1.0.4-py3-none-any.whl.
File metadata
- Download URL: turkish_name_generator-1.0.4-py3-none-any.whl
- Upload date:
- Size: 106.2 kB
- Tags: Python 3
- 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.60.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
435cadf2363830ed0b37e2293a2e9bbf20e8f5ac6a30c5f209eff30c7ebfb55e
|
|
| MD5 |
8ccf0cd78a5f2d01acb35c4417484f85
|
|
| BLAKE2b-256 |
0b1426b42f3cede2217a456b44c3cc7826b2cc60bc2d59a018542937ebf16b45
|