A Python library for generating random Persian (Farsi) names.
Project description
persian-names
A Python library for generating random Persian (Farsi) names.
This package generates frequently logical names (a mix of popular Persian and Arabic names with common Persian family name suffixes).
Installation
Install from PyPI with pip by typing in your favorite terminal:
pip install persian-names
Usage
Let's take a look at what an example test case would look like using persian-names
.
Generate Persian names in Farsi:
from persian_names import *
fullname_fa('male') # or fullname_fa('m')
fullname_fa('female') # or fullname_fa('f')
fullname_fa('random') # or fullname_fa('r')
Example:
from persian_names import *
print('Male:', fullname_fa('m')) # Male: اشکان محمدرضائیان
print('Female:', fullname_fa('f')) # Female: مهسا امینی
print('Random:', fullname_fa('r')) # Random: بیتا خسروی راد
Generate Persian names in English:
from persian_names import *
fullname_en('male') # or fullname_en('m')
fullname_en('female') # or fullname_en('f')
fullname_en('random') # or fullname_en('r')
Example:
from persian_names import *
print('Male:', fullname_en('m')) # Male: Arsalan Mohammadi
print('Female:', fullname_en('f')) # Female: Sara Alipour
print('Random:', fullname_en('r')) # Random: Danial Ferdosi
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
persian-names-1.2.7.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file persian-names-1.2.7.tar.gz
.
File metadata
- Download URL: persian-names-1.2.7.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce4422b07e9e1973dab00332988cfd38eb9ed18faac9c0a9d463369277efd5cd |
|
MD5 | 74fc1bcc8bd0b378e9c4f928f162ed57 |
|
BLAKE2b-256 | 5df6852ca9226fd9d2fd40b1e60bbcaef110b14f2559e350460145cf6a40beb3 |
Provenance
File details
Details for the file persian_names-1.2.7-py3-none-any.whl
.
File metadata
- Download URL: persian_names-1.2.7-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae727566a248301a23b999ee104a39411bc116100f7473f6e581626c7f3dc57b |
|
MD5 | 596ee7fc2f851423478a03c2777639f2 |
|
BLAKE2b-256 | 1319652374814492b386fab3261d380ab7eb514fc5fccd54800dbd4cdf849e2f |