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.8.tar.gz
(6.4 kB
view details)
Built Distribution
echovault-0.2.8-py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file echovault-0.2.8.tar.gz
.
File metadata
- Download URL: echovault-0.2.8.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03faec5d26eb380b123c7a7cb8b8a720585c47092cfee25f525b660e99b40d65 |
|
MD5 | 659ecdbe9a1805924bb29b5cd6356522 |
|
BLAKE2b-256 | ee48701a2148beef2382135b0685d1926ba8ce8a9c8263b105c9f59b95efad7e |
File details
Details for the file echovault-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: echovault-0.2.8-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53181aeb9901d50780e86b00bcaa5805523213d5c6eae8a307ea3a1616878f7b |
|
MD5 | 9d9412b885828312fcb0809694cda2e2 |
|
BLAKE2b-256 | 69a0075b31e9a8caaf7d66b94fb1bb4af5735dc1c6b1dd75f7149e7c66be9420 |