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.

Source Distribution

simple_file_cache-0.0.6.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file simple_file_cache-0.0.6.tar.gz.

File metadata

  • Download URL: simple_file_cache-0.0.6.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.4

File hashes

Hashes for simple_file_cache-0.0.6.tar.gz
Algorithm Hash digest
SHA256 9a3ba6fdc87138d86219928f6c8bcb4e7ec9592f7df0a46e47ccebd31b7fdef9
MD5 f2e5ea671db02fb788349b7037733799
BLAKE2b-256 d84f648e5b70e7efe698e80a8ac9d14fab574407213db485ce7ae975f8bf6e26

See more details on using hashes here.

Supported by

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