diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba45027 --- /dev/null +++ b/.gitignore @@ -0,0 +1,219 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[codz] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py.cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +# Pipfile.lock + +# UV +# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# uv.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +# poetry.lock +# poetry.toml + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python. +# https://pdm-project.org/en/latest/usage/project/#working-with-version-control +# pdm.lock +# pdm.toml +.pdm-python +.pdm-build/ + +# pixi +# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control. +# pixi.lock +# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one +# in the .venv directory. It is recommended not to include this directory in version control. +.pixi + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# Redis +*.rdb +*.aof +*.pid + +# RabbitMQ +mnesia/ +rabbitmq/ +rabbitmq-data/ + +# ActiveMQ +activemq-data/ + +# SageMath parsed files +*.sage.py + +# Environments +.env +.envrc +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +# .idea/ + +# Abstra +# Abstra is an AI-powered process automation framework. +# Ignore directories containing user credentials, local state, and settings. +# Learn more at https://abstra.io/docs +.abstra/ + +# Visual Studio Code +# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore +# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore +# and can be added to the global gitignore or merged into this file. However, if you prefer, +# you could uncomment the following to ignore the entire vscode folder +# .vscode/ + +# Ruff stuff: +.ruff_cache/ + +# PyPI configuration file +.pypirc + +# Marimo +marimo/_static/ +marimo/_lsp/ +__marimo__/ + +# Streamlit +.streamlit/secrets.toml + +# SQL Lite +.db \ No newline at end of file diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..6324d40 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.14 diff --git a/app.py b/app.py new file mode 100644 index 0000000..e9d3a59 --- /dev/null +++ b/app.py @@ -0,0 +1,7 @@ +from app import create_app + +app = create_app() + + +if __name__ == "__main__": + app.run(debug=True) diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..309c875 --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,22 @@ +from flask import Flask + +from app.database import init_db +from app.orders.admin import admin_bp +from app.orders.shop import shop_bp +from app.orders.user import user_bp + + +def create_app() -> Flask: + app = Flask( + __name__, + template_folder="../templates", + static_folder="../static", + ) + app.secret_key = "super-secret-key" + + init_db() + app.register_blueprint(shop_bp) + app.register_blueprint(admin_bp) + app.register_blueprint(user_bp) + + return app diff --git a/app/auth.py b/app/auth.py new file mode 100644 index 0000000..275b4ae --- /dev/null +++ b/app/auth.py @@ -0,0 +1,26 @@ +from functools import wraps + +from flask import Response, request + +from app.services.user import verify_basic_admin + + +def _authenticate_response() -> Response: + return Response( + "Требуется авторизация", + 401, + {"WWW-Authenticate": 'Basic realm="Admin Login Required"'}, + ) + + +def requires_admin_basic_auth(view_func): + @wraps(view_func) + def wrapped(*args, **kwargs): + auth = request.authorization + if not auth: + return _authenticate_response() + if not verify_basic_admin(auth.username, auth.password): + return _authenticate_response() + return view_func(*args, **kwargs) + + return wrapped diff --git a/app/database.py b/app/database.py new file mode 100644 index 0000000..5fadb79 --- /dev/null +++ b/app/database.py @@ -0,0 +1,53 @@ +import sqlite3 + +from werkzeug.security import generate_password_hash + +DB_PATH = "food_delivery.db" + + +def get_db_connection() -> sqlite3.Connection: + conn = sqlite3.connect(DB_PATH) + conn.row_factory = sqlite3.Row + return conn + + +def init_db() -> None: + conn = get_db_connection() + conn.execute(""" + CREATE TABLE IF NOT EXISTS users ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + username TEXT UNIQUE NOT NULL, + password_hash TEXT NOT NULL, + role TEXT NOT NULL DEFAULT 'user', + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ) + """) + conn.execute(""" + CREATE TABLE IF NOT EXISTS orders ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + customer_name TEXT NOT NULL, + customer_phone TEXT NOT NULL, + customer_address TEXT NOT NULL, + customer_comment TEXT DEFAULT '', + order_items TEXT NOT NULL, + total_price INTEGER NOT NULL, + status TEXT DEFAULT 'Новый', + order_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ) + """) + columns = [row["name"] for row in conn.execute("PRAGMA table_info(orders)").fetchall()] + if "customer_comment" not in columns: + conn.execute("ALTER TABLE orders ADD COLUMN customer_comment TEXT DEFAULT ''") + + admin_user = conn.execute( + "SELECT id FROM users WHERE username = ?", + ("admin",), + ).fetchone() + if admin_user is None: + conn.execute( + "INSERT INTO users (username, password_hash, role) VALUES (?, ?, ?)", + ("admin", generate_password_hash("12345"), "admin"), + ) + + conn.commit() + conn.close() diff --git a/app/orders/__init__.py b/app/orders/__init__.py new file mode 100644 index 0000000..148b6b3 --- /dev/null +++ b/app/orders/__init__.py @@ -0,0 +1 @@ +# Orders and user routes package diff --git a/app/orders/admin.py b/app/orders/admin.py new file mode 100644 index 0000000..9d37bb1 --- /dev/null +++ b/app/orders/admin.py @@ -0,0 +1,35 @@ +import time + +from flask import Blueprint, Response, redirect, render_template, request + +from app.auth import requires_admin_basic_auth +from app.services.order import get_all_orders, update_order_status + +admin_bp = Blueprint("admin", __name__) + + +@admin_bp.route("/admin") +@requires_admin_basic_auth +def admin(): + orders = get_all_orders() + return render_template("admin.html", orders=orders) + + +@admin_bp.route("/update_status/", methods=["POST"]) +@requires_admin_basic_auth +def update_status(order_id: int): + status = request.form.get("status", "Новый") + update_order_status(order_id, status) + return redirect("/admin") + + +@admin_bp.route("/logout", methods=["POST"]) +def logout(): + response = Response( + 'Вы вышли из админ-панели. Войти снова', + 401, + {"WWW-Authenticate": f'Basic realm="Admin Logout {int(time.time())}"'}, + ) + response.headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0" + response.headers["Pragma"] = "no-cache" + return response diff --git a/app/orders/shop.py b/app/orders/shop.py new file mode 100644 index 0000000..b993150 --- /dev/null +++ b/app/orders/shop.py @@ -0,0 +1,165 @@ +from flask import Blueprint, redirect, render_template, request, session + +from app.services.order import create_order + +shop_bp = Blueprint("shop", __name__) + +MENU = [ + { + "id": 1, + "name": "Пепперони", + "price": 450, + "category": "Пицца", + }, + { + "id": 2, + "name": "Маргарита", + "price": 350, + "category": "Пицца", + }, + { + "id": 3, + "name": "Цезарь", + "price": 320, + "category": "Салаты", + }, + { + "id": 4, + "name": "Греческий", + "price": 280, + "category": "Салаты", + }, + { + "id": 5, + "name": "Кола 0.5", + "price": 100, + "category": "Напитки", + }, + { + "id": 6, + "name": "Сок апельсиновый", + "price": 150, + "category": "Напитки", + }, + { + "id": 7, + "name": "Сок яблочный", + "price": 150, + "category": "Напитки", + }, + { + "id": 8, + "name": "Сок ягодный", + "price": 150, + "category": "Напитки", + }, + { + "id": 9, + "name": "Сок цитрусовый", + "price": 150, + "category": "Напитки", + }, +] + + +def _get_item(item_id: int): + return next((item for item in MENU if item["id"] == item_id), None) + + +def _collect_cart(): + items = [] + item_names = [] + total = 0 + for item_id in session.get("cart", []): + item = _get_item(item_id) + if item: + items.append(item) + item_names.append(item["name"]) + total += item["price"] + return items, item_names, total + + +@shop_bp.route("/") +def index(): + return render_template("index.html", menu=MENU) + + +@shop_bp.route("/add_to_cart/", methods=["POST"]) +def add_to_cart(item_id: int): + if "cart" not in session: + session["cart"] = [] + session["cart"].append(item_id) + return redirect("/") + + +@shop_bp.route("/remove_from_cart/", methods=["POST"]) +def remove_from_cart(item_id: int): + if "cart" in session and item_id in session["cart"]: + session["cart"].remove(item_id) + return redirect("/cart") + + +@shop_bp.route("/cart") +def cart(): + cart_items, _, total = _collect_cart() + return render_template("cart.html", items=cart_items, total=total) + + +@shop_bp.route("/order") +def order(): + _, _, total = _collect_cart() + return render_template( + "order.html", + cart_total=total, + form_data={"name": "", "phone": "", "address": "", "comment": ""}, + ) + + +@shop_bp.route("/place_order", methods=["POST"]) +def place_order(): + name = request.form.get("name", "").strip() + phone = request.form.get("phone", "").strip() + address = request.form.get("address", "").strip() + comment = request.form.get("comment", "").strip() + _, cart_item_names, total = _collect_cart() + + if not cart_item_names: + return render_template( + "order.html", + error="Корзина пуста. Добавьте товары перед оформлением.", + cart_total=total, + form_data={ + "name": name, + "phone": phone, + "address": address, + "comment": comment, + }, + ), 400 + + if not name or not phone or not address: + return render_template( + "order.html", + error="Заполните имя, телефон и адрес.", + cart_total=total, + form_data={ + "name": name, + "phone": phone, + "address": address, + "comment": comment, + }, + ), 400 + + create_order( + customer_name=name, + customer_phone=phone, + customer_address=address, + customer_comment=comment, + order_items=", ".join(cart_item_names), + total_price=total, + ) + session.pop("cart", None) + return render_template( + "order_success.html", + customer_name=name, + total=total, + ) diff --git a/app/orders/user.py b/app/orders/user.py new file mode 100644 index 0000000..9fcb255 --- /dev/null +++ b/app/orders/user.py @@ -0,0 +1,30 @@ +from flask import Blueprint, redirect, render_template, request, url_for + +from app.services.user import create_user + +user_bp = Blueprint("user", __name__) + + +@user_bp.route("/register", methods=["GET", "POST"]) +def register(): + error = None + success = None + if request.method == "POST": + username = request.form.get("username", "").strip() + password = request.form.get("password", "").strip() + + if not username or not password: + error = "Введите логин и пароль." + elif len(password) < 4: + error = "Пароль должен быть не короче 4 символов." + elif create_user(username=username, password=password): + success = "Регистрация успешна. Теперь можно оформлять заказы." + else: + error = "Пользователь с таким логином уже существует." + + return render_template("register.html", error=error, success=success) + + +@user_bp.route("/register/success") +def register_success(): + return redirect(url_for("user.register")) diff --git a/app/services/__init__.py b/app/services/__init__.py new file mode 100644 index 0000000..a70b302 --- /dev/null +++ b/app/services/__init__.py @@ -0,0 +1 @@ +# Services package diff --git a/app/services/order.py b/app/services/order.py new file mode 100644 index 0000000..650aae1 --- /dev/null +++ b/app/services/order.py @@ -0,0 +1,48 @@ +from app.database import get_db_connection + + +def create_order( + customer_name: str, + customer_phone: str, + customer_address: str, + customer_comment: str, + order_items: str, + total_price: int, +) -> None: + conn = get_db_connection() + conn.execute( + """ + INSERT INTO orders ( + customer_name, + customer_phone, + customer_address, + customer_comment, + order_items, + total_price + ) VALUES (?, ?, ?, ?, ?, ?) + """, + ( + customer_name, + customer_phone, + customer_address, + customer_comment, + order_items, + total_price, + ), + ) + conn.commit() + conn.close() + + +def get_all_orders(): + conn = get_db_connection() + orders = conn.execute("SELECT * FROM orders ORDER BY order_date DESC").fetchall() + conn.close() + return orders + + +def update_order_status(order_id: int, status: str) -> None: + conn = get_db_connection() + conn.execute("UPDATE orders SET status = ? WHERE id = ?", (status, order_id)) + conn.commit() + conn.close() diff --git a/app/services/user.py b/app/services/user.py new file mode 100644 index 0000000..05e4742 --- /dev/null +++ b/app/services/user.py @@ -0,0 +1,34 @@ +from werkzeug.security import check_password_hash, generate_password_hash + +from app.database import get_db_connection + + +def create_user(username: str, password: str, role: str = "user") -> bool: + conn = get_db_connection() + existing = conn.execute( + "SELECT id FROM users WHERE username = ?", + (username,), + ).fetchone() + if existing is not None: + conn.close() + return False + + conn.execute( + "INSERT INTO users (username, password_hash, role) VALUES (?, ?, ?)", + (username, generate_password_hash(password), role), + ) + conn.commit() + conn.close() + return True + + +def verify_basic_admin(username: str, password: str) -> bool: + conn = get_db_connection() + user = conn.execute( + "SELECT password_hash, role FROM users WHERE username = ?", + (username,), + ).fetchone() + conn.close() + if user is None: + return False + return user["role"] == "admin" and check_password_hash(user["password_hash"], password) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a9681aa --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "grob" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.14" +dependencies = [ + "flask>=3.1.3", +] + +[dependency-groups] +dev = [ + "ruff>=0.15.8", + "types-flask>=1.1.6", +] diff --git a/static/css/styles.css b/static/css/styles.css new file mode 100644 index 0000000..0c2bbc8 --- /dev/null +++ b/static/css/styles.css @@ -0,0 +1,267 @@ +:root { + --bg: #f8f4ec; + --surface: #fffdf7; + --ink: #212121; + --muted: #626262; + --accent: #ea580c; + --accent-2: #fb923c; + --line: #f0dfc9; + --shadow: 0 14px 36px rgba(112, 71, 29, 0.14); +} + +* { + box-sizing: border-box; +} + +body { + margin: 0; + font-family: "Manrope", "Trebuchet MS", sans-serif; + color: var(--ink); + background: + radial-gradient(circle at 80% 5%, #ffe2bf 0, #f8f4ec 38%), + radial-gradient(circle at 15% 20%, #fff6e7 0, #f8f4ec 35%); + min-height: 100vh; +} + +.layout { + width: min(1100px, 94%); + margin: 0 auto; + padding: 22px 0 34px; +} + +.nav { + background: rgba(255, 253, 247, 0.9); + border: 1px solid var(--line); + border-radius: 18px; + padding: 14px 18px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 14px; + box-shadow: var(--shadow); + backdrop-filter: blur(4px); +} + +.brand { + margin: 0; + font-family: "Unbounded", sans-serif; + font-size: 20px; +} + +.nav-links { + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.nav a { + color: var(--ink); + text-decoration: none; + font-weight: 700; + padding: 8px 12px; + border-radius: 999px; + border: 1px solid transparent; + transition: all 0.2s ease; +} + +.nav a:hover { + border-color: var(--line); + background: #fff2de; + color: var(--accent); +} + +.content { + margin-top: 18px; + background: var(--surface); + border: 1px solid var(--line); + border-radius: 22px; + padding: 20px; + box-shadow: var(--shadow); +} + +h1 { + margin: 6px 0 16px; + font-family: "Unbounded", sans-serif; + font-size: clamp(22px, 4vw, 34px); +} + +h2, +h3 { + margin: 0 0 8px; +} + +.title-reset { + margin: 0; +} + +.subtitle { + color: var(--muted); + margin: -6px 0 18px; +} + +.btn { + display: inline-block; + border: none; + background: linear-gradient(135deg, var(--accent), var(--accent-2)); + color: #fff; + text-decoration: none; + padding: 10px 14px; + border-radius: 12px; + font-weight: 800; + cursor: pointer; + transition: transform 0.2s ease, box-shadow 0.2s ease; + box-shadow: 0 10px 20px rgba(234, 88, 12, 0.25); +} + +.btn:hover { + transform: translateY(-1px); +} + +.btn-ghost { + background: #fff; + color: var(--ink); + border: 1px solid var(--line); + box-shadow: none; +} + +input, +textarea, +select { + width: 100%; + padding: 10px 12px; + border: 1px solid var(--line); + border-radius: 10px; + font: inherit; + margin: 0 0 10px; + background: #fff; +} + +textarea { + min-height: 88px; + resize: vertical; +} + +table { + width: 100%; + border-collapse: collapse; +} + +th, +td { + border-bottom: 1px solid var(--line); + text-align: left; + vertical-align: top; + padding: 10px 8px; +} + +th { + font-size: 13px; + text-transform: uppercase; + letter-spacing: 0.04em; + color: var(--muted); +} + +.grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 16px; +} + +.card { + border: 1px solid var(--line); + border-radius: 16px; + padding: 14px; + background: linear-gradient(180deg, #fffefb, #fff7ec); +} + +.card-image { + width: 100%; + height: 160px; + object-fit: cover; + border-radius: 12px; + border: 1px solid var(--line); + margin-bottom: 12px; + background: #fff; +} + +.meta { + color: var(--muted); + font-size: 14px; + margin-bottom: 12px; +} + +.list { + display: grid; + gap: 12px; + padding: 0; + margin: 0 0 14px; + list-style: none; +} + +.list li { + display: flex; + gap: 12px; + justify-content: space-between; + border: 1px solid var(--line); + border-radius: 12px; + padding: 12px; + background: #fff; +} + +.toolbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + flex-wrap: wrap; + margin-bottom: 12px; +} + +.status-form { + display: flex; + gap: 8px; + align-items: center; +} + +.message { + font-weight: 700; +} + +.message-error { + color: #b42318; +} + +.message-success { + color: #067647; +} + +@media (max-width: 900px) { + .grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (max-width: 640px) { + .layout { + width: min(96%, 960px); + padding: 14px 0 24px; + } + + .content { + padding: 14px; + } + + .grid { + grid-template-columns: 1fr; + } + + .list li { + flex-direction: column; + align-items: flex-start; + } + + .status-form { + flex-direction: column; + align-items: stretch; + } +} diff --git a/static/js/app.js b/static/js/app.js new file mode 100644 index 0000000..4f8c451 --- /dev/null +++ b/static/js/app.js @@ -0,0 +1,19 @@ +document.addEventListener("DOMContentLoaded", () => { + const forms = document.querySelectorAll("form"); + forms.forEach((form) => { + form.addEventListener("submit", () => { + const submitButton = form.querySelector('button[type="submit"]'); + if (!submitButton) { + return; + } + submitButton.disabled = true; + const originalText = submitButton.textContent || ""; + submitButton.dataset.originalText = originalText; + submitButton.textContent = "Отправка..."; + setTimeout(() => { + submitButton.disabled = false; + submitButton.textContent = submitButton.dataset.originalText || originalText; + }, 2000); + }); + }); +}); diff --git a/static/placeholder.png b/static/placeholder.png new file mode 100644 index 0000000..6ae306d Binary files /dev/null and b/static/placeholder.png differ diff --git a/templates/admin.html b/templates/admin.html new file mode 100644 index 0000000..b4843c7 --- /dev/null +++ b/templates/admin.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} +{% block content %} +
+

