A Faker package localized for African data
Project description
NiaFaker
NiaFaker is a Python package that generates fake data localized for African contexts. It can generate names, emails, phone numbers, addresses, cities, and countries.
Installation
To install NiaFaker, use pip:
pip install niafaker
Usage
Here's how to use NiaFaker to generate various types of fake data:
Generate a Random Name
import niafaker
name = niafaker.generate_name()
print(name)
Generate a Random Email
import niafaker
email = niafaker.generate_email()
print(email)
Generate a Random Phone Number
import niafaker
phone_number = niafaker.generate_phone_number()
print(phone_number)
Generate a Random Address
import niafaker
address = niafaker.generate_address()
print(address)
Generate a Random Address for a Specific Country and City
import niafaker
address = niafaker.generate_address('Kenya', 'Nairobi')
print(address)
Generate a Random City
import niafaker
city = niafaker.generate_city()
print(city)
Generate a Random City for a Specific Country
import niafaker
city = niafaker.generate_city('Nigeria')
print(city)
Generate a Random Country
import niafaker
country = niafaker.generate_country()
print(country)
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
Owden Godson (OG) - africahomeforever@gmail.com
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.1.tar.gz.
File metadata
- Download URL: niafaker-0.1.1.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d5710e1acaa982491fe7ef2f140d13dcc6f50f44f406ca8e2cfd5dd8338260c
|
|
| MD5 |
3cca131d3637d6eb8bec5b66c25cb606
|
|
| BLAKE2b-256 |
190337cf1756dbea6e14de04805788e6d88c2032470e9df26e635b2a8b3e9573
|
File details
Details for the file niafaker-0.1.1-py3-none-any.whl.
File metadata
- Download URL: niafaker-0.1.1-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 |
21547ca4d55830492579dec0373fa03a0668ed59289e2bcb73845f320864e1bf
|
|
| MD5 |
f5799c56b24b45315711bb6ca738fdbd
|
|
| BLAKE2b-256 |
333883c04d7391395e0d8a4aefd5640e9b7b9cc33b958538912791364971f497
|