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
- Host: GitHub
- URL: https://github.com/lekhana3003/python-redis
- Owner: lekhana3003
- License: mit
- Created: 2024-04-07T14:04:01.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T17:17:17.000Z (almost 2 years ago)
- Last Synced: 2024-04-10T20:18:38.583Z (almost 2 years ago)
- Topics: python, python-service, redis, redis-server, reimplementation, socket-programming
- Language: Python
- Homepage:
- Size: 679 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Python Redis: A reimplementation of redis in pure python
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).