Skip to content

Commit 73cc427

Browse files
authored
Merge pull request #418 from metwork-framework/add-pydantic-settings
feat: add pydantic-settings for BaseSettings moved from pydantic
2 parents d0353e3 + 0e788ee commit 73cc427

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

.metwork-framework/components.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
| [packaging](https://pypi.org/project/packaging) | 26.0 | ldap |
2929
| [pyasn1](https://github.com/pyasn1/pyasn1) | 0.6.3 | ldap |
3030
| [pyasn1_modules](https://github.com/pyasn1/pyasn1-modules) | 0.4.1 | ldap |
31+
| [pydantic-settings](https://github.com/pydantic/pydantic-settings) | 2.14.1 | ldap |
3132
| [pydantic](https://github.com/pydantic/pydantic) | 2.13.4 | ldap |
3233
| [pydantic_core](https://github.com/pydantic/pydantic) | 2.46.4 | ldap |
3334
| [PyJWT](https://github.com/jpadilla/pyjwt) | 2.12.1 | ldap |
35+
| [python-dotenv](https://pypi.org/project/python-dotenv) | 1.2.2 | ldap |
3436
| [python-ldap](https://www.python-ldap.org/) | 3.4.5 | ldap |
3537
| [python-multipart](https://github.com/Kludex/python-multipart) | 0.0.29 | ldap |
3638
| [redis](https://github.com/redis/redis-py) | 7.1.1 | ldap |
@@ -44,4 +46,4 @@
4446
| [uvicorn](https://www.uvicorn.org/) | 0.34.2 | ldap |
4547
| [zipp](https://pypi.org/project/zipp) | 3.21.0 | ldap |
4648

47-
*(43 components)*
49+
*(45 components)*

integration_tests/0001_test_import_ldap/import_python3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import pyasn1_modules
2323
import pydantic
2424
import pydantic_core
25+
import pydantic_settings
26+
import dotenv
2527
import jwt
2628
import ldap
2729
import multipart

layers/layer3_ldap/0500_ldap_deps/requirements3.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ pyasn1==0.6.3
2222
pyasn1-modules==0.4.1
2323
pydantic==2.13.4
2424
pydantic-core==2.46.4
25+
pydantic-settings==2.14.1
2526
PyJWT==2.12.1
27+
python-dotenv==1.2.2
2628
python-ldap==3.4.5
2729
python-multipart==0.0.29
2830
redis==7.1.1

layers/layer3_ldap/0600_ldap_code/repaire/api/app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from functools import cache
22
from typing import Optional
33

4-
from pydantic import BaseSettings
4+
from pydantic_settings import BaseSettings
55

66

77
class Settings(BaseSettings):

0 commit comments

Comments
 (0)