Pyutil-cfg

Latest version: v0.1.1

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.1

16

Allow the simplest usage:

python
import pyutil_cfg as cfg

logger, config = cfg.init()

0.1.0

[Breaking Changes!]

Requiring python >= 3.10

configuration files:
1. remove `:main` (breaking change!)
2. supporting both `.toml` and `.ini`
3. logging sections comply with `logging.fileConfig`
4. add `disable_existing_loggers` in `[loggers]` section
5. `disable_existing_loggers` defaults to `True` (breaking change!)

configuration code:
1. explicitly defining `Config` (inherited from `TypedDict`, cannot be used as instance).
2. change default of `disable_existing_loggers` as `True`.
3. add `is_extra_params_in_file_ok: bool = True` in `init` params
4. add `is_skip_extra_params_in_file: bool = False` in `init` params
5. add `show_config: Optional[int] = None` in `init` params

misc:
1. Reason not including `.json`: not a good file format for config.
2. Reason not including `.yaml`: not the standard lib from python.

0.0.7

9
* use pyproject.toml.
* configparser.SafeConfigParser => configparser.ConfigParser.
* use pytest.

0.0.6

7
* always with logger

0.0.5

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.