Skip to main content

Burrowkv

Burrowkv is a simple key-value store implementation in Python. It provides basic functionality to store and retrieve key-value pairs, as well as additional features such as JSON serialization and deserialization.

Features

  • Set a value for a given key.
  • Retrieve the value associated with a key.
  • Delete a key-value pair.
  • Check if a key exists in the store.
  • Get a list of all keys.
  • Get a list of all values.
  • Get a list of all key-value pairs.
  • Serialize the key-value store to JSON.
  • Deserialize JSON into the key-value store.

Installation

pip install burrowkv

Usage

from burrowkv import burrowkv

# Create a new instance of burrowkv
store = burrowkv()

# Set a value for a key
store.set('name', 'John')

# Retrieve the value associated with a key
name = store.get('name')  # Returns 'John'

# Delete a key-value pair
store.delete('name')

# Check if a key exists
if store.contains('name'):
    print('Key exists')
else:
    print('Key does not exist')

# Get a list of all keys
keys = store.keys()  # Returns a list of keys

# Get a list of all values
values = store.values()  # Returns a list of values

# Get a list of all key-value pairs
items = store.items()  # Returns a list of (key, value) tuples

# Serialize the key-value store to JSON

json_data = store.to_json()

# Deserialize JSON into the key-value store
store.from_json(json_data)

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Metadata

Release files for burrowkv 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for burrowkv 0.0.4
File Size Uploaded Provenance Actions
burrowkv-0.0.4.tar.gz 4.0 kB Without provenance Details for burrowkv-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for burrowkv 0.0.4
File Interpreter ABI Platform Actions
burrowkv-0.0.4-py3-none-any.whl Python 3 none any Details for burrowkv-0.0.4-py3-none-any.whl

Total release size: 8.7 kB

Release files / burrowkv-0.0.4.tar.gz

Download URL burrowkv-0.0.4.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
836f3940b32252cc4ffb9e638dcbe7824dab04db6e4d1cba59ab862af2a9780d
BLAKE2b-256 checksum
How to use checksums
391c25caa7fcb95f7b57997d42928fccf131e241e57df8cd171cf65f8f32335b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0rc1

Release files / burrowkv-0.0.4-py3-none-any.whl

Download URL burrowkv-0.0.4-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
418442943aea4ce0e5a83d08230d6accaa1326e5e521602494b0e4af43b6d849
BLAKE2b-256 checksum
How to use checksums
15854cccc6fd169f6fc952aa97416ab2fe50eb1a7ed413876f8a0a279ecc3d3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0rc1

Security for burrowkv 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page