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 []
Metadata
Release files for forgedata 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| forgedata-1.0.1.tar.gz | 42.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| forgedata-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.8 kB
Release files / forgedata-1.0.1.tar.gz
| Download URL | forgedata-1.0.1.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3de96b1fda8f6e1f2b6ef97e51471619de9fced9ca8c5077add035d5267e8e1
|
|
BLAKE2b-256 checksum How to use checksums |
283e7bea42555a47390f63ec77c3daba9b4bec6ff805e4e67aedb65bbf1741e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / forgedata-1.0.1-py3-none-any.whl
| Download URL | forgedata-1.0.1-py3-none-any.whl |
|---|---|
| Size | 40.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62f3814f3e364c2af4fbb64ce6aef9f27addc1e73f477f7aec6e701f779dbd20
|
|
BLAKE2b-256 checksum How to use checksums |
a225c3d02958662ce50b385d074a0d6745924a5190e49ed72c22d398b7c12180
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for forgedata 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.