From bfaf9a37dbdf12ef2d1f1bb52790f9678f4356df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitor=20Hugo=20Belorio=20Sim=C3=A3o?= Date: Thu, 19 Feb 2026 11:32:23 -0300 Subject: [PATCH] =?UTF-8?q?:sparkles:=20feat:=20Criando=20a=20classe=20res?= =?UTF-8?q?pons=C3=A1vel=20por=20setar=20as=20var=C3=A1veis=20de=20aceso?= =?UTF-8?q?=20ao=20Google=20Cloud.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 ++ app/core/settings.py | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .env.example create mode 100644 app/core/settings.py diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..07152bf --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +GOOGLE_PROJECT_ID=seu-projeto-id +GOOGLE_LOCATION=us-central1 diff --git a/app/core/settings.py b/app/core/settings.py new file mode 100644 index 0000000..71448a5 --- /dev/null +++ b/app/core/settings.py @@ -0,0 +1,12 @@ +from pydantic_settings import BaseSettings + + +class Settings(BaseSettings): + google_project_id: str + google_location: str = "us-central1" + + class Config: + env_file = ".env" + + +settings = Settings()