MCPcopy Index your code
hub / github.com/zappa/Zappa / get_runtime_from_python_version

Function get_runtime_from_python_version

zappa/utilities.py:252–259  ·  view source on GitHub ↗

Return the AWS Lambda runtime string for the current Python version.

()

Source from the content-addressed store, hash-verified

250
251
252def get_runtime_from_python_version() -> str:
253 """Return the AWS Lambda runtime string for the current Python version."""
254 major, minor = sys.version_info[:2]
255 if major < 3 or minor < 9:
256 raise ValueError(f"Python {major}.{minor} is no longer supported.")
257 if minor > 14:
258 raise ValueError(f"Python {major}.{minor} is not yet supported.")
259 return f"python{major}.{minor}"
260
261
262##

Callers 1

load_settingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected