commit 4b18035fd55cdd59db1a8f0607d9644e27c11047 Author: Kirill Date: Tue Aug 18 10:26:47 2026 +0300 first commit diff --git a/app.py b/app.py new file mode 100644 index 0000000..e69de29 diff --git a/dependencies.txt b/dependencies.txt new file mode 100644 index 0000000..8a0af37 --- /dev/null +++ b/dependencies.txt @@ -0,0 +1,7 @@ +flask==3.1.2 +python-dotenv +flask-cors==4.0.0 +psycopg-binary==3.2.10 +loguru +pydantic +gunicorn diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..fb94cc9 --- /dev/null +++ b/shell.nix @@ -0,0 +1,25 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + buildInputs = with pkgs; [ + python3 + ruff + pyright + ]; + + shellHook = '' + if [ ! -d ".venv" ]; then + python -m venv .venv + fi + + source .venv/bin/activate + + if [ -f "requirements-dev.txt" ]; then + pip install -r requirements-dev.txt + fi + + if [ -f "dependencies.txt" ]; then + pip install -r dependencies.txt + fi + ''; +}