lithops
Lithops lets you transparently run your Python applications in the Cloud
What it is and what it does
Lithops abstracts away cloud infrastructure management by letting you write ordinary Python functions and run them in parallel across multiple cloud providers, Kubernetes clusters, or on-premise systems without code changes. It supports both a Futures-style API (map/reduce patterns) and a Multiprocessing API (drop-in replacement for Python's multiprocessing.Pool), plus cloud-native storage backends for reading and writing data. The framework handles deployment, scaling, and orchestration transparently—you configure a compute backend (Lambda, Cloud Run, Batch, Kubernetes, etc.) and a storage backend (S3, GCS, Azure Blob, etc.), then submit your workload.
The primary use case is highly parallel workloads: Monte Carlo simulations, machine learning preprocessing, geospatial analytics, and metabolomics. You can optimize for speed using serverless functions that launch hundreds of tasks in milliseconds, or for cost by running the same code on batch systems with spot instances. It supports major cloud providers (AWS, Google Cloud, Azure, IBM, Aliyun, Oracle) and on-premise platforms (Kubernetes, OpenStack, Ceph, MinIO), making it useful for hybrid or multi-cloud scenarios where code portability matters.
Use it for:
- Run Monte Carlo simulations or financial modeling across hundreds of parallel functions on AWS Lambda without managing infrastructure.
- Process large geospatial or metabolomics datasets by distributing computation across Kubernetes pods or cloud VMs.
- Migrate existing Python multiprocessing code to serverless or cloud backends by swapping Pool() with lithops.multiprocessing.Pool().
- Execute the same data pipeline on multiple cloud providers (AWS, GCP, Azure) by changing configuration without rewriting code.
- Reduce costs for batch workloads by running them on Spot Instances via AWS Batch while keeping the same Python code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Lithops is a Python framework for running unmodified code at scale across cloud providers, HPC, and on-premise platforms using serverless compute and storage backends.
Yes, if you have highly parallel workloads and want to avoid cloud-specific code. The framework is actively maintained, has no known vulnerabilities, and supports a wide range of backends. Install friction is low. The main gotcha is that you must configure a compute and storage backend before running anything; it is not a drop-in replacement for local parallelism without setup. Best for teams already using cloud or Kubernetes and wanting code portability across providers.
Install
lithops on PyPI
pip
pip install lithopsuv
uv add lithopspoetry
poetry add lithopsInstalling lithops
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with recent releases; last commit 2026-07-17. Depends on 12 runtime packages including Click, PyYAML, cloudpickle, paramiko, and pika—all standard libraries for CLI, configuration, serialization, SSH, and messaging.
License in practice
Licensed under Apache Software License (permissive). No restrictions on commercial or proprietary use; you may modify and redistribute under the same license terms.
Quickstart
pip install lithops
from lithops import FunctionExecutor
def double(i):
return i * 2
with FunctionExecutor() as fexec:
f = fexec.map(double, [1, 2, 3, 4])
print(f.result())
Requires configuration of at least one compute backend (e.g., AWS Lambda, Google Cloud Run, Kubernetes) and corresponding storage backend before execution; localhost backends available for testing.
Verify before relying
- Whether the 12 runtime dependencies introduce any transitive security concerns beyond the zero known vulnerabilities in lithops itself.
- Performance characteristics and cost implications when switching between backends (e.g., Lambda vs. Batch vs. on-premise).
- Maturity and stability of less-common backends (Aliyun, Oracle, OpenWhisk, Singularity) relative to AWS/GCP/Azure.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 12 — Click, PyYAML, cloudpickle, paramiko, pika, ps-mem, psutil, requests, six, tabulate, tblib, tqdm |
| Maintenance | actively maintained — 43 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 233,113/month — #9,045 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lithops-3.7.0-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
skypilot-nightlySkyPilot provisions and manages AI compute jobs…
permissive · top 15,000 on PyPI
modalModal is a Python client library that lets you…
permissive · top 1,000 on PyPI
distributedDistributed provides a scheduler and runtime…
permissive · top 5,000 on PyPI
aws-parallelclusterAWS ParallelCluster is a cluster management…
permissive · top 15,000 on PyPI
polars-cloudPolars Cloud extends the Polars DataFrame…
permissive · top 15,000 on PyPI
argo-workflowsProvides Python API bindings for Argo…
unclear · top 15,000 on PyPI
litdataLitData optimizes and streams large datasets…
permissive · top 15,000 on PyPI
torchxTorchX is a universal job launcher that submits…
permissive · top 15,000 on PyPI
fairscaleFairScale extends PyTorch with distributed…
permissive · top 15,000 on PyPI
aiomultiprocessCombines AsyncIO and multiprocessing to run…
permissive · top 5,000 on PyPI