{"id":18993800,"url":"https://github.com/laststylebender14/slice","last_synced_at":"2026-04-14T06:02:35.033Z","repository":{"id":225494978,"uuid":"766136757","full_name":"laststylebender14/slice","owner":"laststylebender14","description":"Slice is an in-memory, very fast, single threaded database that persists on disk.","archived":false,"fork":false,"pushed_at":"2024-03-07T08:26:36.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T22:10:59.465Z","etag":null,"topics":["database","docker","docker-compose","in-memory-database","kv-store","python"],"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/laststylebender14.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-03-02T12:47:51.000Z","updated_at":"2024-03-28T16:12:29.000Z","dependencies_parsed_at":"2024-03-07T09:31:06.528Z","dependency_job_id":"9bb86b7e-9bfa-4854-8603-f3dab1905b54","html_url":"https://github.com/laststylebender14/slice","commit_stats":null,"previous_names":["ranjitmahadik/slice-db","ranjitmahadik/slice","laststylebender14/slice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laststylebender14/slice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fslice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fslice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fslice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fslice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laststylebender14","download_url":"https://codeload.github.com/laststylebender14/slice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fslice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31784255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["database","docker","docker-compose","in-memory-database","kv-store","python"],"created_at":"2024-11-08T17:23:04.174Z","updated_at":"2026-04-14T06:02:34.996Z","avatar_url":"https://github.com/laststylebender14.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Slice\n===\nSlice is an ultra-simple, Python-based, in-memory key-value store that communicates using the RESP protocol (redis use this for communication).\n\n```\n ____  _ _            ____  ____  \n/ ___|| (_) ___ ___  |  _ \\| __ ) \n\\___ \\| | |/ __/ _ \\ | | | |  _ \\ \n ___) | | | (_|  __/ | |_| | |_) |\n|____/|_|_|\\___\\___| |____/|____/ \n\n```\n\n## Why should you care?\n\nBuilding a database from scratch can be an exhilarating experience. With Slice, you can:\n\n- build a database from scratch\n- learn database internals, starting with Redis\n- learn about advanced data structures, algorithms, and event loops (io multiplexing)\n- collaborate with other engineers and contribute back to Open Source\n\n## Why Use Slice?\n\nWhile production use of Slice might not be ideal, it offers a perfect platform for:\n\nEducational Purposes: Learn the fundamentals of key-value stores and database systems in a practical way.\nExperimentation and Prototyping: Rapidly test and validate data storage concepts for small-scale projects.\nBuilding a Foundation for Redis: Get comfortable with the RESP protocol used by Redis before diving into the full-fledged server.\n\n\n## Getting Started\n\nTo run SliceDB locally, you'll need:\n\n### Using Python\n\nYou'll need:\n1. **Python 3+**\n2. A supported platform environment:\n   - Linux-based environment\n   - OSX (Darwin) based environment\n\n```\n$ git clone https://github.com/ranjitmahadik/slice-db\n$ cd slice-db\n$ pip3 install -r requirements.txt\n$ mv .example.env .env\n$ python3 main.py\n```\n\n### Using Docker\n\nYou'll need:\n1.  **Docker**\n```\n$ git clone https://github.com/ranjitmahadik/slice-db\n$ cd slice-db\n$ mv .example.env .env\n$ docker compose up -d\n```\n\n\n## Slice in action\n\nSlice communicates in the Redis dialect, allowing seamless integration with any Redis client. To interact with Slice:\n\n- Use a [Redis CLI](https://redis.io/docs/manual/cli/) for quick access.\n- Programmatically connect using your preferred Redis library in the language of your choice.\n\n**Example:**\n```python\nimport redis\n\nclient = redis.Redis(host='localhost', port=6379)\nclient.set('key', 'value')\nprint(client.get('key'))  # Output: b'value'\n```\n\n## Get Involved\n\nReady to dive into Slice? Join our community and contribute to the project on [GitHub](https://github.com/ranjitmahadik/slice-db). Whether you're a seasoned developer or just starting out, there's room for everyone to learn and grow together.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststylebender14%2Fslice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaststylebender14%2Fslice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststylebender14%2Fslice/lists"}