Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
/ confstruct Public archive

Modern library to configure your Python apps based on msgspec

License

Notifications You must be signed in to change notification settings

univied/confstruct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confstruct

Modern library to configure your Python apps based on msgspec

Caution

The project is archived. I recommend using betterconf instead.

uv Ruff Python versions Project version

Usage

pip install "confstruct @ https://github.com/univied/confstruct.git"
import msgspec
from confstruct import load
from confstruct.providers import JSONProvider
from confstruct.types import SecretStr

class Config(msgspec.Struct):
    password: SecretStr

config = load(Config, provider=JSONProvider({"password": "12345678"}))
print(config.password) # Output: ********
print(config.password.value) # Output: 12345678

License

Confstruct is MIT licensed

About

Modern library to configure your Python apps based on msgspec

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages