redislightning


Nameredislightning JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/gautam-sharma1/redis-lightning
SummaryA small production ready client library that emulates redis and used gRPC for communication
upload_time2024-02-21 23:39:15
maintainer
docs_urlNone
authorGautam Sharma
requires_python
license
keywords redis grpc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ---

# RedisLightning 🔥

by Gautam Sharma http://gsharma.dev

RedisLightning 🔥 is a client library that emulates Redis-like features by leveraging gRPC communication. It provides a lightweight and efficient way to interact with a Redis-like server implemented using gRPC, offering developers a fast and seamless experience.

## Features

- Emulates Redis-like functionality
- Utilizes gRPC for communication
- Written in Python for ease of use and integration
- Lightweight and efficient

## Installation

To install the redislightning Python client library, you can use pip:

```bash
pip install redislightning==0.1
```

## Usage

Here's an example demonstrating how to use the redislightning client library:

```python
from __future__ import print_function
import logging
from redislightning import redislightning as rl


def run():
    # Initialize the Client with the server port
    c = rl.Client(50051)
    # Initialize the connection
    c.init_connection()
    
    # Perform some Redis-like operations
    for idx in range(1, 10):
        k = input("Set Key: ")
        v = input("Set Value: ")
        c.set(k, v)
        # Get the cached value back
        cached_val = c.get(k)
        print("Cached value of key {} is {}".format(k, cached_val))

if __name__ == "__main__":
    # Configure logging
    logging.basicConfig()
    # Run the example
    run()
```

## About

The redislightning-server is a library written purely in C++, utilizing gRPC as its communication layer. Despite its small size, this library is powerful and suitable for use in production environments. The aim is to provide developers with the best possible experience while maintaining extreme speed and efficiency.

## Contributing

Contributions to redislightning are welcome! Whether it's reporting bugs, suggesting new features, or contributing code, your input is valuable.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---
.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gautam-sharma1/redis-lightning",
    "name": "redislightning",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "redis,gRPC",
    "author": "Gautam Sharma",
    "author_email": "gautamsharma2813@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6a/b5/33ade4f863ef7f161b7e158ba57f6b791e4ca97f477ee6efbe084661eed9/redislightning-0.2.tar.gz",
    "platform": null,
    "description": "---\n\n# RedisLightning \ud83d\udd25\n\nby Gautam Sharma http://gsharma.dev\n\nRedisLightning \ud83d\udd25 is a client library that emulates Redis-like features by leveraging gRPC communication. It provides a lightweight and efficient way to interact with a Redis-like server implemented using gRPC, offering developers a fast and seamless experience.\n\n## Features\n\n- Emulates Redis-like functionality\n- Utilizes gRPC for communication\n- Written in Python for ease of use and integration\n- Lightweight and efficient\n\n## Installation\n\nTo install the redislightning Python client library, you can use pip:\n\n```bash\npip install redislightning==0.1\n```\n\n## Usage\n\nHere's an example demonstrating how to use the redislightning client library:\n\n```python\nfrom __future__ import print_function\nimport logging\nfrom redislightning import redislightning as rl\n\n\ndef run():\n    # Initialize the Client with the server port\n    c = rl.Client(50051)\n    # Initialize the connection\n    c.init_connection()\n    \n    # Perform some Redis-like operations\n    for idx in range(1, 10):\n        k = input(\"Set Key: \")\n        v = input(\"Set Value: \")\n        c.set(k, v)\n        # Get the cached value back\n        cached_val = c.get(k)\n        print(\"Cached value of key {} is {}\".format(k, cached_val))\n\nif __name__ == \"__main__\":\n    # Configure logging\n    logging.basicConfig()\n    # Run the example\n    run()\n```\n\n## About\n\nThe redislightning-server is a library written purely in C++, utilizing gRPC as its communication layer. Despite its small size, this library is powerful and suitable for use in production environments. The aim is to provide developers with the best possible experience while maintaining extreme speed and efficiency.\n\n## Contributing\n\nContributions to redislightning are welcome! Whether it's reporting bugs, suggesting new features, or contributing code, your input is valuable.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A small production ready client library that emulates redis and used gRPC for communication",
    "version": "0.2",
    "project_urls": {
        "Homepage": "https://github.com/gautam-sharma1/redis-lightning"
    },
    "split_keywords": [
        "redis",
        "grpc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22ba2193e850c790b623055c32c58bc8cf7184187763dae349b7884328c6466e",
                "md5": "9605d46302619baa6cb566371bb05289",
                "sha256": "afce6c32fefce883107296720d68f0d1fda3fdd0a0aae9e434cdfb4100eab38e"
            },
            "downloads": -1,
            "filename": "redislightning-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9605d46302619baa6cb566371bb05289",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8578,
            "upload_time": "2024-02-21T23:39:14",
            "upload_time_iso_8601": "2024-02-21T23:39:14.281107Z",
            "url": "https://files.pythonhosted.org/packages/22/ba/2193e850c790b623055c32c58bc8cf7184187763dae349b7884328c6466e/redislightning-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ab533ade4f863ef7f161b7e158ba57f6b791e4ca97f477ee6efbe084661eed9",
                "md5": "869d673be9769d1369764ca4c645173a",
                "sha256": "3ae77534ce235b60dffe34746611b40930c9e2b847aae2d43fb012080bf65cea"
            },
            "downloads": -1,
            "filename": "redislightning-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "869d673be9769d1369764ca4c645173a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6478,
            "upload_time": "2024-02-21T23:39:15",
            "upload_time_iso_8601": "2024-02-21T23:39:15.945359Z",
            "url": "https://files.pythonhosted.org/packages/6a/b5/33ade4f863ef7f161b7e158ba57f6b791e4ca97f477ee6efbe084661eed9/redislightning-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-21 23:39:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gautam-sharma1",
    "github_project": "redis-lightning",
    "github_not_found": true,
    "lcname": "redislightning"
}
        
Elapsed time: 0.50736s