An open API service indexing awesome lists of open source software.

https://github.com/lekhana3003/python-redis

A reimplementation of redis in pure python
https://github.com/lekhana3003/python-redis

python python-service redis redis-server reimplementation socket-programming

Last synced: 10 months ago
JSON representation

A reimplementation of redis in pure python

Awesome Lists containing this project

README

          

Python Redis: A reimplementation of redis in pure python

[//]: # (Github Action)

[//]: # (PyPI version)

[//]: # (Download stats)



Python version
License MIT



demo



Features
How to Use
Contributing
License
Contact

# Python-Redis

Python-Redis is a Python reimplementation of Redis, a popular in-memory data structure store used as a database, cache. Python-Redis aims to provide similar functionality to Redis while being written entirely in Python, making it easier to understand, modify, and extend.

## Features

- **Commands**: Python-Redis supports currently support all basic commands, allowing users to store and retrieve data efficiently.

- **Redis Client Compatibility**: Python-Redis can be connected to using any Redis client that supports the Redis protocol. This ensures compatibility with existing Redis clients and libraries.

## Run Locally

To start using Python-Redis, follow these simple steps:

1. Clone the repository:
```
git clone https://github.com/lekhana3003/python-redis.git
```

2. Navigate to the project directory:
```
cd python-redis
```

3. Run the Python-Redis server:
```
./spawn-redis-server.sh --port
```

4. Connect to Python-Redis using a Redis client of your choice, specifying the host and port where Python-Redis is running.

Note: Used [iredis](https://github.com/laixintao/iredis) for demo

## Deployment

build the image

```bash
docker build -t redis-server .
```
start the container

```bash
docker run -d --name redis redis-server
```

## Contributing

Contributions are welcome! If you'd like to contribute to Python-Redis, please follow these guidelines:

- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Write tests for your changes.
- Ensure all tests pass.
- Submit a pull request.

## License

Python-Redis is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Contact

If you have any questions, suggestions, or issues, please feel free to contact me at [lekhanag.3003@gmail.com](mailto:lekhanag.3003@gmail.com).

---

Python-Redis is a project by [Lekhana Ganji](https://github.com/lekhana3003).