InventoryManager/src/README.md
2026-05-07 23:26:59 +03:00

21 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Управление складскими запасами интернет-магазина
## Реализованные 10 функций
| Функция | Описание | Возвращает |
|---------|----------|------------|
| load_products(filepath) | Загружает товары из CSV | list[dict] |
| validate_product(product) | Проверяет корректность данных | bool |
| filter_by_category(products, category) | Фильтрует по категории | list[dict] |
| filter_by_quantity(products, min_quantity) | Фильтрует по остатку (≥) | list[dict] |
| calculate_total_value(products) | Общая стоимость склада | float |
| find_low_stock(products, threshold) | Товары с остатком ≤ порога | list[dict] |
| group_by_supplier(products) | Группировка по поставщикам | dict |
| get_most_expensive_product(products) | Самый дорогой товар | dict или None |
| search_by_name(products, keyword) | Поиск по ключевому слову | list[dict] |
| save_inventory_report(products, filepath) | Сохраняет отчёт | bool |
## Запуск
```bash
python src/main.py