From 1208fe379ef74fce8ab785f5f1ab8f3186a8bd9f Mon Sep 17 00:00:00 2001 From: xxxw1tnessbtwxxx Date: Tue, 17 Dec 2024 00:36:46 +0700 Subject: [PATCH] added pydantic settings --- poetry.lock | 36 +++++++++++++++++++++++++++++++++++- pyproject.toml | 1 + 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index dc5e33c..1e50d49 100644 --- a/poetry.lock +++ b/poetry.lock @@ -374,6 +374,26 @@ files = [ [package.dependencies] typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0" +[[package]] +name = "pydantic-settings" +version = "2.7.0" +description = "Settings management using Pydantic" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pydantic_settings-2.7.0-py3-none-any.whl", hash = "sha256:e00c05d5fa6cbbb227c84bd7487c5c1065084119b750df7c8c1a554aed236eb5"}, + {file = "pydantic_settings-2.7.0.tar.gz", hash = "sha256:ac4bfd4a36831a48dbf8b2d9325425b549a0a6f18cea118436d728eb4f1c4d66"}, +] + +[package.dependencies] +pydantic = ">=2.7.0" +python-dotenv = ">=0.21.0" + +[package.extras] +azure-key-vault = ["azure-identity (>=1.16.0)", "azure-keyvault-secrets (>=4.8.0)"] +toml = ["tomli (>=2.0.1)"] +yaml = ["pyyaml (>=6.0.1)"] + [[package]] name = "pytelegrambotapi" version = "4.25.0" @@ -399,6 +419,20 @@ redis = ["redis (>=3.4.1)"] uvicorn = ["uvicorn"] watchdog = ["watchdog"] +[[package]] +name = "python-dotenv" +version = "1.0.1" +description = "Read key-value pairs from a .env file and set them as environment variables" +optional = false +python-versions = ">=3.8" +files = [ + {file = "python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca"}, + {file = "python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a"}, +] + +[package.extras] +cli = ["click (>=5.0)"] + [[package]] name = "requests" version = "2.32.3" @@ -466,4 +500,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "3984100651b1d9887d340132b525ec3ba8c42e1b2e4c896c68996eb42e5394ee" +content-hash = "5e9ea2a491f82419af4630b120b04628f9be039cb90e6ef2d3f55471560b4ed0" diff --git a/pyproject.toml b/pyproject.toml index 7801f9e..79fcbfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,7 @@ telebot = "^0.0.5" pydantic = "^2.10.3" pillow = "^11.0.0" pytelegrambotapi = "^4.25.0" +pydantic-settings = "^2.7.0" [build-system]