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

Uploaded Source

Built Distribution

persian_names-1.2.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for persian-names-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8dd1f0ddb2fac15e6e2d83a96dbc4edacbc4a66e5a2faa403038878c8810e2e2
MD5 6ea8360d2b6ac4cad1080de9984d491f
BLAKE2b-256 e8ba80b19800c1045e373fa0bb9dc892f54cd4f86f8aeb763b8dbda9e160bdcd

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for persian_names-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71147b3ba0f830bb1559565e09d0aeccfe0265549fc29f288be2e771379ab22a
MD5 a8afcdb82b07f5efb4219b293255e27c
BLAKE2b-256 4241bc6d21139ca745b7529ab9c526ad4118ef2f1af92fa5219159a462075cf3

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