Skip to main content
Help us improve Python packaging – donate today!

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: https://github.com/yfpeng/dcache

Getting started

Installing dcache

$ pip install --pre dcache

Build the cache

$ python dcache/build.py [-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

Developers

Release history Release notifications

This version
History Node

0.1.dev9

History Node

0.1.dev7

History Node

0.1.dev6

History Node

0.1.dev5

History Node

0.1.dev4

History Node

0.1.dev3

History Node

0.1.dev1

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 CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page