Skip to main content

Calculation framework

Project description


build coverage python pypi commits since last commit license code style

Mona is a calculation framework that turns normal execution of Python functions into a graph of tasks. Each task is hashed by the code of its function and by its inputs, and the result of each executed task is cached. The cache can be stored persistently in an SQLite database. Tasks can be executed in parallel within a single Mona instance, and multiple instances can work in parallel on the same database.


Install and update using Pip.

pip install -U mona


A simple example

from mona import Rule, Session

async def total(xs):
    return sum(xs)

async def fib(n):
    if n < 2:
        return n
    return total([fib(n - 1), fib(n - 2)])

with Session() as sess:
    dot = sess.dot_graph()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mona, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size mona-0.2.2-py3-none-any.whl (164.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mona-0.2.2.tar.gz (46.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page