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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pykv-0.1.0.tar.gz.
File metadata
- Download URL: pykv-0.1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eebeb5cb4dc587843461eb9e961761d0dd1fb8a6e7a2f9767430796d0b6d6dd
|
|
| MD5 |
04b2aa404d20220adac961939ae0b5c1
|
|
| BLAKE2b-256 |
178bb3019dc8a598dbdcbe35b6a189cadc2b4eba0ad2f75d36cc6c031a070063
|
File details
Details for the file pykv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pykv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c20009b5735a744a5ee26f82230ab26b439cf51b925998cd6332c7389b409a
|
|
| MD5 |
d07c6ac6b3d48fbf9346387dcb186e2e
|
|
| BLAKE2b-256 |
b36ee2bc6c4c7c609f93b3c1c407e15acb79af31d2b4d0147bedbf808868e17a
|