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('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


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)

Uploaded Source

Built Distribution

persian_names-1.2.6-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

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

Hashes for persian-names-1.2.6.tar.gz
Algorithm Hash digest
SHA256 319cb38c152f6bdbea3294c555c7ae17235ee9f374cf2486a4b8468e17677b1c
MD5 7b2a7059def77d99af2dfcc26ff59ad5
BLAKE2b-256 e9bb74ed3bc2083e39108496d02e0c1b16cf77230f4aa78032bffd22935a52df

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for persian_names-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6e423e127ab7ba62af01feb158724f89db9954fac9037d6be75cdcd516f2b586
MD5 b05e188fb4f566c93d804fdbbea57a61
BLAKE2b-256 41e1beba5cfef3b71bac33cbe9cbbbadfca8f650d17994a197a6e590a4f0f3b9

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