{"id":20670710,"url":"https://github.com/nobleknightt/codecrafters-redis-python","last_synced_at":"2026-04-17T14:31:48.103Z","repository":{"id":235268247,"uuid":"790415943","full_name":"nobleknightt/codecrafters-redis-python","owner":"nobleknightt","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-26T09:13:52.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T13:47:44.038Z","etag":null,"topics":["codecrafters","codecrafters-redis","redis-server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nobleknightt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T20:52:53.000Z","updated_at":"2024-04-26T09:13:56.000Z","dependencies_parsed_at":"2024-06-13T01:59:42.885Z","dependency_job_id":"73fc33dd-c5a3-41a3-bd3c-66735b680d4e","html_url":"https://github.com/nobleknightt/codecrafters-redis-python","commit_stats":null,"previous_names":["er-knight/codecrafters-redis-python","nobleknightt/codecrafters-redis-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobleknightt%2Fcodecrafters-redis-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobleknightt%2Fcodecrafters-redis-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobleknightt%2Fcodecrafters-redis-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobleknightt%2Fcodecrafters-redis-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nobleknightt","download_url":"https://codeload.github.com/nobleknightt/codecrafters-redis-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242888702,"owners_count":20201930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codecrafters","codecrafters-redis","redis-server"],"created_at":"2024-11-16T20:22:52.665Z","updated_at":"2026-04-17T14:31:43.062Z","avatar_url":"https://github.com/nobleknightt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://backend.codecrafters.io/progress/redis/4afbf85d-b179-4e81-a800-4f1267a2e154)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)\n\nThis is a starting point for Python solutions to the\n[\"Build Your Own Redis\" Challenge](https://codecrafters.io/challenges/redis).\n\nIn this challenge, you'll build a toy Redis clone that's capable of handling\nbasic commands like `PING`, `SET` and `GET`. Along the way we'll learn about\nevent loops, the Redis protocol and more.\n\n**Note**: If you're viewing this repo on GitHub, head over to\n[codecrafters.io](https://codecrafters.io) to try the challenge.\n\n# Passing the first stage\n\nThe entry point for your Redis implementation is in `app/main.py`. Study and\nuncomment the relevant code, and push your changes to pass the first stage:\n\n```sh\ngit add .\ngit commit -m \"pass 1st stage\" # any msg\ngit push origin master\n```\n\nThat's all!\n\n# Stage 2 \u0026 beyond\n\nNote: This section is for stages 2 and beyond.\n\n1. Ensure you have `python (3.x)` installed locally\n1. Run `./spawn_redis_server.sh` to run your Redis server, which is implemented\n   in `app/main.py`.\n1. Commit your changes and run `git push origin master` to submit your solution\n   to CodeCrafters. Test output will be streamed to your terminal.\n\n# Troubleshooting\n\n## module `socket` has no attribute `create_server`\n\nWhen running your server locally, you might see an error like this:\n\n```\nTraceback (most recent call last):\n  File \"/.../python3.7/runpy.py\", line 193, in _run_module_as_main\n    \"__main__\", mod_spec)\n  File \"/.../python3.7/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/app/app/main.py\", line 11, in \u003cmodule\u003e\n    main()\n  File \"/app/app/main.py\", line 6, in main\n    s = socket.create_server((\"localhost\", 6379), reuse_port=True)\nAttributeError: module 'socket' has no attribute 'create_server'\n```\n\nThis is because `socket.create_server` was introduced in Python 3.8, and you\nmight be running an older version.\n\nYou can fix this by installing Python 3.8 locally and using that.\n\nIf you'd like to use a different version of Python, change the `language_pack`\nvalue in `codecrafters.yml`.\n\n# References\n- [Asyncio Streams in Python by Jason Brownlee](https://superfastpython.com/asyncio-streams)\n- [Asyncio Socket Servers by Jason Brownlee](https://superfastpython.com/asyncio-server/)\n- [Asyncio Chat Client and Server by Jason Brownlee](https://superfastpython.com/asyncio-chat-client-server/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobleknightt%2Fcodecrafters-redis-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnobleknightt%2Fcodecrafters-redis-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobleknightt%2Fcodecrafters-redis-python/lists"}