{"id":27510439,"url":"https://github.com/chroming/fake_server","last_synced_at":"2025-10-06T19:10:02.719Z","repository":{"id":57428286,"uuid":"265288959","full_name":"chroming/fake_server","owner":"chroming","description":"A fake server than catch all path and response success message or whatever data you defined.","archived":false,"fork":false,"pushed_at":"2023-05-01T21:40:23.000Z","size":60,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T03:42:58.262Z","etag":null,"topics":["faker","privacy","python","webserver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chroming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-19T15:38:51.000Z","updated_at":"2020-07-12T14:42:14.000Z","dependencies_parsed_at":"2022-09-02T15:31:30.482Z","dependency_job_id":null,"html_url":"https://github.com/chroming/fake_server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chroming%2Ffake_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chroming%2Ffake_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chroming%2Ffake_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chroming%2Ffake_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chroming","download_url":"https://codeload.github.com/chroming/fake_server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249384846,"owners_count":21262076,"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":["faker","privacy","python","webserver"],"created_at":"2025-04-17T22:23:31.235Z","updated_at":"2025-10-06T19:09:57.640Z","avatar_url":"https://github.com/chroming.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A fake server than catch all path and response success message or whatever data you defined.\n\n## Usage\n\n`python -m fake_server -t Success!`\n\nThen you can access whatever path in 'http://127.0.0.1' (such as http://127.0.0.1/simple/a/b/c), and then get response text 'Success!'.\n\nAll arguments:\n\n`python -m fake_server -t TEXT -f FILE_PATH -fc FILE_PATH -b 127.0.0.1:80 -s`\n\n**SERVER ARGUMENTS**\n\n+ -b --bind *IP:PORT*: Server bind host and port, default 127.0.0.1:80, if you what listen on all interface just use 0.0.0.0:80\n+ -p --port *PORT*: Server bind port, same as port in --bind\n+ -s --https: Server with https or not\n\n**RESPONSE ARGUMENTS**\n\nYou can only choice one argument for response\n\n+ -t --text *TEXT*: Return text, default Success\n+ -f --file *FILE_PATH*: Return file as attachment\n+ -fc --file_content *FILE_PATH*: Return file content\n\n\n## Why you need this?\n\nWhen you notice some software send your private data to their server(like: http://data.old_server.com ), and \nthe software need success response from server(like: {\"result\": \"success\"}), what can you do?\nNow ,with fake_server, you can do like this:\n\n1. Add this line to your hosts file (Linux/macOS: /etc/hosts, Windows: C:\\Windows\\System32\\Drivers\\etc\\hosts)\n\n`127.0.0.1 data.old_server.com`\n\n2. Start fake server:\npython -m fake_server '{\"result\": \"success\"}'\n\nThen all data send to data.old_server.com will now send to your own compute, and software will get normal response as before! \n\n## TODO\n\n+ ~~To real command line tool as fake-server;~~\n+ ~~Support https~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchroming%2Ffake_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchroming%2Ffake_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchroming%2Ffake_server/lists"}