
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.