Create generic any easy way to manage Configs for your project
Project description
pip install cornflakes
pip install git+https://github.com/semmjon/cornflakes
:warning: Warning: Please be careful when using this Python module. Currently, it is only developed / tested by me, which is why it has a high update / change rate. I'm actually trying to be compatible with implementations, but I can't guarantee this at the moment. The module is currently still in a beta state and is not recommended for productive use.
Information
The Python module "cornflakes" was started as a hobby project and offers an alternative to Pydantic for managing configurations and data structures. It allows creating generic and easy to manage configurations for your project. Unlike Pydantic, which is based on inheritance, "cornflakes" uses a decorator (similar to dataclass) to map data structures.
Short Term RoadMap
- Add autocompletion support for click CLI (automatically)
- Change Code Annotations
- remove Any annotations if possible
- change Protocol Annotations to specific type classes
- Enrich json methods
- Fix / Test the to_ Methods (specially yaml)
Development
Prerequisites
- A compiler with C++17 support
- Pip 10+ or CMake >= 3.4
- Python 3.8+
- doxygen
- cppcheck
- clang-tools-extra or clang-tidy
Commands
Clone this repository and pip install. Note the --recursive
option which is needed for the pybind11 submodule:
git clone --recursive https://gitlab.blubblub.tech/sgeist/cornflakes.git
Install the package using makefiles:
make install
Build dist using makefiles:
make dist
Run tests (pytest) using makefiles:
make test
Run all tests using makefiles:
make test-all
Run lint using makefiles:
make lint
Create dev venv:
python -m venv .venv
source .venv/bin/activate
pip install ninja pre-commit poetry
Install pre-commit:
pre-commit install
Update pre-commit:
pre-commit update -a
Run pre-commit:
pre-commit run -a
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 Distributions
Hashes for cornflakes-3.3.14-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4847252e091fc2557887004b7b8817e7a97fc52715f2d533d80cce331a856ff1 |
|
MD5 | fd6ca10ce9e401aafa1225279778ed74 |
|
BLAKE2b-256 | 98ec062bd39aef928f6bc31cb755bcaaa3904c588256dc5300666f945d49e640 |
Hashes for cornflakes-3.3.14-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30b81b2735665e6f21918b0c2c081b1c0be021b6c5906b28029aa48b411553f3 |
|
MD5 | 3739716438ad5aee2263887cfc1123e9 |
|
BLAKE2b-256 | a78e399130563ce37348783b1dc2480c91905b57f56a89bdb69faa7ef101130a |
Hashes for cornflakes-3.3.14-cp311-cp311-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d1096fcab5a71e97d70d18d55401c26fe9dbd313dcd252c23d5354cc0a1a573 |
|
MD5 | eb7264de86cb446fc2da50e3c63c0119 |
|
BLAKE2b-256 | fff74fa0df3c6aeb935cd41f5b6ba0ad04ca8d46bf4060cbaf917ea49d808bd8 |
Hashes for cornflakes-3.3.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71707bd2a24558e3181b8515ff0c0d33480fd810360ef7cd1d34294594d954c5 |
|
MD5 | f3d513cd3c99c2c0e21a33856c88c9c8 |
|
BLAKE2b-256 | 616785c8cba618c49b4313bcf18fd21ebc6175482635d67f0b42c4b13afae281 |
Hashes for cornflakes-3.3.14-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97000029493d4c6c5e98d326329a8b102bf7ad3b28541eb2392b8a45381b1fad |
|
MD5 | ad27e084f8f6d66953d80144b698827d |
|
BLAKE2b-256 | 992be3a5d1afdc310f84e9cda359329a49e15b6ee0a0210ad1a124c564db3bf5 |
Hashes for cornflakes-3.3.14-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26eb8bcc2141b289539493553630d9f84457c2ddba71ddd8c6c23dd53b119e36 |
|
MD5 | ee59be4c8729ea2064dbaa5c8bd3037e |
|
BLAKE2b-256 | d0d000236170eaeb55435a9fb378dd25b8af54610994ecf083e0872c4962b8fa |
Hashes for cornflakes-3.3.14-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbbe32c161a0ffd5d177aac289b0845ff6a3104f75dd093fa7221db4024b5b63 |
|
MD5 | 707111dd1b505fbbbd5808b9668777fc |
|
BLAKE2b-256 | 2cf69f70f13914db26dd7fa8efb0ab7653dcf56156d0f9c3af7f0e96c01848a4 |
Hashes for cornflakes-3.3.14-cp310-cp310-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1709e0f0a6a31f9a610fb389e56baac1621ac9a05eb95ae09092b519f8c5bda5 |
|
MD5 | a06223a698b7b30cb8eb2c38d6c3abb1 |
|
BLAKE2b-256 | fbe853af3380153fcab577fc3090501ee3b82bfd67f5f8384bd499fb172f11e3 |
Hashes for cornflakes-3.3.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a2cd9e9183e29f60aa0a4514c80b1095e9a7bd6b2f52667e56fdfe49dc8f4db |
|
MD5 | e0772bab73b90a82fa21d8ac873feef8 |
|
BLAKE2b-256 | 5c9cfd2d6be9a3073c851eb66255f8d0e652880368663eb501e06aaa58717082 |
Hashes for cornflakes-3.3.14-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1c2e10c6a1ce24266eec9b666ca95d340e97fa37b75116469a2c238cfb92e79 |
|
MD5 | be275c6900e4be752ec2c08e3d787e0a |
|
BLAKE2b-256 | 8f1e479b9ea834e207248008fbc60ff93d3e3f1e0299bcb85e7583155997a62b |
Hashes for cornflakes-3.3.14-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d30aeed9f64e1f9fdd0941027dcc512090a26fd27d0b244cb0ab66685776a29b |
|
MD5 | ad2efae6a43f1ec99a16747b5e77338b |
|
BLAKE2b-256 | c575267b8a285f51a1ae4d0860f86fd37c795f8c3c8cd902f26c6d05d69d2bbf |
Hashes for cornflakes-3.3.14-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68a18a922ea4e6e5db8baf50b9db9eb9185084b434fa22f77e450d5e6406173f |
|
MD5 | 131e8e5c8c8c9350c5c0b1d9d2c4bad2 |
|
BLAKE2b-256 | 2336c14c079912e2fce59fe34634c2044526c826fb135b05efae25f67e057533 |
Hashes for cornflakes-3.3.14-cp39-cp39-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de2209ec0d6a9356f41d79a0d46f2466ed2b00e78249b4626943202338d082da |
|
MD5 | 1c2691e308402e7878ad4808510fb0ba |
|
BLAKE2b-256 | b723abfe0841c308aec31fc8e6084df8e09a6beb251c05c0a07a582791da5668 |
Hashes for cornflakes-3.3.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549837b90307e49d9b88cf7ac93f798dd3a68329969f7b8bad8f33d002e026ab |
|
MD5 | e259daeb0393add4a8132c11a8c37fe2 |
|
BLAKE2b-256 | 4dc6ea90eda585027d07021da536831252baf7a9e343f18640c7a2064517d22a |
Hashes for cornflakes-3.3.14-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 802432e03e9ce0a9796ed12b00165e618d5f48a8fa18edca880fffbc66a25edb |
|
MD5 | 990dd4a895e65f535c4ba615d0f877e2 |
|
BLAKE2b-256 | 42e3066bbbe715da4210de09a3f9519c450503a52da478ef316709acdaa462c6 |
Hashes for cornflakes-3.3.14-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a2abb72eda8d9e8eea342bc8562431d82fcb0aa471ddc50efd1ed4b50f853c7 |
|
MD5 | 03660c2e4f8794e8624ba58c83cc7c62 |
|
BLAKE2b-256 | ad91d2d329f7ac2bd8b9ec6774b1cd4d417dd3838312bdb2a1ec9abce00d4462 |
Hashes for cornflakes-3.3.14-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a38734c8252c7b3425598c89ce57490e671182f682f00329583b07d576119d6d |
|
MD5 | e8a38d9867884a944d74b589906b4318 |
|
BLAKE2b-256 | f8e5faae8b5ba4a5dd1494eaca1c8b7f716e3af7d5a53cac2703cf55768111c4 |
Hashes for cornflakes-3.3.14-cp38-cp38-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d15dbd876ba9a9e627d9210942490c7947c77f40d0f2712e9d4aa4b944025d48 |
|
MD5 | 3c80b0c70ac72f0db0f9603aea9c88ae |
|
BLAKE2b-256 | 73f4f52fe62e7d7884c0ef8e78e7a60bdaa0ab6b8fc32820fd453a64414e2e44 |
Hashes for cornflakes-3.3.14-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc766057d1fae806d911d6fdf1be1625d93853dacda23f1c96ee0fa302d9f60 |
|
MD5 | c93a80be0063c39025d584f9dc20737f |
|
BLAKE2b-256 | 7a188e3c3e3aaf4cc92e24e01cfc5be1987a3cdd154f6d3aa0abc7a265bdc717 |
Hashes for cornflakes-3.3.14-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a7a7583bc9b6b84f9dfdaf96368754f0b2bdecc4a10c83f8844490184c1bca1 |
|
MD5 | 8b4e980c2d64f8d4ed70ed2d7d054267 |
|
BLAKE2b-256 | 1c3be0728464d1e6c6e1cebc485b3d2e161922d0221cd1269bf1e4035ab4c03b |