Registry / aws / lithops

lithops

JSON →
library3.6.4pypypi✓ verified 85d ago

Lithops is a Python library for transparently running your Python applications in the Cloud, supporting serverless and containerized platforms like AWS Lambda, Google Cloud Functions, IBM Cloud Functions, Kubernetes, and more. Version 3.6.4 is the latest, with a release cadence of roughly monthly minor versions.

pip install lithops
INSTALL
IMPORT
SIG · LITHOPS
L
lithops
awspythonv3.6.4
Install
8.4s avg
Import
893ms
Disk
87MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.6.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.915 runs
installs and imports cleanly · install 0.0s · import 0.947s · 87.2MB
glibc
py 3.103.915 runs
installs and imports cleanly · install 8.4s · import 0.839s · 88MB
87MB installed
● package 87MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FunctionExecutor
from lithops import FunctionExecutor
from lithops.executor import FunctionExecutor
FunctionExecutor is exposed directly from lithops.
Storage
from lithops.storage import Storage
Commonly imported from lithops.storage.
ibm_cf
from lithops import ibm_cf
import ibm_cf
ibm_cf is a module within lithops, not a top-level package.

Basic example: define a function, invoke it asynchronously via Lithops, and retrieve the result.

from lithops import FunctionExecutor def hello(name): return f'Hello {name}!' fexec = FunctionExecutor() fexec.call_async(hello, 'World') result = fexec.get_result() print(result)
lithops --version
Debug
Known issues
gotchaFunctionExecutor is not a context manager; you must call .get_result() or .wait() to ensure the execution completes. Failing to do so may result in uncollected futures.
fix
Always call .get_result() or .wait() on the returned future.
affects: all
breakingIn lithops 3.4.0, AWS and IBM dependencies were moved to extras (lithops[aws], lithops[ibm]). Installing without extras will no longer include boto3 or ibm-cos-sdk.
fix
Install with extras: pip install lithops[aws] or pip install lithops[ibm].
affects: >=3.4.0
gotchaWhen using functools.partial with call_async or map, ensure the partial object is pickleable. Lithops serializes the function and arguments.
fix
Use a wrapper function or ensure the partial is picklable. Version 3.6.4 improved support.
affects: <=3.6.3
deprecatedPassing access and secret keys directly in config for AWS is deprecated since lithops 3.3.0. Use IAM roles or environment variables.
fix
Configure AWS credentials via AWS CLI or environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY).
affects: >=3.3.0
gotchaDefault monitoring interval may cause 'KeyError: 'monitoring_interval'' if not set correctly (fixed in 3.5.0).
fix
Upgrade to lithops>=3.5.0 or explicitly set monitoring_interval in config.
affects: <3.5.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'boto3'
Missing AWS dependencies; lithops requires boto3 for AWS backends.
fix
Install lithops with AWS extras: pip install lithops[aws]
ibm_boto3 and ibm-cos-sdk are missing
IBM Cloud dependencies are not installed.
fix
Install lithops with IBM extras: pip install lithops[ibm]
KeyError: 'monitoring_interval'
Configuration missing monitoring_interval key in older versions.
fix
Upgrade lithops to >=3.5.0 or add 'monitoring_interval' to your lithops config.
AttributeError: 'Future' object has no attribute 'result'
Calling .result() on a Lithops future instead of .get_result() or using the future returned by call_async incorrectly.
fix
Use fexec.get_result() on the executor or call .result() on the future after .wait().
Upgrade
Version history
3.6.4latest on PyPI · released Mar 7, 2026
Audit
Dependencies
lithops[aws]optionalRequired for AWS Lambda, AWS Batch, etc.
lithops[ibm]optionalRequired for IBM Cloud Functions and COS.
lithops[kubernetes]optionalRequired for Kubernetes backend.
lithops[google]optionalRequired for Google Cloud Functions.
Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
1
Resources
lithops — pip install lithops · libregistry