Library to generate fake datatable for unittest
Project description
datatable-faker
Library to generate fake datatable for unittest
Installation
for stable version - pip install datatable-faker for developement - git clone https://github.com/Agent-Hellboy/datatable-faker - cd datatable-faker - python -m venv .venv - source .venv/bin/activate
Example
from dataclasses import dataclass
@dataclass()
class Heartbeat:
serialNumber: str
cbsdId: str
grantId: str
grantState: str
carrier: int
maxEirp: int
from datatable_faker import generate_fake_data
fake_data = generate_fake_data(Heartbeat)
print(fake_data)
Heartbeat(serialNumber='economic', cbsdId='pull', grantId='save', grantState='same', carrier=729, maxEirp=1792)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datatable-faker-0.1.6.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for datatable_faker-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c9049ce7ac6ddb3e133742054328510128661601b91ad71f4efdc1cba79efe1 |
|
MD5 | 08cd2df04b6e5ea101da29f3c7534a52 |
|
BLAKE2b-256 | 7c7a530f522833b49dac5d3fdc4170a6ec537833aedee1e93836ed6fb93f420f |