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', data=data)

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 simple-file-cache, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size simple_file_cache-0.0.6.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page