A Python package for generating random dummy data for testing purposes.
Project description
ForgeData
A Python package for generating random dummy data for testing purposes.
Installation:
pip install forgedata
Data types supported as of v1.0.1:
👉 Name
👉 Email
👉 Password
👉 Website
👉 Phone
👉 Country
Name
from forgedata import generator as ge
ge.name(type, quantity, gender='all')
| Parameter | Type | Description |
|---|---|---|
| type | firstname | To generate firstnames |
| lastname | To generate lastnames | |
| fullname | To generate fullnames | |
| quantity | numeric value | Quantity of results to be generated |
| gender | male | To generate male names |
| female | To generate female names | |
| all (Default) | To generate a mix of both male and female names |
Output type: Python list []
from forgedata import generator as ge
ge.email(quantity, domain=None)
| Parameter | Type | Description |
|---|---|---|
| quantity | numeric value | Quantity of results to be generated |
| domain | None (Default) | No specific domains, results can contain any random domains |
| common | To generate email addresses using only gmail.com, yahoo.com, outlook.com, hotmail.com | |
| [list] | To generate email addresses using only the domains specified in the list |
Output type: Python list []
Password
from forgedata import generator as ge
ge.password(quantity, length, difficulty="hard")
| Parameter | Type | Description |
|---|---|---|
| quantity | numeric value | Quantity of results to be generated |
| length | numeric value | Length of password |
| difficulty | easy | Password comprises only of letters(upper and lower) |
| medium | Password comprises only of letters(upper and lower) and digits | |
| hard (Default) | Password comprises only of letters(upper and lower), digits and special characters |
Output type:
Single Password - Python string
Mutilple Passwords - Python list []
Website
from forgedata import generator as ge
ge.website(quantity, domain=None, www=False)
| Parameter | Type | Description |
|---|---|---|
| quantity | numeric value | Quantity of results to be generated |
| domain | None (Default) | Domains can be both common and uncommon ones. |
| common | Only return common domain names | |
| www | False (Default) | Donot prefix www. to the domains |
| True | Prefix www. to the domains |
Output type: Python list []
Phone
from forgedata import generator as ge
ge.phone(quantity)
| Parameter | Type | Description |
|---|---|---|
| quantity | numeric value | Quantity of results to be generated |
Output type: Python list []
Country
from forgedata import generator as ge
ge.country(quantity, countrycode=False)
| Parameter | Type | Description |
|---|---|---|
| quantity | all (Default) | Returns list of all countries |
| numeric value | Quantity of results to be generated | |
| countrycode | False (Default) | Donot provide country code along with name |
| True | Provide country code along with name |
Output type: Python list []
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 forgedata-1.0.1.tar.gz.
File metadata
- Download URL: forgedata-1.0.1.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3de96b1fda8f6e1f2b6ef97e51471619de9fced9ca8c5077add035d5267e8e1
|
|
| MD5 |
c31b261550c461f67363b6d782e1b257
|
|
| BLAKE2b-256 |
283e7bea42555a47390f63ec77c3daba9b4bec6ff805e4e67aedb65bbf1741e3
|
File details
Details for the file forgedata-1.0.1-py3-none-any.whl.
File metadata
- Download URL: forgedata-1.0.1-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62f3814f3e364c2af4fbb64ce6aef9f27addc1e73f477f7aec6e701f779dbd20
|
|
| MD5 |
813d3f6a21523088d67e9d0b700c1e67
|
|
| BLAKE2b-256 |
a225c3d02958662ce50b385d074a0d6745924a5190e49ed72c22d398b7c12180
|