redisgrpc


Nameredisgrpc JSON
Version 0.4 PyPI version JSON
download
home_pagehttps://github.com/gautam-sharma1/redisgrpc
SummaryA small production ready client library that emulates redis and used gRPC for communication
upload_time2024-02-23 23:54:12
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.
            ---

# Redis gRPC ⚡️

by Gautam Sharma https://gsharma.dev

Redis gRPC ⚡️ 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 redisgrpc Python client library, you can use pip:

```bash
pip install  redisgrpc==0.4
```

## Usage

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

```python
from __future__ import print_function
import logging
from  redisgrpc import redisgrpc as rg


def run():
    # Initialize the Client with the server port
    c = rg.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 [redis-grpc-server](https://github.com/gautam-sharma1/redis-grpc-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 redisgrpc 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/redisgrpc",
    "name": "redisgrpc",
    "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/45/a7/87f77c60defbd5b4a872526c8380027f50937cd6db6f18fc29a0e4e1ad5d/redisgrpc-0.4.tar.gz",
    "platform": null,
    "description": "---\n\n# Redis gRPC \u26a1\ufe0f\n\nby Gautam Sharma https://gsharma.dev\n\nRedis gRPC \u26a1\ufe0f 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 redisgrpc Python client library, you can use pip:\n\n```bash\npip install  redisgrpc==0.4\n```\n\n## Usage\n\nHere's an example demonstrating how to use the  redisgrpc client library:\n\n```python\nfrom __future__ import print_function\nimport logging\nfrom  redisgrpc import redisgrpc as rg\n\n\ndef run():\n    # Initialize the Client with the server port\n    c = rg.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 [redis-grpc-server](https://github.com/gautam-sharma1/redis-grpc-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 redisgrpc 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",
    "bugtrack_url": null,
    "license": "",
    "summary": "A small production ready client library that emulates redis and used gRPC for communication",
    "version": "0.4",
    "project_urls": {
        "Homepage": "https://github.com/gautam-sharma1/redisgrpc"
    },
    "split_keywords": [
        "redis",
        "grpc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c6a8b4ebd3de179a12107d95dd01653d4c25642ebd50aea387067ff1bf2ef6ae",
                "md5": "2bc09721dd0554656952d7c4e875fde4",
                "sha256": "e82bd360633027c7ac0f046a216cefac637fb2057182e5a8742edb94c9449ff5"
            },
            "downloads": -1,
            "filename": "redisgrpc-0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2bc09721dd0554656952d7c4e875fde4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7756,
            "upload_time": "2024-02-23T23:54:10",
            "upload_time_iso_8601": "2024-02-23T23:54:10.426540Z",
            "url": "https://files.pythonhosted.org/packages/c6/a8/b4ebd3de179a12107d95dd01653d4c25642ebd50aea387067ff1bf2ef6ae/redisgrpc-0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45a787f77c60defbd5b4a872526c8380027f50937cd6db6f18fc29a0e4e1ad5d",
                "md5": "ba71af72c9fb0db0c1fbb1f668b5869f",
                "sha256": "e7fa15caa70cae5b9c9bf586dc81fe036e83c98d83f09e4db3b6d3bb12ea532a"
            },
            "downloads": -1,
            "filename": "redisgrpc-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ba71af72c9fb0db0c1fbb1f668b5869f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6552,
            "upload_time": "2024-02-23T23:54:12",
            "upload_time_iso_8601": "2024-02-23T23:54:12.163789Z",
            "url": "https://files.pythonhosted.org/packages/45/a7/87f77c60defbd5b4a872526c8380027f50937cd6db6f18fc29a0e4e1ad5d/redisgrpc-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-23 23:54:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gautam-sharma1",
    "github_project": "redisgrpc",
    "github_not_found": true,
    "lcname": "redisgrpc"
}
        
Elapsed time: 0.73654s