{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://inquir.org/ru/python-serverless-functions#webpage","url":"https://inquir.org/ru/python-serverless-functions","name":"Python 3.12 serverless-функции для API, cron и ML-инструментов","headline":"Python 3.12 serverless-функции для API, cron и ML-инструментов","description":"Python 3.12 serverless-функции для REST API, cron, ML-инструментов и фоновых задач — в контейнерах с numpy, pandas, scikit-learn и тяжёлыми ML-библиотеками без ограничений edge.","inLanguage":"ru-RU","isPartOf":{"@id":"https://inquir.org/#website"},"author":{"@type":"Organization","name":"Inquir"},"datePublished":"2025-01-01T00:00:00.000Z","dateModified":"2026-04-20T00:00:00.000Z","citation":"https://inquir.org/docs"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Главная","item":"https://inquir.org"},{"@type":"ListItem","position":2,"name":"Python serverless-функции","item":"https://inquir.org/python-serverless-functions"}]},{"@type":"TechArticle","@id":"https://inquir.org/ru/python-serverless-functions#article","headline":"Python 3.12 serverless-функции для API, cron и ML-инструментов","description":"Python 3.12 serverless-функции для REST API, cron, ML-инструментов и фоновых задач — в контейнерах с numpy, pandas, scikit-learn и тяжёлыми ML-библиотеками без ограничений edge.","inLanguage":"ru-RU","author":{"@type":"Organization","name":"Inquir"},"datePublished":"2025-01-01T00:00:00.000Z","dateModified":"2026-04-20T00:00:00.000Z","isPartOf":{"@id":"https://inquir.org/ru/python-serverless-functions#webpage"}},{"@type":"FAQPage","@id":"https://inquir.org/ru/python-serverless-functions#faq","url":"https://inquir.org/ru/python-serverless-functions","isPartOf":{"@id":"https://inquir.org/ru/python-serverless-functions#webpage"},"mainEntity":[{"@type":"Question","name":"Совместимо с AWS Lambda Python?","acceptedAnswer":{"@type":"Answer","text":"Да. Та же сигнатура `handler(event, context)`. `event[\"body\"]` — строка; `json.loads()` для парсинга."}},{"@type":"Question","name":"Как добавить numpy?","acceptedAnswer":{"@type":"Answer","text":"Создать слой с numpy в requirements.txt, подключить к функции — доступен через `import numpy as np`."}},{"@type":"Question","name":"How do I access environment variables and secrets?","acceptedAnswer":{"@type":"Answer","text":"Bind secrets in the Inquir console; they are injected as environment variables at runtime. Access with os.environ[\"SECRET_NAME\"] — never hardcode credentials in your Python handler."}},{"@type":"Question","name":"Can Python functions call private databases?","acceptedAnswer":{"@type":"Answer","text":"Yes. Container-backed functions can connect to VPC databases, Redis clusters, and internal services that edge functions cannot reach."}}]}]}