Панель администратора

+
+ +
+
+ + + + + + + + + + + + + {% for order in orders %} + + + + + + + + + + + + {% endfor %} +
IDКлиентТелефонАдресКомментарийЗаказСуммаСтатусДействие
{{ order.id }}{{ order.customer_name }}{{ order.customer_phone }}{{ order.customer_address }}{{ order.customer_comment }}{{ order.order_items }}{{ order.total_price }} ₽{{ order.status }}
+{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..54ee282 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,29 @@ + + + + + + Доставка еды + + + + + + + +
+ +
+ {% block content %}{% endblock %} +
+
+ + diff --git a/templates/cart.html b/templates/cart.html new file mode 100644 index 0000000..2dad3e2 --- /dev/null +++ b/templates/cart.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% block content %} +

Корзина

+

Проверьте состав заказа перед оформлением.

+{% if not items %} +

Корзина пока пустая.

+{% endif %} +
    + {% for item in items %} +
  • + {{ item.name }} · {{ item.price }} ₽ +
    + +
    +
  • + {% endfor %} +
+
+

Итого: {{ total }} ₽

+ Оформить заказ +
+{% endblock %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..43b88fa --- /dev/null +++ b/templates/index.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block content %} +

Меню

+

Выберите блюда и добавьте в корзину за один клик.

