/pydantic_settings_example

A basic example of loading environment variables from pydantic-settings

Primary LanguagePython

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