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.6.tar.gz
(9.3 kB
view details)
Built Distribution
File details
Details for the file persian-names-1.2.6.tar.gz
.
File metadata
- Download URL: persian-names-1.2.6.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 319cb38c152f6bdbea3294c555c7ae17235ee9f374cf2486a4b8468e17677b1c |
|
MD5 | 7b2a7059def77d99af2dfcc26ff59ad5 |
|
BLAKE2b-256 | e9bb74ed3bc2083e39108496d02e0c1b16cf77230f4aa78032bffd22935a52df |
Provenance
File details
Details for the file persian_names-1.2.6-py3-none-any.whl
.
File metadata
- Download URL: persian_names-1.2.6-py3-none-any.whl
- Upload date:
- Size: 15.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 | 6e423e127ab7ba62af01feb158724f89db9954fac9037d6be75cdcd516f2b586 |
|
MD5 | b05e188fb4f566c93d804fdbbea57a61 |
|
BLAKE2b-256 | 41e1beba5cfef3b71bac33cbe9cbbbadfca8f650d17994a197a6e590a4f0f3b9 |