Skip to main content

Easily dump python objects to files, and then load them back.

Project description

Vlermv makes it easy to save Python objects to files with meaningful identifiers. You should concern yourself primarily with these two elements.

vlermv.Vlermv

Class that helps you use the filesystem like a dictionary.

vlermv.cache

Decorator that helps you use vlermv.Vlermv for caching the output of a function.

Install from PyPI.

pip install vlermv

Then call it like this.

from vlermv import Vlermv
like_a_dictionary = Vlermv('a-directory')

Now you can mostly pretend that like_a_dictionary is a dictionary, except that it will persist across Python sessions.

Decorate the function with @vlermv.cache() to cache its results.

@vlermv.cache()
def is_prime(number):
    for n in range(2, number):
        if number % n == 0:
            return False
    return True

Read the full documentation for more information.

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

vlermv-1.0.0.tar.gz (6.5 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