
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
app-settings-pydantic
Advanced tools
A simple configuration management package using `pydantic-settings` and `platformdirs`
A simple configuration management package using pydantic-settings
and platformdirs
.
This package allows you to define application settings in a .env
file stored in the user's configuration directory.
platformdirs
pydantic-settings
for settings validation and managementconfigure()
function.save()
method to persist settingspip install app-settings-pydantic
Before using Settings
, you must configure the package with app name and default language.
from app_settings import configure
configure(app_name="my_app", default_language="en")
from app_settings import Settings
settings = Settings()
settings.language = "pl"
settings.save() # Saves to ~/.config/my_app/.env (Linux)
The configuration file is stored in the user config directory provided by platformdirs
, e.g.:
~/.config/<app_name>/.env
~/Library/Application Support/<app_name>/.env
C:\Users\<User>\AppData\Local\<app_name>\.env
Currently, the settings class includes:
language
: Application language (default from configure()
, supports "en" and "pl")If configure()
is not called before accessing Settings
, a RuntimeError
will be raised.
MIT
FAQs
A simple configuration management package using `pydantic-settings` and `platformdirs`
We found that app-settings-pydantic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.