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.

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
burrowkv-0.0.4.tar.gz 4.0 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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