+
+ {% for item in menu %} +
+ {{ item.name }} +

{{ item.name }}

+

{{ item.category }} · {{ item.price }} ₽

+
+ +
+
+ {% endfor %} +
+{% endblock %} diff --git a/templates/order.html b/templates/order.html new file mode 100644 index 0000000..507b58d --- /dev/null +++ b/templates/order.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block content %} +

Оформление заказа

+

Заполните контактные данные, и мы быстро свяжемся с вами.

+{% if error %} +

{{ error }}

+{% endif %} +{% if cart_total is defined %} +

Сумма заказа: {{ cart_total }} ₽

+{% endif %} +
+ + + + + +
+{% endblock %} diff --git a/templates/order_success.html b/templates/order_success.html new file mode 100644 index 0000000..534ef50 --- /dev/null +++ b/templates/order_success.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block content %} +

Заказ оформлен

+

Спасибо, {{ customer_name }}! Мы приняли заказ.

+

Итоговая сумма: {{ total }} ₽

+ +{% endblock %} diff --git a/templates/register.html b/templates/register.html new file mode 100644 index 0000000..a347dc3 --- /dev/null +++ b/templates/register.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block content %} +

Регистрация

+

Создайте учетную запись пользователя для оформления заказов.

+ +{% if error %} +

{{ error }}

