Skip to main content

Create generic any easy way to manage Configs for your project

Project description

cornflakes logo

PyPI Python Version License Read the Docs Build Tests Codecov

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

cornflakes-3.3.14.tar.gz (3.2 MB view hashes)

Uploaded Source

Built Distributions

cornflakes-3.3.14-cp311-cp311-win_amd64.whl (270.3 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

cornflakes-3.3.14-cp311-cp311-manylinux_2_35_x86_64.whl (400.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

cornflakes-3.3.14-cp311-cp311-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl (404.7 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

cornflakes-3.3.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (424.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cornflakes-3.3.14-cp311-cp311-macosx_12_0_x86_64.whl (570.6 kB view hashes)

Uploaded CPython 3.11 macOS 12.0+ x86-64

cornflakes-3.3.14-cp310-cp310-win_amd64.whl (269.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

cornflakes-3.3.14-cp310-cp310-manylinux_2_35_x86_64.whl (399.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

cornflakes-3.3.14-cp310-cp310-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl (403.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

cornflakes-3.3.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cornflakes-3.3.14-cp310-cp310-macosx_12_0_x86_64.whl (342.9 kB view hashes)

Uploaded CPython 3.10 macOS 12.0+ x86-64

cornflakes-3.3.14-cp39-cp39-win_amd64.whl (269.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

cornflakes-3.3.14-cp39-cp39-manylinux_2_35_x86_64.whl (399.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

cornflakes-3.3.14-cp39-cp39-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl (403.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

cornflakes-3.3.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cornflakes-3.3.14-cp39-cp39-macosx_12_0_x86_64.whl (343.0 kB view hashes)

Uploaded CPython 3.9 macOS 12.0+ x86-64

cornflakes-3.3.14-cp38-cp38-win_amd64.whl (269.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

cornflakes-3.3.14-cp38-cp38-manylinux_2_35_x86_64.whl (398.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

cornflakes-3.3.14-cp38-cp38-manylinux_2_28_x86_64.manylinux_2_24_x86_64.whl (402.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

cornflakes-3.3.14-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (422.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

cornflakes-3.3.14-cp38-cp38-macosx_12_0_x86_64.whl (342.8 kB view hashes)

Uploaded CPython 3.8 macOS 12.0+ x86-64

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