<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>pydantic on Amin Alaee</title>
    <link>https://aminalaee.github.io/tags/pydantic/</link>
    <description>Recent content in pydantic on Amin Alaee</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 26 Jan 2023 16:53:06 +0100</lastBuildDate><atom:link href="https://aminalaee.github.io/tags/pydantic/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Pydantic Settings with AWS Secrets Manager</title>
      <link>https://aminalaee.github.io/posts/2023/pydantic-settings-secret-manager/</link>
      <pubDate>Thu, 26 Jan 2023 16:53:06 +0100</pubDate>
      
      <guid>https://aminalaee.github.io/posts/2023/pydantic-settings-secret-manager/</guid>
      <description>Intro If you are already familiar with Pydantic, one of the useful components of Pydantic is the Settings Management. This will allow you to read settings variables from different sources and parse and validate them into class(es) using Pydantic.
Let&amp;rsquo;s see a minimal example. First we need to set up the variable:
$ export API_KEY=xxx And then we can read it into the Settings class with:
from pydantic import BaseSettings class Settings(BaseSettings): api_key: str print(Settings().</description>
    </item>
    
  </channel>
</rss>
