{"id":19286832,"url":"https://github.com/cuyu/twisted-customise-file-server","last_synced_at":"2026-05-18T07:32:12.610Z","repository":{"id":148902051,"uuid":"67027117","full_name":"cuyu/twisted-customise-file-server","owner":"cuyu","description":"Enhance the twisted static file server with customised contents and html page.","archived":false,"fork":false,"pushed_at":"2016-09-02T02:31:36.000Z","size":329,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T23:16:21.315Z","etag":null,"topics":["static-server","twisted"],"latest_commit_sha":null,"homepage":null,"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/cuyu.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":"2016-08-31T10:16:45.000Z","updated_at":"2023-05-29T08:09:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"705f6402-07a4-447c-928a-496aca3bc5a8","html_url":"https://github.com/cuyu/twisted-customise-file-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cuyu/twisted-customise-file-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuyu%2Ftwisted-customise-file-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuyu%2Ftwisted-customise-file-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuyu%2Ftwisted-customise-file-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuyu%2Ftwisted-customise-file-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuyu","download_url":"https://codeload.github.com/cuyu/twisted-customise-file-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuyu%2Ftwisted-customise-file-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33169205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"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":["static-server","twisted"],"created_at":"2024-11-09T22:04:28.449Z","updated_at":"2026-05-18T07:32:12.575Z","avatar_url":"https://github.com/cuyu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twisted-customise-file-server\nEnhance the twisted static file server with customised contents (e.g. add content of file create time) and html page (e.g. use [bootstrap](http://getbootstrap.com/) in the web page).\n\nHere is an example of web integrated with bootstrap and also added a column for the file's created time:\n\n![Example sceenshot](example.png)\n\n### Implenmented\n\n- Can render html file outside instead of using python string\n- The outside html file can import local static files (css, js .etc)\n\n### How to use\n\n#### Start web server in python code\n\n```python\nfrom customise_server import CustomiseServer\n\nif __name__ == '__main__':\n    server = CustomiseServer('/tmp')\n    server.run()\n```\n\nThis will block the main process until you stop the web server.\n\n#### Start web server by cmdline\n\n\n\n### Settings\n\nI move the hard coded variables to the `settings.py` file. Just look at this file and change the content if necessary.\n\n## TODO List\n\n- Can easily choose what contents are displayed in the table of the web (e.g. only display file name and its created time)\n- A simple cmdline to start a static file server","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuyu%2Ftwisted-customise-file-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuyu%2Ftwisted-customise-file-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuyu%2Ftwisted-customise-file-server/lists"}