Skip to content

ACONIO/wizconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wizconfig

An incomplete configuration shall not pass.

You_Shall_Not_Pass!_0-1_screenshot

Install

pip install wizconfig

Example

class TestConfig(WizConfig):
    TEST_KEY = os.getenv("TEST_KEY")  # mandatory
    TEST_API_KEY = os.getenv("TEST_API_KEY"), False  # optional
    TEST_DEBUG = os.getenv("TEST_DEBUG"), True  # mandatory (verbose)
    TEST_MODE = os.getenv("TEST_MODE", "DEV")  # mandatory with default value