Skip to main content

Build a cache of files in the folder tree for efficiency and emergency purposes

Project description

Build status Latest version on PyPI License

DCache keeps a cache of files in the folder tree for efficiency and emergency purposes. The default cache is a hidden file named .prefetch_cache.json that is stored in the root folder.

Development of dcache happens on GitHub:

Getting started

Installing dcache

$ pip install --pre dcache

Build the cache

$ python dcache/ [-o FILENAME] FOLDER

Use the cache

import dcache

# Load the cache
cache = dcache.load(arguments['FOLDER'])

# Get the full path of a file
path = cache.pathname(filename)

# Walk the directory tree
for item in cache:
   path = cache.pathname(item)
   # work on the path


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dcache-0.1.dev9.tar.gz (6.1 kB) Copy SHA256 hash SHA256 Source None Mar 7, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page