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 Full 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 Full 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
License
persian-names is available under the MIT license.
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 persian-names-1.2.9.tar.gz.
File metadata
- Download URL: persian-names-1.2.9.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01ffc65c013674907e84aa93088fd91ea7a21c6b3b69d1ba14c4eec30ba91aa6
|
|
| MD5 |
a28be981b77b1617ca174768bbd02f9f
|
|
| BLAKE2b-256 |
6897ac24314435e28e95bb089e133ddec2e962b406adfb32af533e0d5e6ad071
|
File details
Details for the file persian_names-1.2.9-py3-none-any.whl.
File metadata
- Download URL: persian_names-1.2.9-py3-none-any.whl
- Upload date:
- Size: 16.6 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 |
dc21ed8d9b373a3df1a4bbd3a9ca9830d07d8f7cdb8a83a9519909fae3ec7117
|
|
| MD5 |
403fa8293bb618b5c0b9d4464ec787ef
|
|
| BLAKE2b-256 |
5828451ab0527baba4392197eb75b9a33b4e7457aa0b9a3768d872d2cec97ae7
|