AtomicMegaNerd / pydantic_settings_example

A basic example of loading environment variables from pydantic-settings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fun with Pydantic

This is an example of how to use Pydantic to validate and parse data from environment variables.

Run the Examples

In all cases the properties of the Python objects will be loaded from environment variables.

Employee

./run_employee.sh

Student

./run_student.sh

Robot

./run_robot.sh

About

A basic example of loading environment variables from pydantic-settings


Languages

Language:Python 92.2%Language:Shell 7.8%