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

Uploaded Source

Built Distribution

datatable_faker-0.1.7-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for datatable-faker-0.1.7.tar.gz
Algorithm Hash digest
SHA256 76ae09ef2e1d09354b04a6136520a269ae6ec5157c862a67c0fdda8b5e7c9cf7
MD5 374b8614223f9f39e4e228c536016e06
BLAKE2b-256 89953d58cf988bd454b87302b300d5bf36459fc4b126730246d687bc27b521ef

See more details on using hashes here.

File details

Details for the file datatable_faker-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for datatable_faker-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4210c1f1b33389cac7117db3f97146b31437cfa03b325300e0ee36f9b52ffee3
MD5 f6b6087260c20e83b95ebe5417029552
BLAKE2b-256 c1c09f1f4f509a5c5d63e926ba91faf073269726e2a720bc294d63d9e79faed9

See more details on using hashes here.

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