Skip to main content

Simple File Cache based on pickle or json

Project description

simple_file_cache

Python Simple cache based on pickle or json file

Usage

data = { "hi":"hello" }

# usage 1: as a file cache
@file_cache(file='export.json', type='json')
def do_job():
  return data

# usage 2: load file as fast as
rs = load_file(file='export.json', type='json')

# usage 3: dump file as fast as
rs = dump_file(file='export.json', type='json')

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

simple_file_cache-0.0.5.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

simple_file_cache-0.0.5-py2.7.egg (3.8 kB view hashes)

Uploaded Source

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