Create generic any easy to manage Configs for your Project
Project description
pip install cornflakes
Information
This package was created by starting C ++ methods to incorporate into my python implementations. To make things easier for me, lightweight public libraries were included (especially to carry out string operations):
hash-library
strtk
Features:
- The following features have currently been implemented:
- config management system
based on dataclass
alternative Implementation for pydantic (BaseSettings)
ini support files by a lightweight and fast parser (-> ini_load)
yaml support (based on PyYAML)
environment variables
(future) support json (based on orjson)
- command line interface management
method: click_cli (decorator)
based on click and rich
easy to use and start with
- eval_type
method to parse strings in python-types e.g. int | bool | timestamp
- simple_hmac
vectorized c++ hmac implementation
- default_ca_path
python function to find a default ssl / ca certificate path
Currently, the package is tested for Linux, Mac and Windows
Development
Prerequisites
A compiler with C++17 support
Pip 10+ or CMake >= 3.4 (or 3.8+ on Windows, which was the first version to support VS 2015)
Python 3.8+
Commands
Just 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 cookietemple ninja pre-commit poetry
Bump Version using cookietemple:
cookietemple bump-version "<version(e.g 0.0.1)>"
Run lint using cookietemple:
cookietemple lint .
Install pre-commit:
pre-commit install
Update pre-commit:
pre-commit update -a
Run pre-commit:
pre-commit run -a
Publish
Its not recommended publish manually (use git-ci or github workflows instead).
make publish
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.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 491b6690930c4a0e14edae8dc6b2ad38db8b786cc024b49b6874c0d4d1fef737 |
|
MD5 | caede2ba2d68be31a996ccac2e4aa379 |
|
BLAKE2b-256 | 0d694db316df2069cbe76f92f0eda4c478906737289877f2066b874b203610de |
Hashes for cornflakes-3.0.1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e16fa72f4d1d49853221b411ca490a7549d9b0f14f8babda2580f9339f49fc8 |
|
MD5 | e7fe0cbf80aab24c8de85668be28577d |
|
BLAKE2b-256 | 07adebeefca418fb462c246f1ab361c9f55606031ac2da8577712b3f43414efe |
Hashes for cornflakes-3.0.1-cp310-cp310-macosx_10_16_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 489c56b806f2bcc7d8ce06928e4991e700788c0d22b676683554397253ea8efb |
|
MD5 | c777a497b49027900828d42c7d4cd91b |
|
BLAKE2b-256 | afb3d4a3ccb80430e7b4d8e4582476ad465b6831a5a9b48d04a40193e6aef478 |
Hashes for cornflakes-3.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97bf94c92f4cbb2c4024251a02005359cf05b9945ec0bb7c3c8bd773a915c9e0 |
|
MD5 | bfe239cdfeb8f4b0e024b5104abec782 |
|
BLAKE2b-256 | 675b78c839b33c78857a7e4bd7476078d45511ed9cca74797708facb1502ce22 |
Hashes for cornflakes-3.0.1-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7867c27351126fe38158e86e4b1cccc72b55fe7ad3a9c07003d627b34f8e424b |
|
MD5 | f771e2fb0b3b9208906a0184526610e5 |
|
BLAKE2b-256 | a64ef2c9a4762369f87bd6148a65e450f95d827e1c7ec902dc94d6efa5a1259f |
Hashes for cornflakes-3.0.1-cp39-cp39-macosx_10_16_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c6cfe41e1066c5b6e80f55c16980268e41b96ce997e261ce6cf0257a54ed2eb |
|
MD5 | fc57f4bad90296e53a4357a0ec1fc9e0 |
|
BLAKE2b-256 | 8139d9eea6235e893bee3663920cec3f9c8609a40900ae720bb73a5e915c29c0 |
Hashes for cornflakes-3.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f757e6429bb28a5cd3146414fd40335092676c11ac316a0ea4273c1dd8aa2a97 |
|
MD5 | 0a4776d8bd89dfa5dbef4c01ae1ba049 |
|
BLAKE2b-256 | 492d1688cd62612eb7916279f2315c6e81661887a13f7bc5c434e2da0ba0acd8 |
Hashes for cornflakes-3.0.1-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9370fcd89c791d88f5a591111e444ba4db5e071108c89d53e5dd20a92b8c0aba |
|
MD5 | 536c0cc08d2f1c2e16586cbabb18444f |
|
BLAKE2b-256 | 795d901ef4e2416ac16a34d408229244a86aec2f430f31af077fd1abcdadb3f1 |
Hashes for cornflakes-3.0.1-cp38-cp38-macosx_10_16_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf472b045264a6af2e4161e8851f65bdda10816a77a7c0d6e6ab9c3bad2f4d8f |
|
MD5 | 3f11ffc64f88347d55089664913d0a1b |
|
BLAKE2b-256 | 928c3e521fa14bd9c5e6d7582d4a83ebbfcad7ed720f28549158ea3c545a55ff |