GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lithops-cloud/lithops: A multi-cloud framework for big data analytics and embarrassingly parallel jobs, that provides a universal API for building parallel applications in the cloud ☁️🚀

BranchesTags
Open more actions menu

Latest commit

 

History

4,449 Commits
4,449 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
config
config
 
 
docs
docs
 
 
examples
examples
 
 
lithops
lithops
 
 
runtime
runtime
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Lithops

Tests Docs    PyPI - Downloads Ask DeepWiki

Lithops is a Python multi-cloud distributed computing framework that lets you run unmodified Python code at massive scale across cloud, HPC, and on-premise platforms. It supports major cloud providers and Kubernetes platforms, running your code transparently without requiring you to manage deployment or infrastructure.

Lithops is ideal for highly parallel workloads—such as Monte Carlo simulations, machine learning, metabolomics, or geospatial analytics—and lets you tailor execution to your priorities: you can optimize for performance using AWS Lambda to launch hundreds of functions in milliseconds, or reduce costs by running the same code on AWS Batch with Spot Instances.

Installation

  1. Install Lithops from the PyPI repository:

    pip install lithops
  2. Execute a Hello World function:

    lithops hello

Configuration

Lithops provides an extensible backend architecture for compute and storage, designed to work with various cloud providers and on-premise platforms. You can write your code in Python and run it unmodified across major cloud providers and Kubernetes environments.

📁 Follow these instructions to configure your compute and storage backends

Supported backends by platform:

Platform Compute Storage
Localhost
Localhost
Localhost Localhost
IBM Cloud IBM Code Engine
IBM Virtual Private Cloud
IBM Cloud Object Storage
AWS AWS Lambda
AWS Batch
AWS Elastic Compute Cloud (EC2)
AWS S3
Google Cloud Google Cloud Run functions
Google Cloud Run
Google Compute Engine
Google Cloud Storage
Microsoft Azure Azure Functions
Azure Container Apps
Azure Virtual Machines
Azure Blob Storage
Alibaba Cloud Aliyun Functions Compute Aliyun Object Storage Service
Oracle Cloud Oracle Functions Oracle Object Storage
Kubernetes
OpenShift
Kubernetes Jobs
Knative
Singularity
OpenWhisk
Virtual Machine
OpenStack Swift
Redis
Ceph
MinIO
Infinispan

High-level API

Lithops provides a native compute API, two drop-in replacements for standard Python APIs, and two storage APIs.

Core API

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())

Concurrent Futures API

from lithops.concurrent.futures import ProcessPoolExecutor

def double(i):
    return i * 2

with ProcessPoolExecutor() as executor:
    print(list(executor.map(double, [1, 2, 3, 4])))

Multiprocessing API

from lithops.multiprocessing import Pool

def double(i):
    return i * 2

with Pool() as pool:
    result = pool.map(double, [1, 2, 3, 4])
    print(result)

Storage API

from lithops import Storage

if __name__ == "__main__":
    st = Storage()
    st.put_object(bucket='mybucket', key='test.txt', body='Hello World')
    print(st.get_object(bucket='mybucket', key='test.txt'))

Storage OS API

from lithops.storage.cloud_proxy import os

if __name__ == "__main__":
    filepath = 'bar/foo.txt'
    with os.open(filepath, 'w') as f:
        f.write('Hello world!')

    dirname = os.path.dirname(filepath)
    print(os.listdir(dirname))
    os.remove(filepath)

You can find more usage examples in the examples folder.

Documentation

For documentation on using Lithops, see the latest release documentation.

If you are interested in contributing, see CONTRIBUTING.md.

Additional resources

Blogs and Talks

  • How to run Lithops over EC2 VMs using the new K8s backend
  • Simplify the developer experience with OpenShift for Big Data processing by using Lithops framework
  • Speed-up your Python applications using Lithops and Serverless Cloud resources
  • Lithops, a Multi-cloud Serverless Programming Framework
  • CNCF Webinar - Toward Hybrid Cloud Serverless Transparency with Lithops Framework
  • Your easy move to serverless computing and radically simplified data processing — Strata Data Conference, NY 2019. See a video of Lithops usage here and a Monte Carlo example here

Papers

  • Serverful Functions: Leveraging Servers in Complex Serverless Workflows - ACM Middleware Industrial Track 2024
  • Transparent serverless execution of Python multiprocessing applications - Elsevier Future Generation Computer Systems 2023
  • Outsourcing Data Processing Jobs with Lithops - IEEE Transactions on Cloud Computing 2022
  • Towards Multicloud Access Transparency in Serverless Computing - IEEE Software 2021
  • Primula: a Practical Shuffle/Sort Operator for Serverless Computing - ACM/IFIP International Middleware Conference 2020. See presentation here
  • Bringing scaling transparency to Proteomics applications with serverless computing - 6th International Workshop on Serverless Computing (WoSC6) 2020. See presentation here
  • Serverless data analytics in the IBM Cloud - ACM/IFIP International Middleware Conference 2018

Acknowledgements

This project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No. 825184 (CloudButton).

About

A multi-cloud framework for big data analytics and embarrassingly parallel jobs, that provides a universal API for building parallel applications in the cloud ☁️🚀

lithops.cloud

Topics

big-databig-data-analyticscloud-computingdata-processingdistributedkubernetesmulticloudmultiprocessingobject-storageparallelpythonserverlessserverless-computingserverless-functions

Resources

Readme
Apache-2.0 license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

371 stars

Watchers

9 watching

Forks

120 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.