Nepali name generator, surname and caste/ethnic group utilities
Project description
NepalPy 🇳🇵
Nepali Name, Caste & Location Generator – A lightweight, zero-dependency Python library to generate realistic Nepali names, surnames, caste/ethnic group categories, districts, and provinces.
nepalpy is designed for developers, researchers, and students who need authentic Nepali demographic and geographic data for testing, simulations, analytics, or educational projects.
Features
| Feature | Description |
|---|---|
name() |
Generate random first names (male, female, or mixed) |
name_start_with(letter, count) |
Generate names starting with a given letter |
name_end_with(letter, count) |
Generate names ending with a given letter |
last_name() |
Generate a random surname/caste |
cast(count) |
Generate multiple surnames |
full_name() |
Generate full names (first + last) |
cast_category(surname) |
Identify caste/ethnic group category |
district(count=1) |
Generate 1 or multiple random districts |
district_all() |
Get all 77 districts of Nepal |
province(count=1) |
Generate 1 or multiple random provinces |
province_all() |
Get all provinces of Nepal |
district_province(district_name) |
Return the province of a given district |
Supported Caste Categories:
- khas-arya (bahun, chhetri, thakuri, sanyasi)
- janajati (tamang, gurung, magar, rai, limbu, etc.)
- newar (shrestha, maharjan, sakya, bajracharya, etc.)
- dalit (kami, damai, sarki, bishwokarma, etc.)
- madhesi (yadav, kurmi, teli, chamar, etc.)
All mappings and geographic data are configurable and expandable.
Installation
pip install nepalpy
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nepalpy-1.3.2.tar.gz.
File metadata
- Download URL: nepalpy-1.3.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eaa1e040123f2824d791e90c8b123bc1bbf8255bee9a5a76ff7fab8412cbb3e
|
|
| MD5 |
187d87ce9377636587bfcc5eabab0b78
|
|
| BLAKE2b-256 |
f53d28d3c0d61062a7215cd8dc9f838f78bf55dd5fc1235f267f12f1ee0a088d
|
File details
Details for the file nepalpy-1.3.2-py3-none-any.whl.
File metadata
- Download URL: nepalpy-1.3.2-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b66b0e872690bc13db94b9d899754bce967fe73f2c451a39f122842ab8a2fa
|
|
| MD5 |
fe69bbfcad131987c2261fc8cf4d19fb
|
|
| BLAKE2b-256 |
33a21b24be9e604996c670a71cce82bbecfd21f6c203207f490e89c4c53d5db4
|