Generate random JSON with no schemas involved
Project description
oddsprout
Oddsprout is a configurable CLI tool and a Python library for generating random JSONs with no schemas involved. I developed this tool out of necessity to test a JSON parser but all solutions I found online involved generating data based on templates.
See the documentation for usage.
Installation
If you only intend to use it as a CLI tool:
pipx install oddsprout
Otherwise, install the library from PyPI:
pip install oddsprout
Or from source:
pip install git+https://github.com/trag1c/oddsprout.git
Contributing
Contributions are welcome!
Please open an issue before submitting a pull request (unless it's a minor change like fixing a typo).
To get started:
just install
[!Note] If you don't want to install
just
, simply look up the recipes in the project'sjustfile
.
- After you're done, use the following
just
recipes to check your changes:
just test # runs pytest and mypy
just lint # runs the ruff linter and formatter in check mode
just format # runs the ruff formatter and isort
just coverage # checks UT and docstring coverage
License
oddsprout
is licensed under the MIT License.
© trag1c, 2024
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 oddsprout-0.1.1.tar.gz
.
File metadata
- Download URL: oddsprout-0.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.18 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2006bd01c9e904dbce2808cb853eef0a57f75f20fa01224243c27ca9d9c5a6e3 |
|
MD5 | 2fc4bf05b29d9d11e225298f0409aa8a |
|
BLAKE2b-256 | ee0dfa8201ea54b87cc9bfebe9fde043c080a1eecc933ad3d57f39c38ccec901 |
File details
Details for the file oddsprout-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: oddsprout-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.18 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4064309c7028d779eefb5b564162de24507a80c3bae067506bbd3723400e3aef |
|
MD5 | cb749c9f9dc946588381b8e2308e50dd |
|
BLAKE2b-256 | fd408a92ce8e7056f66c18828032715adf2c83a39bbd5ee61e04948d4d65d701 |