{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://inquir.org/python-serverless-functions#webpage","url":"https://inquir.org/python-serverless-functions","name":"Python 3.12 serverless functions for APIs, cron jobs, and ML tools","headline":"Python 3.12 serverless functions for APIs, cron jobs, and ML tools","description":"Deploy Python 3.12 serverless functions for REST APIs, cron jobs, ML inference tools, and background jobs—container-backed with numpy, pandas, scikit-learn, and heavyweight ML libraries without edge isolate restrictions.","inLanguage":"en-US","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":"Home","item":"https://inquir.org"},{"@type":"ListItem","position":2,"name":"Python serverless functions","item":"https://inquir.org/python-serverless-functions"}]},{"@type":"TechArticle","@id":"https://inquir.org/python-serverless-functions#article","headline":"Python 3.12 serverless functions for APIs, cron jobs, and ML tools","description":"Deploy Python 3.12 serverless functions for REST APIs, cron jobs, ML inference tools, and background jobs—container-backed with numpy, pandas, scikit-learn, and heavyweight ML libraries without edge isolate restrictions.","inLanguage":"en-US","author":{"@type":"Organization","name":"Inquir"},"datePublished":"2025-01-01T00:00:00.000Z","dateModified":"2026-04-20T00:00:00.000Z","isPartOf":{"@id":"https://inquir.org/python-serverless-functions#webpage"}},{"@type":"FAQPage","@id":"https://inquir.org/python-serverless-functions#faq","url":"https://inquir.org/python-serverless-functions","isPartOf":{"@id":"https://inquir.org/python-serverless-functions#webpage"},"mainEntity":[{"@type":"Question","name":"Which Python version does Inquir use?","acceptedAnswer":{"@type":"Answer","text":"Python 3.12. Standard library, asyncio, and all synchronous patterns are supported. Use async def handler for async handlers."}},{"@type":"Question","name":"Can I use pandas and numpy without hitting size limits?","acceptedAnswer":{"@type":"Answer","text":"Yes. Containers have no 250 MB unzipped limit like Lambda Layers. Declare numpy and pandas in requirements.txt; the platform builds the image without size-based pruning."}},{"@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."}}]}]}