Skip to main content

Generate dummy data, e.g., for testing APIs

Project description

evonik-dummy

This repo contains the python module evonik.dummy. It is publically available on the python package index as the package evonik-dummy.

The module contains python classes to generate dummy data. These classes and their attributes / arguments are designed with the properties of data elements in OpenAPI in mind. They can be used to generate example data for testing and showcasing APIs, including REST and GQL.

Repo Structure

evonik/            # source code of evonik-dummy
notebooks/         # jupyter notebooks with examples and doc
LICENSE            # MIT license file
README.md          # this README
setup.py           # pypi setup script
requirements.txt   # list of dependencies

Installation

Use the package manager pip to install evonik.dummy as the package evonik-dummy.

pip install evonik-dummy

Usage

from evonik.dummy import String, Integer

print(String().valids(5))
print(Integer().invalids(exhaustive=True))

Test

To test the current implementation, execute the following:

pytest evonik/dummy

Build & Upload

To build the package and upload a new version to pypi, execute the following commands:

rm -rf build dist evonik_dummy.egg-info
python3 setup.py sdist bdist_wheel --universal
twine upload dist/*

License

MIT

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

evonik-dummy-0.0.13.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

evonik_dummy-0.0.13-py2.py3-none-any.whl (15.5 kB view hashes)

Uploaded Python 2 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