{"id":15357242,"url":"https://github.com/gera2ld/pyweb","last_synced_at":"2026-06-05T12:31:14.354Z","repository":{"id":77381503,"uuid":"28437422","full_name":"gera2ld/pyweb","owner":"gera2ld","description":"A simple HTTP server written in Python 3.5+, requiring asyncio.","archived":false,"fork":false,"pushed_at":"2020-01-15T06:36:57.000Z","size":115,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T05:52:53.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gera2ld.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-24T06:04:11.000Z","updated_at":"2020-01-15T06:36:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ef1aa60-127b-4c9e-9560-c7afa6c7ca15","html_url":"https://github.com/gera2ld/pyweb","commit_stats":{"total_commits":93,"total_committers":1,"mean_commits":93.0,"dds":0.0,"last_synced_commit":"c7bbfd8ba22f09da1200a4d570ce128d83e5f82c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fpyweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fpyweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fpyweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fpyweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gera2ld","download_url":"https://codeload.github.com/gera2ld/pyweb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241913788,"owners_count":20041459,"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":[],"created_at":"2024-10-01T12:34:11.244Z","updated_at":"2026-06-05T12:31:14.347Z","avatar_url":"https://github.com/gera2ld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pyweb\n===\nThis is a super light web server based on `asyncio` (requires Python 3.5+).\n\nInstallation\n---\n``` sh\n$ pip3 install git+https://github.com/gera2ld/pyweb.git\n```\n\nUsage\n---\nCLI usage:\n```\nUsage: pyweb [OPTIONS]\n\n  Start a web server with pyweb.\n\nOptions:\n  -b, --bind TEXT  the address to bind, default as `:4000`\n  -r, --root TEXT  the root directory of documents\n  --help           Show this message and exit.\n```\n\nProgrammatic usage:\n``` python\nfrom pyweb.server import HTTPDaemon\n\n# Options are optional\nserver = HTTPDaemon({\n    'host': '',\n    'port': 80,\n    'match': None,\n    'handler': [\n        {\n            'handler': 'fcgi',\n            'options': {\n                'fcgi_ext': '.php',\n                'fcgi_target': ['127.0.0.1:9000'],\n                'index': [\n                    'index.php',\n                ],\n            },\n        },\n        'file',\n        'dir',\n    ],\n    'gzip': [\n        'text/html',\n        'text/css',\n        'application/javascript',\n    ],\n    'options': {\n        'root': '.',\n        'index': [\n            'index.html',\n        ],\n    },\n})\nserver.serve()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fpyweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgera2ld%2Fpyweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fpyweb/lists"}