Simple SQL-based key/value store
Project description
Simple SQL-based key/value store
Install
pip install sqlvault
How to use
from sqlvault import SQLVault
vault = SQLVault('sqlite:///local.db', tables=['keysA', 'keysB'])
keys_a_vault = vault.interface('keysA')
keys_b_vault = vault.interface('keysB')
keys_a_vault['k1'] = 'av1'
keys_b_vault['k1'] = 'bv1'
keys_a_vault['k1']
>>> 'av1'
keys_b_vault['k1']
>>> 'bv1'
Limitations
As you can see, the interface is very similar to a dictionary, but there is no way to
- get all the stored keys (since the keys themselves are not stored - only their hashes)
- get all stored key/value pairs (in view of the previous point)
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
sqlvault-0.0.3.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlvault-0.0.3.tar.gz.
File metadata
- Download URL: sqlvault-0.0.3.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecf1cef9ccf7c2af2aef7c59bf2badca1364c8fb7e20608d61d7fee50d20c729
|
|
| MD5 |
44e1eba48d56780216066db911d04941
|
|
| BLAKE2b-256 |
9ae4fed2e353c9b2b709f2bfcfc6a0f127f319d9d55d72f40a2aa2199deac113
|
File details
Details for the file sqlvault-0.0.3-py3-none-any.whl.
File metadata
- Download URL: sqlvault-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67e34fe486ee346ec118250707e448f4351b3c35869017850298635757432f77
|
|
| MD5 |
bc44938e3783ac76f06f4fc1906de72f
|
|
| BLAKE2b-256 |
e52a2f1799dd7ccb523181470fe332137a9ecc795b2b9e6c6aa06f639f7372bf
|