https://github.com/agent-hellboy/datatable-faker
Library to generate fake datatable for unittest
https://github.com/agent-hellboy/datatable-faker
Last synced: 10 months ago
JSON representation
Library to generate fake datatable for unittest
- Host: GitHub
- URL: https://github.com/agent-hellboy/datatable-faker
- Owner: Agent-Hellboy
- License: mit
- Created: 2023-04-25T12:47:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-01T05:07:31.000Z (almost 3 years ago)
- Last Synced: 2025-07-05T14:18:47.413Z (11 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
datatable-faker
================
Library to generate fake datatable for unittest
.. image:: https://img.shields.io/pypi/v/datatable-faker
:target: https://pypi.python.org/pypi/datatable-faker/
.. image:: https://github.com/Agent-Hellboy/datatable-faker/actions/workflows/python-publish.yml/badge.svg
:target: https://github.com/Agent-Hellboy/datatable-faker/
.. image:: https://img.shields.io/pypi/pyversions/datatable-faker.svg
:target: https://pypi.python.org/pypi/datatable-faker/
.. image:: https://img.shields.io/pypi/l/datatable-faker.svg
:target: https://pypi.python.org/pypi/datatable-faker/
.. image:: https://pepy.tech/badge/datatable-faker
:target: https://pepy.tech/project/datatable-faker
.. image:: https://img.shields.io/pypi/format/datatable-faker.svg
:target: https://pypi.python.org/pypi/datatable-faker/
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
=======
.. code:: py
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.