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.6.tar.gz
(5.8 kB
view hashes)
Built Distribution
echovault-0.2.6-py3-none-any.whl
(11.7 kB
view hashes)
Close
Hashes for echovault-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143b425eae90d5eb3d72bffd025032e846e5a9cf4f39fc78fee695df3d8975a4 |
|
MD5 | cb12e80eb284646af3b90d8f9803562c |
|
BLAKE2b-256 | 4173aa680135612af2987afac4ade0acb9f456cca5a7b90db93e9058566f47e5 |