| Crates.io | konfy |
| lib.rs | konfy |
| version | 0.1.0 |
| created_at | 2025-05-15 03:59:59.015006+00 |
| updated_at | 2025-05-15 03:59:59.015006+00 |
| description | Configure gui, tui, repl and cli applications |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1674332 |
| size | 111,160 |
Konfy is a configuration management system for GUI, TUI, REPL, and CLI applications. It allows applications to load settings from multiple sources such as defaults, configuration files, environment variables, and CLI/application arguments while ensuring the highest priority value is provided to the user.
Settings are loaded in the following order of priority, from highest to lowest:
CLI / Application arguments
Environment variables
Configuration files:
Application defaults
Here's how to use Konfy in a typical application:
TBD
TBD
TBD
TBD
from konfy import ...
TBD
Assume you have an application that supports settings for theme, timeout, and
verbose mode.
TBD
TBD
TBD
TBD
The resolved configuration will be:
• theme: dark (from CLI argument)
• timeout: 45 (from environment variable)
• verbose: true (from user configuration)
By following this priority order, Konfy ensures the most relevant and
user-specified configurations are always applied, making application
configuration seamless and robust.