+{% endif %} +{% if success %} +

{{ success }}

+{% endif %} + +
+ + + +
+{% endblock %} diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..1806995 --- /dev/null +++ b/uv.lock @@ -0,0 +1,214 @@ +version = 1 +revision = 3 +requires-python = ">=3.14" + +[[package]] +name = "blinker" +version = "1.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/21/28/9b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce/blinker-1.9.0.tar.gz", hash = "sha256:b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf", size = 22460, upload-time = "2024-11-08T17:25:47.436Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/10/cb/f2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c/blinker-1.9.0-py3-none-any.whl", hash = "sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc", size = 8458, upload-time = "2024-11-08T17:25:46.184Z" }, +] + +[[package]] +name = "click" +version = "8.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "flask" +version = "3.1.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "blinker" }, + { name = "click" }, + { name = "itsdangerous" }, + { name = "jinja2" }, + { name = "markupsafe" }, + { name = "werkzeug" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/26/00/35d85dcce6c57fdc871f3867d465d780f302a175ea360f62533f12b27e2b/flask-3.1.3.tar.gz", hash = "sha256:0ef0e52b8a9cd932855379197dd8f94047b359ca0a78695144304cb45f87c9eb", size = 759004, upload-time = "2026-02-19T05:00:57.678Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7f/9c/34f6962f9b9e9c71f6e5ed806e0d0ff03c9d1b0b2340088a0cf4bce09b18/flask-3.1.3-py3-none-any.whl", hash = "sha256:f4bcbefc124291925f1a26446da31a5178f9483862233b23c0c96a20701f670c", size = 103424, upload-time = "2026-02-19T05:00:56.027Z" }, +] + +[[package]] +name = "grob" +version = "0.1.0" +source = { virtual = "." } +dependencies = [ + { name = "flask" }, +] + +[package.dev-dependencies] +dev = [ + { name = "ruff" }, + { name = "types-flask" }, +] + +[package.metadata] +requires-dist = [{ name = "flask", specifier = ">=3.1.3" }] + +[package.metadata.requires-dev] +dev = [ + { name = "ruff", specifier = ">=0.15.8" }, + { name = "types-flask", specifier = ">=1.1.6" }, +] + +[[package]] +name = "itsdangerous" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9c/cb/8ac0172223afbccb63986cc25049b154ecfb5e85932587206f42317be31d/itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173", size = 54410, upload-time = "2024-04-16T21:28:15.614Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/96/92447566d16df59b2a776c0fb82dbc4d9e07cd95062562af01e408583fc4/itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef", size = 16234, upload-time = "2024-04-16T21:28:14.499Z" }, +] + +[[package]] +name = "jinja2" +version = "3.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115, upload-time = "2025-03-05T20:05:02.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" }, +] + +[[package]] +name = "markupsafe" +version = "3.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313, upload-time = "2025-09-27T18:37:40.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619, upload-time = "2025-09-27T18:37:06.342Z" }, + { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029, upload-time = "2025-09-27T18:37:07.213Z" }, + { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408, upload-time = "2025-09-27T18:37:09.572Z" }, + { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005, upload-time = "2025-09-27T18:37:10.58Z" }, + { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048, upload-time = "2025-09-27T18:37:11.547Z" }, + { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821, upload-time = "2025-09-27T18:37:12.48Z" }, + { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606, upload-time = "2025-09-27T18:37:13.485Z" }, + { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043, upload-time = "2025-09-27T18:37:14.408Z" }, + { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747, upload-time = "2025-09-27T18:37:15.36Z" }, + { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341, upload-time = "2025-09-27T18:37:16.496Z" }, + { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073, upload-time = "2025-09-27T18:37:17.476Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661, upload-time = "2025-09-27T18:37:18.453Z" }, + { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069, upload-time = "2025-09-27T18:37:19.332Z" }, + { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670, upload-time = "2025-09-27T18:37:20.245Z" }, + { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598, upload-time = "2025-09-27T18:37:21.177Z" }, + { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261, upload-time = "2025-09-27T18:37:22.167Z" }, + { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835, upload-time = "2025-09-27T18:37:23.296Z" }, + { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733, upload-time = "2025-09-27T18:37:24.237Z" }, + { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672, upload-time = "2025-09-27T18:37:25.271Z" }, + { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819, upload-time = "2025-09-27T18:37:26.285Z" }, + { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426, upload-time = "2025-09-27T18:37:27.316Z" }, + { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" }, +] + +[[package]] +name = "ruff" +version = "0.15.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/14/b0/73cf7550861e2b4824950b8b52eebdcc5adc792a00c514406556c5b80817/ruff-0.15.8.tar.gz", hash = "sha256:995f11f63597ee362130d1d5a327a87cb6f3f5eae3094c620bcc632329a4d26e", size = 4610921, upload-time = "2026-03-26T18:39:38.675Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4a/92/c445b0cd6da6e7ae51e954939cb69f97e008dbe750cfca89b8cedc081be7/ruff-0.15.8-py3-none-linux_armv6l.whl", hash = "sha256:cbe05adeba76d58162762d6b239c9056f1a15a55bd4b346cfd21e26cd6ad7bc7", size = 10527394, upload-time = "2026-03-26T18:39:41.566Z" }, + { url = "https://files.pythonhosted.org/packages/eb/92/f1c662784d149ad1414cae450b082cf736430c12ca78367f20f5ed569d65/ruff-0.15.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d3e3d0b6ba8dca1b7ef9ab80a28e840a20070c4b62e56d675c24f366ef330570", size = 10905693, upload-time = "2026-03-26T18:39:30.364Z" }, + { url = "https://files.pythonhosted.org/packages/ca/f2/7a631a8af6d88bcef997eb1bf87cc3da158294c57044aafd3e17030613de/ruff-0.15.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6ee3ae5c65a42f273f126686353f2e08ff29927b7b7e203b711514370d500de3", size = 10323044, upload-time = "2026-03-26T18:39:33.37Z" }, + { url = "https://files.pythonhosted.org/packages/67/18/1bf38e20914a05e72ef3b9569b1d5c70a7ef26cd188d69e9ca8ef588d5bf/ruff-0.15.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fdce027ada77baa448077ccc6ebb2fa9c3c62fd110d8659d601cf2f475858d94", size = 10629135, upload-time = "2026-03-26T18:39:44.142Z" }, + { url = "https://files.pythonhosted.org/packages/d2/e9/138c150ff9af60556121623d41aba18b7b57d95ac032e177b6a53789d279/ruff-0.15.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:12e617fc01a95e5821648a6df341d80456bd627bfab8a829f7cfc26a14a4b4a3", size = 10348041, upload-time = "2026-03-26T18:39:52.178Z" }, + { url = "https://files.pythonhosted.org/packages/02/f1/5bfb9298d9c323f842c5ddeb85f1f10ef51516ac7a34ba446c9347d898df/ruff-0.15.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:432701303b26416d22ba696c39f2c6f12499b89093b61360abc34bcc9bf07762", size = 11121987, upload-time = "2026-03-26T18:39:55.195Z" }, + { url = "https://files.pythonhosted.org/packages/10/11/6da2e538704e753c04e8d86b1fc55712fdbdcc266af1a1ece7a51fff0d10/ruff-0.15.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d910ae974b7a06a33a057cb87d2a10792a3b2b3b35e33d2699fdf63ec8f6b17a", size = 11951057, upload-time = "2026-03-26T18:39:19.18Z" }, + { url = "https://files.pythonhosted.org/packages/83/f0/c9208c5fd5101bf87002fed774ff25a96eea313d305f1e5d5744698dc314/ruff-0.15.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2033f963c43949d51e6fdccd3946633c6b37c484f5f98c3035f49c27395a8ab8", size = 11464613, upload-time = "2026-03-26T18:40:06.301Z" }, + { url = "https://files.pythonhosted.org/packages/f8/22/d7f2fabdba4fae9f3b570e5605d5eb4500dcb7b770d3217dca4428484b17/ruff-0.15.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f29b989a55572fb885b77464cf24af05500806ab4edf9a0fd8977f9759d85b1", size = 11257557, upload-time = "2026-03-26T18:39:57.972Z" }, + { url = "https://files.pythonhosted.org/packages/71/8c/382a9620038cf6906446b23ce8632ab8c0811b8f9d3e764f58bedd0c9a6f/ruff-0.15.8-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:ac51d486bf457cdc985a412fb1801b2dfd1bd8838372fc55de64b1510eff4bec", size = 11169440, upload-time = "2026-03-26T18:39:22.205Z" }, + { url = "https://files.pythonhosted.org/packages/4d/0d/0994c802a7eaaf99380085e4e40c845f8e32a562e20a38ec06174b52ef24/ruff-0.15.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c9861eb959edab053c10ad62c278835ee69ca527b6dcd72b47d5c1e5648964f6", size = 10605963, upload-time = "2026-03-26T18:39:46.682Z" }, + { url = "https://files.pythonhosted.org/packages/19/aa/d624b86f5b0aad7cef6bbf9cd47a6a02dfdc4f72c92a337d724e39c9d14b/ruff-0.15.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8d9a5b8ea13f26ae90838afc33f91b547e61b794865374f114f349e9036835fb", size = 10357484, upload-time = "2026-03-26T18:39:49.176Z" }, + { url = "https://files.pythonhosted.org/packages/35/c3/e0b7835d23001f7d999f3895c6b569927c4d39912286897f625736e1fd04/ruff-0.15.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:c2a33a529fb3cbc23a7124b5c6ff121e4d6228029cba374777bd7649cc8598b8", size = 10830426, upload-time = "2026-03-26T18:40:03.702Z" }, + { url = "https://files.pythonhosted.org/packages/f0/51/ab20b322f637b369383adc341d761eaaa0f0203d6b9a7421cd6e783d81b9/ruff-0.15.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:75e5cd06b1cf3f47a3996cfc999226b19aa92e7cce682dcd62f80d7035f98f49", size = 11345125, upload-time = "2026-03-26T18:39:27.799Z" }, + { url = "https://files.pythonhosted.org/packages/37/e6/90b2b33419f59d0f2c4c8a48a4b74b460709a557e8e0064cf33ad894f983/ruff-0.15.8-py3-none-win32.whl", hash = "sha256:bc1f0a51254ba21767bfa9a8b5013ca8149dcf38092e6a9eb704d876de94dc34", size = 10571959, upload-time = "2026-03-26T18:39:36.117Z" }, + { url = "https://files.pythonhosted.org/packages/1f/a2/ef467cb77099062317154c63f234b8a7baf7cb690b99af760c5b68b9ee7f/ruff-0.15.8-py3-none-win_amd64.whl", hash = "sha256:04f79eff02a72db209d47d665ba7ebcad609d8918a134f86cb13dd132159fc89", size = 11743893, upload-time = "2026-03-26T18:39:25.01Z" }, + { url = "https://files.pythonhosted.org/packages/15/e2/77be4fff062fa78d9b2a4dea85d14785dac5f1d0c1fb58ed52331f0ebe28/ruff-0.15.8-py3-none-win_arm64.whl", hash = "sha256:cf891fa8e3bb430c0e7fac93851a5978fc99c8fa2c053b57b118972866f8e5f2", size = 11048175, upload-time = "2026-03-26T18:40:01.06Z" }, +] + +[[package]] +name = "types-click" +version = "7.1.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/00/ff/0e6a56108d45c80c61cdd4743312d0304d8192482aea4cce96c554aaa90d/types-click-7.1.8.tar.gz", hash = "sha256:b6604968be6401dc516311ca50708a0a28baa7a0cb840efd7412f0dbbff4e092", size = 10015, upload-time = "2021-11-23T12:28:01.701Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ee/ad/607454a5f991c5b3e14693a7113926758f889138371058a5f72f567fa131/types_click-7.1.8-py3-none-any.whl", hash = "sha256:8cb030a669e2e927461be9827375f83c16b8178c365852c060a34e24871e7e81", size = 12929, upload-time = "2021-11-23T12:27:59.493Z" }, +] + +[[package]] +name = "types-flask" +version = "1.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "types-click" }, + { name = "types-jinja2" }, + { name = "types-werkzeug" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/79/65/728a104973133a45fba50f3d1e1ee832287666ac74cfd47004cea8402ea3/types-Flask-1.1.6.tar.gz", hash = "sha256:aac777b3abfff9436e6b01f6d08171cf23ea6e5be71cbf773aaabb1c5763e9cf", size = 9829, upload-time = "2021-11-26T06:21:31.199Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/60/6c/a98a0c29c39d8a6283ac704f3d36f0d570d8dee931e9d46d6cc60d436bec/types_Flask-1.1.6-py3-none-any.whl", hash = "sha256:6ab8a9a5e258b76539d652f6341408867298550b19b81f0e41e916825fc39087", size = 13733, upload-time = "2021-11-26T06:21:30.365Z" }, +] + +[[package]] +name = "types-jinja2" +version = "2.11.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "types-markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/46/c4/b82309bfed8195de7997672deac301bd6f5bd5cbb6a3e392b7fe780d7852/types-Jinja2-2.11.9.tar.gz", hash = "sha256:dbdc74a40aba7aed520b7e4d89e8f0fe4286518494208b35123bcf084d4b8c81", size = 13302, upload-time = "2021-11-26T06:21:17.496Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/b0/e79d84748f1d34304f13191424348a719c3febaa3493835370fe9528e1e6/types_Jinja2-2.11.9-py3-none-any.whl", hash = "sha256:60a1e21e8296979db32f9374d8a239af4cb541ff66447bb915d8ad398f9c63b2", size = 18190, upload-time = "2021-11-26T06:21:16.18Z" }, +] + +[[package]] +name = "types-markupsafe" +version = "1.1.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/39/31/b5f059142d058aec41e913d8e0eff0a967e7bc46f9a2ba2f31bc11cff059/types-MarkupSafe-1.1.10.tar.gz", hash = "sha256:85b3a872683d02aea3a5ac2a8ef590193c344092032f58457287fbf8e06711b1", size = 2986, upload-time = "2021-11-27T03:18:07.558Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/d6/b8effb1c48539260a5eb4196afc55efac4ea1684a4991977555eb266b2ef/types_MarkupSafe-1.1.10-py3-none-any.whl", hash = "sha256:ca2bee0f4faafc45250602567ef38d533e877d2ddca13003b319c551ff5b3cc5", size = 3998, upload-time = "2021-11-27T03:18:06.398Z" }, +] + +[[package]] +name = "types-werkzeug" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/eb/43/161261d2ac1fc20e944aa108e48a98ff0d994e19b498d6fb19d6637caf05/types-Werkzeug-1.0.9.tar.gz", hash = "sha256:5cc269604c400133d452a40cee6397655f878fc460e03fde291b9e3a5eaa518c", size = 23909, upload-time = "2021-11-26T06:21:28.33Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4a/c1/eaf8426126eafa46d649afb2fddede327043fbc2e84021b8b09a7fa15115/types_Werkzeug-1.0.9-py3-none-any.whl", hash = "sha256:194bd5715a13c598f05c63e8a739328657590943bce941e8a3619a6b5d4a54ec", size = 36186, upload-time = "2021-11-26T06:21:27.37Z" }, +] + +[[package]] +name = "werkzeug" +version = "3.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/61/f1/ee81806690a87dab5f5653c1f146c92bc066d7f4cebc603ef88eb9e13957/werkzeug-3.1.6.tar.gz", hash = "sha256:210c6bede5a420a913956b4791a7f4d6843a43b6fcee4dfa08a65e93007d0d25", size = 864736, upload-time = "2026-02-19T15:17:18.884Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/ec/d58832f89ede95652fd01f4f24236af7d32b70cab2196dfcc2d2fd13c5c2/werkzeug-3.1.6-py3-none-any.whl", hash = "sha256:7ddf3357bb9564e407607f988f683d72038551200c704012bb9a4c523d42f131", size = 225166, upload-time = "2026-02-19T15:17:17.475Z" }, +]