From a8272f71c2477ef25e8b3ba3a895e6d915e1f6fd Mon Sep 17 00:00:00 2001 From: proDream Date: Fri, 10 Jan 2025 05:07:08 +0400 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B8=20=D0=B8=20=D1=81=D0=BA=D1=80=D0=B8?= =?UTF-8?q?=D0=BF=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=83=D1=81=D0=BA=D0=B0=20=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Обновлена секция `dependencies` в pyproject.toml: добавлены sqlalchemy, asyncpg и pydantic-settings. - Добавлены переменные окружения в .env.example для настройки базы данных. - Создан файл .gitignore для исключения IDE и файла с токенами. - Обновлена секция [project.scripts] в pyproject.toml: добавлен скрипт app для запуска приложения. --- .env.example | 6 ++++++ .gitignore | 2 ++ pyproject.toml | 11 ++++++++--- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .env.example create mode 100644 .gitignore diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..25799a5 --- /dev/null +++ b/.env.example @@ -0,0 +1,6 @@ +DB_NAME=db_name +DB_USER=db_user +DB_PASSWORD=db_password +DB_HOST=localhost +DB_PORT=5432 +DB_ECHO=True diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de03f38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +.env diff --git a/pyproject.toml b/pyproject.toml index 7ca463b..0946a8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,17 +3,22 @@ name = "lkeep" version = "0.1.0" description = "" authors = [ - {name = "proDream",email = "sushkoos@gmail.com"} + { name = "proDream", email = "sushkoos@gmail.com" } ] readme = "README.md" requires-python = ">=3.12" dependencies = [ "fastapi[standard] (>=0.115.6,<0.116.0)", "uvicorn[standard] (>=0.34.0,<0.35.0)", - "pre-commit (>=4.0.1,<5.0.0)" + "pre-commit (>=4.0.1,<5.0.0)", + "sqlalchemy (>=2.0.37,<3.0.0)", + "asyncpg (>=0.30.0,<0.31.0)", + "pydantic-settings (>=2.7.1,<3.0.0)" ] - [build-system] requires = ["poetry-core>=2.0.0,<3.0.0"] build-backend = "poetry.core.masonry.api" + +[project.scripts] +app = "lkeep.main:start"