Metadata-Version: 2.4
Name: keyval
Version: 1.2.1
Summary: A simple key-value store client for keyval.org
Home-page: https://github.com/prakis/keyval-py
Author: Kishore
Author-email: prakis@gmail.com
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.20.0
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# keyval

Simple Python client for [keyval.org](https://keyval.org) — a minimal key-value store for developers.

## Install

```bash
pip install keyval
```

## Usage

```python
import keyval

# Store a value
result = keyval.set("mykey", "myvalue")
# {"status": "success", "key": "mykey", "val": "myvalue"}

# Retrieve a value
result = keyval.get("mykey")
# {"status": "success", "key": "mykey", "val": "myvalue"}

# Auto-generate a key using '-'
result = keyval.set("-", "myvalue")
# {"status": "success", "key": "uuid-abc-...", "val": "myvalue"}
```

## Response format

Both methods return a dict:

| Field    | Description                        |
|----------|------------------------------------|
| `status` | `"success"` or an error string     |
| `key`    | The key used                       |
| `val`    | The stored value                   |
