{"id":20474495,"url":"https://github.com/terance-edmonds/python-web-server","last_synced_at":"2025-06-13T05:39:55.097Z","repository":{"id":196331145,"uuid":"685213697","full_name":"terance-edmonds/python-web-server","owner":"terance-edmonds","description":"A simple web server developed with python sockets.","archived":false,"fork":false,"pushed_at":"2023-09-12T02:39:20.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T02:49:30.349Z","etag":null,"topics":["python","socket-programming","webserver"],"latest_commit_sha":null,"homepage":"","language":"Hack","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/terance-edmonds.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}},"created_at":"2023-08-30T18:47:42.000Z","updated_at":"2023-09-24T05:48:38.000Z","dependencies_parsed_at":"2023-09-24T14:49:38.421Z","dependency_job_id":null,"html_url":"https://github.com/terance-edmonds/python-web-server","commit_stats":null,"previous_names":["terance-edmonds/python-web-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terance-edmonds%2Fpython-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terance-edmonds%2Fpython-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terance-edmonds%2Fpython-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terance-edmonds%2Fpython-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terance-edmonds","download_url":"https://codeload.github.com/terance-edmonds/python-web-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242039717,"owners_count":20061928,"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":["python","socket-programming","webserver"],"created_at":"2024-11-15T14:33:01.471Z","updated_at":"2025-03-05T14:18:42.942Z","avatar_url":"https://github.com/terance-edmonds.png","language":"Hack","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Python Web Server (Socket Programming)\n\nThis is a simple web server developed with python sockets. Server is compatible of serving various file types and also supports serving multiple clients at once.\n\nThe server also support simple GET and POST form submissions.\n\n## Example links\n\n| Type      | Route                                                               |\n| --------- | ------------------------------------------------------------------- |\n| **.html** | [/](http://localhost:2728/)                                         |\n| **.php**  | [/contact.php](http://localhost:2728/contact.php)                   |\n| **.css**  | [/style.css](http://localhost:2728/sample/style.css)                |\n| **.js**   | [/script.js](http://localhost:2728/sample/script.js)                |\n| **.jpg**  | [/images/parallax1.jpg](http://localhost:2728/images/parallax1.jpg) |\n| **.json** | [/files/sample.json](http://localhost:2728/files/sample.json)       |\n| **.xml**  | [/files/sample.xml](http://localhost:2728/files/sample.xml)         |\n| **.txt**  | [/files/sample.txt](http://localhost:2728/files/sample.txt)         |\n| **.pdf**  | [/files/sample.pdf](http://localhost:2728/files/sample.pdf)         |\n| **.xlsx** | [/files/sample.xlsx](http://localhost:2728/files/sample.xlsx)       |\n\n## Requirements\n\n- PHP 8.2.4 or up ( `php -v` for version )\n- Python3 ( `python -v` for version )\n- NodeJs (`node -v` for version ) [ optional ]\n\n## Usage\n\nCreate a folder named as `htdocs` in the root directory, and add the web files to it.\n\nThan, to start the server, Run the below code.\n\n```bash\npython serve.py\n```\n\n**For Development**\n\nIf you have `NodeJs` installed, use npm and nodemon to start the server.\n\n```bash\nnpm install # install node modules\n```\n\nTo run the server\n\n```bash\nnpm start # run the server\n```\n```bash\nnpm run dev # run the server in development mode\n```\n\nNow open the browser and head over to [localhost:2728](http://localhost:2728).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterance-edmonds%2Fpython-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterance-edmonds%2Fpython-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterance-edmonds%2Fpython-web-server/lists"}