Skip to main content

echovault is git data storage

Project description

echovault

echovault is data storage which store dictionary collection inexed by name. The dictionary can be any pickleable key to any pickleable value.

Any operation done to the vault are translated to its git opertaion equivalent.

You can use all the git operation then to duplicate, branch, tag, prune, rollback ... be creative ...

from echovault.vault import Vault
from dulwich.object_store import DiskObjectStore
from dulwich.refs import DiskRefsContainer
from sys import argv

object_store = DiskObjectStore(argv[-1] + '/objects/')
refs_containers = DiskRefsContainer(argv[-1] + '/')

vault = Vault(object_store, refs_containers)

vault.commit('main')

vault['test'] = ((('all', 'your'),
                  ('base', 4),
                  ('re', b'b'),
                  (3, 'longs')),
                 {'cui':1})

for entry in vault['test']:
    print(entry)
    if 3 in entry.keys():
        print(entry['all'])
        vault['test'].remove(entry)
vault['cuicui'] = ({'troll':None},)

vault.commit('main')

del vault['cuicui']

vault.commit('main')

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

echovault-0.2.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

echovault-0.2.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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