LiteLambda Documentation
LiteLambda is a serverless platform designed exclusively for running scheduled Python scripts (cron jobs). There are no servers to manage, no Dockerfiles to write, and no web endpoints to configure.
Quickstart Guide
Deploy your first Python cron job in under 5 minutes.
Pip Packages
Learn how to import external libraries like requests and pandas.
Cron Syntax
Reference guide for writing accurate scheduling expressions.
Using API Keys
Best practices for using secrets in your LiteLambda scripts.
Core Concepts
1. The Handler Function
Every LiteLambda script requires a handler(event, context) function. This is the entry point that the execution engine calls when your cron schedule triggers.
def handler(event, context):
print("This runs on a schedule!")
return {"status": "success"}
2. The Sandboxed Runtime
Each time your cron job executes, it runs inside a fresh, isolated Docker container running Python 3.11. The environment is ephemeral—any files written to /tmp will be destroyed when the execution finishes.
3. Real-Time Logging
Anything you print using standard print() statements, as well as any uncaught exceptions, are securely captured and stored. You can view these via the Execution Logs tab in your dashboard.