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.7.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file datatable-faker-0.1.7.tar.gz
.
File metadata
- Download URL: datatable-faker-0.1.7.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ae09ef2e1d09354b04a6136520a269ae6ec5157c862a67c0fdda8b5e7c9cf7 |
|
MD5 | 374b8614223f9f39e4e228c536016e06 |
|
BLAKE2b-256 | 89953d58cf988bd454b87302b300d5bf36459fc4b126730246d687bc27b521ef |
File details
Details for the file datatable_faker-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: datatable_faker-0.1.7-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4210c1f1b33389cac7117db3f97146b31437cfa03b325300e0ee36f9b52ffee3 |
|
MD5 | f6b6087260c20e83b95ebe5417029552 |
|
BLAKE2b-256 | c1c09f1f4f509a5c5d63e926ba91faf073269726e2a720bc294d63d9e79faed9 |