A Python library to generate fake data with Indonesian characteristics.
Project description
Indofaker
Indofaker is a Python library designed to generate fake data with an Indonesian touch, such as names, addresses, phone numbers, and more. This library is useful for testing or development purposes when you need random data in an Indonesian format.
Installation
To install this library, use pip:
pip install indofaker
Usage
1. Generate Fake Names
Generate a name with specific details:
You can generate a name based on the specified gender, tribe, and religion.
from indofaker import generate_name, Gender, Tribe, Religion
name = generate_name(gender=Gender.MALE, tribe=Tribe.JAVA, religion=Religion.ISLAM)
print(name)
Output:
Surya Siswanto
Generate a random name:
If you want a random name without specific details, you can use the following function:
from indofaker import generate_random_name, Gender, Tribe, Religion
name = generate_random_name()
print(name)
Output:
Budi Raharjo
2. Generate Fake Address
You can also generate a fake address in a typical Indonesian format.
from indofaker import generate_address
address = generate_address()
print(address)
Output:
Jl. Sudirman No.4, RT 09 / RW 05, Desa Singkole, Kecamatan Sangatta Utara, Kabupaten Kutai Timur, Provinsi Kalimantan Timur, 95243
Additional Features
- Gender: You can specify gender (Male or Female).
- Tribe: Choose the Indonesian tribe you prefer (e.g., Java, Sunda, Batak, etc.).
- Religion: Options are available for different religions (Islam, Christianity, Hinduism, etc.).
Contributing
If you want to contribute to this project, feel free to open a pull request or report any issues or suggestions.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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 indofaker-0.1.1.tar.gz.
File metadata
- Download URL: indofaker-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2572cf271d15cdfb401fcda9076a8e02f4139210e4d7d2d941e95ec7d10c10
|
|
| MD5 |
d8a2a174c6673d98efe72d98a5ba5310
|
|
| BLAKE2b-256 |
c1360818c499c8f3b9f3ff81f9cd3e1035b9614edf42c6fc7a7e9b2b72d86f1d
|
File details
Details for the file indofaker-0.1.1-py3-none-any.whl.
File metadata
- Download URL: indofaker-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a1238bc3ab5a6ded1594974d0d9ace76d5f0db3dc88ec1736fd04757f80f2a2
|
|
| MD5 |
2a03605bf8326abd8107dddd6eab8679
|
|
| BLAKE2b-256 |
f00a5cbee28c152de296455412fa0b9886e763a275296897210263cfb557e0b5
|