Skip to main content

A Python library for generating random Persian (Farsi) names.

Project description

persian-names

PyPI GitHub

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

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 fullname_fa

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

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 fullname_en

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


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.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

persian_names-1.2.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file persian-names-1.2.2.tar.gz.

File metadata

  • Download URL: persian-names-1.2.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for persian-names-1.2.2.tar.gz
Algorithm Hash digest
SHA256 f52638e3b3f7114d281eb14bc93124ec60049dc20e77da8d56fccbaa3ab6a3b3
MD5 31f68b092ab08279f115360b9e59cc0a
BLAKE2b-256 a89217cc77a11e3d183849621baf9465cc3a798ce5326ce84f12741a4f1dacbb

See more details on using hashes here.

Provenance

File details

Details for the file persian_names-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for persian_names-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 339cf612663c6f2ad8be907e940463b9f7140fc43cf555db42e6fbb77ee242d2
MD5 d6b78fc4eb8639fc8500cc3d90de3eea
BLAKE2b-256 afc06a59f7fabc0d2c418ecfbba89967fffc1d3ca0951c2ac49f78f4ba9a73be

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page