Home

Awesome

brutus

HTTP/TCP Distributed Computing Framework in Python
using Amazon Lambda functions

It's simple and it's powerful.


Working prototype, still under development. Not suitable for anything other than exploring, making suggestions/issues.


Requirements


Is this package a good fit for you?

Uses Amazon Lambda to distribute workloads

from brutus import distribute, Client

# max of 1000 simultaneous Lambda functions,
lambda_backend
Client(max_workers=1000,
       requirements=['pandas=20.1', 'numpy=1.13']  # or file path to pip freeze file
       )

@distribute
def adder(x):
    time.sleep(random.random())
    return x

@distribute
def times_2(x):
    time.sleep(random.random())
    return x * 2
    
@distribute
def divide(x):
    time.sleep(random.random())
    return x / 2.

results = map(adder, range(5))
results = map(times_2, results)
results = map(divide, results))