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.

Source Distribution

memosa-0.5.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

memosa-0.5.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file memosa-0.5.0.tar.gz.

File metadata

  • Download URL: memosa-0.5.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for memosa-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4d68ee2c77fbbce3c77dc96d1b3139bd32e3a7c28bc8484603d09d04f8cce821
MD5 2b67bd4750f8709545279306e456eb13
BLAKE2b-256 9c9b3ce33aba56fc849e3754d8c9d704c346888fbeb8add8cda035ce9d445691

See more details on using hashes here.

File details

Details for the file memosa-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: memosa-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for memosa-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b3f8c564a08eec0605452ff978dd979d4c5e5bf1bb5674423b1659ac9db69f0
MD5 526f614a59b6067ed18578dd3ba49fe8
BLAKE2b-256 35fd32535b5038abefc615df99c76d3e19b87bc34b2ae67d10afc8e17c512c80

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page