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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file evonik-dummy-0.0.13.tar.gz
.
File metadata
- Download URL: evonik-dummy-0.0.13.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6fc100f311c11d7396e1b434a62d1265539b6d63e735fa9586499341eeebeb |
|
MD5 | 6c59f473ac1d2508b3f5653a0679a6ca |
|
BLAKE2b-256 | 2ba27154930d623047f7a71e7add4ca8cdc5a0985389de1c9cd1923bbd02b4bc |
File details
Details for the file evonik_dummy-0.0.13-py2.py3-none-any.whl
.
File metadata
- Download URL: evonik_dummy-0.0.13-py2.py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c22d45dcba7e14c0167575d8cd9b30c1b42321dbd7ca684521d38b3aaffa9a1e |
|
MD5 | ff6c84b44b4b9d35c038bcca02506fad |
|
BLAKE2b-256 | b51bd5a50905055871561fed965a690be9a8a4a568834ffcee7b258e9a16e9fe |