Skip to main content

No project description provided

Project description

Memosa: Serve cold

==========================

Behold, the power of Memosa:

from memosa import memoize1
from memosa.json import context
import requests

@memoize1
def getTodo(id):
    url = 'https://jsonplaceholder.typicode.com/todos/%s' % id
    return requests.get(url).json()

with context('todos.json'):    
    print(getTodo(1))
    print(getTodo(2))

Features

  • memoization decorators
  • persistent cache context

Memosa officially supports Python 3.6 & 3.7.

Installation

To install Memosa, simply use pip:

$ pip install memosa

Documentation

check out the examples

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 memosa, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size memosa-0.5.0-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size memosa-0.5.0.tar.gz (2.9 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