Metadata-Version: 2.4
Name: redis-namespace-client
Version: 0.1.0
Summary: A simple Redis client for Python with support for: namespacing and JSON serialization/deserialization, designed for middleware applications.
Home-page: https://github.com/cloudtechy/redis-namespace-client
Download-URL: https://github.com/cloudtechy/redis-namespace-client/archive/refs/tags/v0.1.0.tar.gz
Author: Onyekelu Chukwuebuka
Author-email: Onyekelu Chukwuebuka <conyekelu@yahoo.com>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: python-dotenv
Requires-Dist: redis
Requires-Dist: urllib3
Dynamic: author
Dynamic: download-url
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python




````markdown
# redis-namespace-client

A simple Redis client for Python with support for:

- Namespacing
- JSON serialization
- Expiry (TTL)
- Logging
- `.env` support via `python-dotenv`

## Installation

```bash
pip install redis-namespace-client
````

## Usage

```python
from redis_namespace_client import redis_set, redis_get

# Set a key
redis_set("mykey", {"foo": "bar"}, ex=3600)

# Get the key
value = redis_get("mykey")
print(value)
```

## Environment Variables

Create a `.env` file or export these:

```env
REDIS_ERP_HOST=localhost
REDIS_ERP_PORT=6379
REDIS_ERP_DB=3
REDIS_ERP_NAMESPACE=my_namespace
```

````

Enjoy
[![PyPI version](https://badge.fury.io/py/redis-namespace-client.svg)](https://pypi.org/project/redis-namespace-client/)
