Skip to main content

A key-value storage in the memory, it is simple and fast.

Project description

# PyKV PyKV is a key-value storage in the memory, it is simple and fast.

## Requirements Python3.8+

## Installation `bash $ pip install pykv `

## Example `python $ python >>> from pykv import KV >>> kv = KV(name="kv-app") >>> kv.put("key1", "value1") # the key1 default expires after 2 hours >>> kv.get("key1") 'value1' >>> >>> kv.put("key2", "value2", ttl=5) # the key2 expires after 5 second >>> kv.get("key2") # the key2 is deleted and return None after 5 second >>> `

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

pykv-0.1.0.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

pykv-0.1.0-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

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