Skip to main content

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

Project description

persian-names

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

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:

import persian_names as pn

pn.fullname_fa('male')   # or pn.fullname_fa('m')
pn.fullname_fa('female') # or pn.fullname_fa('f')
pn.fullname_fa('random') # or pn.fullname_fa('r')

Example:

import persian_names as pn

male = pn.fullname_fa('m')
female = pn.fullname_fa('f')
random = pn.fullname_fa('r')

print('Male name:', male)     # Male name: اشکان محمدرضائیان
print('Female name:', female) # Female name: مهسا امینی
print('Random name:', random) # Random name: بیتا خسروی راد

Generate Persian names in English:

import persian_names as pn

pn.fullname_en('male')   # or pn.fullname_en('m')
pn.fullname_en('female') # or pn.fullname_en('f')
pn.fullname_en('random') # or pn.fullname_en('r')

Example:

import persian_names as pn

male = pn.fullname_en('m')
female = pn.fullname_en('f')
random = pn.fullname_en('r')

print('Male name:', male)     # Male name: Arsalan Mohammadi
print('Female name:', female) # Female name: Sara Alipour
print('Random name:', random) # Random name: 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.1.5.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

persian_names-1.1.5-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: persian-names-1.1.5.tar.gz
  • Upload date:
  • Size: 7.8 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.1.5.tar.gz
Algorithm Hash digest
SHA256 14d4c0a16baa129928839189697e52c53db67a39666dcbde9f7da87805e0a267
MD5 993b51ace6b5f262518f75070123797c
BLAKE2b-256 5930421b8ae6b35c6aeac1257fb9ba2ddf8aa89dd64b2b44857450c0444d938a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for persian_names-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 36c8a560c8082cb1463b1b870e49f0bf73e389e2985a7f842368be1b1cf9b56f
MD5 bb5ab30a1938c09af6fb703631afc185
BLAKE2b-256 1a97b0432ace6c2c4796227b1626c69f3e5e814fa79fd328b28d587aee768e11

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