Skip to main content

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.4.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlvault-0.0.4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file sqlvault-0.0.4.tar.gz.

File metadata

  • Download URL: sqlvault-0.0.4.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for sqlvault-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c9b25005b983156025cedbf11af11841cad45a786af742f30d02ccf99529e52a
MD5 8f5052be2f5a0dff59b27309cc339867
BLAKE2b-256 f5bad749595416e67a7956e5f9621ce5b1480e40c0b2e8a17987e0eb2b5ff2cd

See more details on using hashes here.

File details

Details for the file sqlvault-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sqlvault-0.0.4-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

Hashes for sqlvault-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1b4d3e618fcc2f72c0c3826c47c6b365a3bded97fc332d53e39bf6b259bf1a3a
MD5 d63461d6cd9fe5398de70dd8cd20f1c3
BLAKE2b-256 f3615bc73f8cee96203f9ea27814b35c4e2320c2908ef8067868c74a675ab0b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page