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.0
:
👉 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
forgedata-1.0.0.tar.gz
(42.0 kB
view details)
Built Distribution
forgedata-1.0.0-py3-none-any.whl
(40.8 kB
view details)
File details
Details for the file forgedata-1.0.0.tar.gz
.
File metadata
- Download URL: forgedata-1.0.0.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 | 0efcddabf08179155357e8bf4dd08c07314327c4bb253828ee88451c61c9f50b |
|
MD5 | 5b8149f3904d03e2807e3e4c9098c1d7 |
|
BLAKE2b-256 | aea2b9c1430d54bdf40f983b34103dc3824005626b891247bd4fb41275316d05 |
File details
Details for the file forgedata-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: forgedata-1.0.0-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 | 12ed966fe0509424c5419bfe80df84593faa72ad1e494de4e9ce15de3d42d905 |
|
MD5 | 3fffc2ef0becc968da26800f04e5dac5 |
|
BLAKE2b-256 | e7b82b9dd37286bdc81059cf3354622dd54c5cf6b258a4a9268e827ca95fc763 |