{"id":15665000,"url":"https://github.com/ruchip16/file_store","last_synced_at":"2026-05-07T23:39:58.920Z","repository":{"id":178135843,"uuid":"661217379","full_name":"Ruchip16/file_store","owner":"Ruchip16","description":"A simple file store that stores plain-text files","archived":false,"fork":false,"pushed_at":"2023-07-03T03:41:09.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T06:26:44.371Z","etag":null,"topics":["backend","client-server","kubernetes-cluster"],"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/Ruchip16.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":"2023-07-02T06:47:11.000Z","updated_at":"2023-07-03T03:44:46.000Z","dependencies_parsed_at":"2023-07-09T18:32:10.339Z","dependency_job_id":null,"html_url":"https://github.com/Ruchip16/file_store","commit_stats":null,"previous_names":["ruchip16/file_store"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ruchip16/file_store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruchip16%2Ffile_store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruchip16%2Ffile_store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruchip16%2Ffile_store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruchip16%2Ffile_store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ruchip16","download_url":"https://codeload.github.com/Ruchip16/file_store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruchip16%2Ffile_store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32760849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["backend","client-server","kubernetes-cluster"],"created_at":"2024-10-03T13:44:44.594Z","updated_at":"2026-05-07T23:39:58.892Z","avatar_url":"https://github.com/Ruchip16.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backend File Store Service \n\nTo implement the backend file store service that has a simple HTTP server and a command line client that stores plain-text files and the server would receive requests from clients to store,update, delete files \u0026 perform operations on files stored in the server. For the server, I used Python with Flask, and for the command line client, I used Python. Let's get started!\n\n- For setting up the server:\n  - Installed Flask using pip: `pip install flask`\n  - Created the `server.py` file that sets up a basic Flask server with endpoints for adding files, listing files, removing files, and updating files. The files are stored in a dictionary called file_store, where the keys are the filenames and the values are the file contents.\n- For command line client: \n  - Created a `client.py` file which uses the requests library to send HTTP requests to the server. It provides functions for adding files, listing files, removing files, and updating files based on the command-line arguments provided.\n \n ## To Run the code:\n\n**Note: both the server and the client should be running simultaneously for the commands to work correctly.**\n\n- Fork and clone the repository\n- to start the server: `python server.py`\n- to start the client: `python client.py \u003ccommand\u003e \u003carguments\u003e`\n  - where command represents - `add, ls, rm, update, wc, freq-words`\n  - arguments -`(name of text files you want to store) eg:file1.txt,etc`\n\n## The list of operations the file store supports are: \n\n1. Add files to the store: `python client.py add file1.txt file2.txt`\n2. List files in the store: `python client.py ls`\n3. Remove a file: `python client.py rm file1.txt`\n4. Update contents of a file in the store: `python client.py update file.txt`\n5. Word count: returns the number of words in all the files stored in server \n`python client.py wc`\n6. Least or most frequent words: should return the 10 most frequent words in all the files combined.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruchip16%2Ffile_store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruchip16%2Ffile_store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruchip16%2Ffile_store/lists"}