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
Release history Release notifications | RSS feed
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.5.tar.gz
(5.7 kB
view hashes)
Built Distribution
echovault-0.2.5-py3-none-any.whl
(11.7 kB
view hashes)
Close
Hashes for echovault-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066ba4c7256be1ada801fbf79944b7c231d95f757b3bd878f8c41cc635b48c7e |
|
MD5 | f906274f174d1e377e3182db0f94adfb |
|
BLAKE2b-256 | cf7ad3dde8d1cc0e12525cf7d981284985135967f7e15572b6056c21af60a43a |