Skip to main content

Library to generate fake datatable for unittest

Project description

datatable-faker

Library to generate fake datatable for unittest

https://img.shields.io/pypi/v/datatable-faker https://github.com/Agent-Hellboy/datatable-faker/actions/workflows/python-publish.yml/badge.svg https://img.shields.io/pypi/pyversions/datatable-faker.svg https://img.shields.io/pypi/l/datatable-faker.svg https://pepy.tech/badge/datatable-faker https://img.shields.io/pypi/format/datatable-faker.svg

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.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

datatable_faker-0.1.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page