Skip to content

Commit

Permalink
add pydantic-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
baniasbaabe committed Dec 14, 2024
1 parent 61b09d3 commit 18f0d2c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion book/cooltools/Chapter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,19 @@
{
"cell_type": "markdown",
"metadata": {},
"source": []
"source": [
"Is this the best way to work with environment variables?\n",
"\n",
"**pydantic-settings** makes it so easy to work with your environment variables in an easy way.\n",
"\n",
"Why it's a great tool:\n",
"- Type-safe configuration with zero boilerplate \n",
"- Automatic environment variable loading \n",
"- Built-in validation and error handling \n",
"- Seamless .env file support\n",
"\n",
"For your settings, just create a class which inherits from **BaseSettings** and define your variables there."
]
},
{
"cell_type": "code",
Expand Down

0 comments on commit 18f0d2c

Please sign in to comment.