A Faker package localized for African data
Project description
NiaFaker
NiaFaker is a Python package that generates fake data localized for African regions. It provides realistic names, cities, and addresses from various African countries, making it useful for testing and development purposes.
Installation
To install NiaFaker, clone the repository and install it using pip:
```bash git clone https://github.com/owgee/niafaker.git cd niafaker pip install . ```
Usage
Here are some examples of how to use NiaFaker in your Python projects:
Generate a Random Name
```python from niafaker import generate_name
Generate a random name
print(generate_name())
Generate a random male name
print(generate_name('male'))
Generate a random female name
print(generate_name('female')) ```
Generate a Random Last Name
```python from niafaker import generate_last_name
Generate a random last name
print(generate_last_name()) ```
Generate a Random City
```python from niafaker import generate_city
Generate a random city
print(generate_city())
Generate a random city in Nigeria
print(generate_city('Nigeria')) ```
Generate a Random Address
```python from niafaker import generate_address
Generate a random address
print(generate_address())
Generate a random address in Nigeria
print(generate_address('Nigeria'))
Generate a random address in Lagos, Nigeria
print(generate_address('Nigeria', 'Lagos')) ```
Running Tests
To run the tests for NiaFaker, use the following command:
```bash python -m unittest discover tests ```
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
License
This project is licensed under the MIT License. See the `LICENSE` file for details.
Author
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 niafaker-0.1.0.tar.gz.
File metadata
- Download URL: niafaker-0.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7362dd1236e8bfc5006abcf8f9fe9f463a37aa65025da759b4642e8e3aa9a785
|
|
| MD5 |
89c3c48a648153e17e7bace9304e44e2
|
|
| BLAKE2b-256 |
5efd10b1a0523991097e060469a970003ebea49d3c22e15ffefcc354cd76dd65
|
File details
Details for the file niafaker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: niafaker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2be20d33bc4fe701209994ad02f30c17f33a7bb3b8b857082df41d62b28d4676
|
|
| MD5 |
a9c717d8f5b86b11ad62bc9286dd9cf4
|
|
| BLAKE2b-256 |
d1d7aa7331bcc8ed735005a9ef06d5fd695acaa2deb66735e3b81b90eecc4bc4
|