{"id":16654174,"url":"https://github.com/letmefly666/lightfileserver","last_synced_at":"2025-07-10T22:06:07.163Z","repository":{"id":206430215,"uuid":"716390461","full_name":"LetMeFly666/LightFileServer","owner":"LetMeFly666","description":"a light file server by python flask | 借助Python Flask实现的轻量型的文件服务器，仅支持下载暂不支持上传。","archived":false,"fork":false,"pushed_at":"2023-11-15T12:09:09.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T18:26:01.341Z","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/LetMeFly666.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":"2023-11-09T03:11:39.000Z","updated_at":"2023-11-15T11:59:22.000Z","dependencies_parsed_at":"2024-11-18T08:44:35.053Z","dependency_job_id":null,"html_url":"https://github.com/LetMeFly666/LightFileServer","commit_stats":null,"previous_names":["letmefly666/lightfileserver"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LetMeFly666/LightFileServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FLightFileServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FLightFileServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FLightFileServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FLightFileServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LetMeFly666","download_url":"https://codeload.github.com/LetMeFly666/LightFileServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FLightFileServer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264674291,"owners_count":23647761,"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-12T09:48:57.657Z","updated_at":"2025-07-10T22:06:07.123Z","avatar_url":"https://github.com/LetMeFly666.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LightFileServer\n\na light file server by python flask\n\n## 前言\n\n借助```Python Flask```实现的轻量型的文件服务器，仅支持下载暂不支持上传。\n\n## 使用方法\n\n1. 安装并配置好Python、Pip环境\n2. 安装对应库：```pip install -r requirements.txt```\n3. 修改配置文件```settings.json```，设置要开放的目录、端口等\n    ```json\n    {\n        \"ip\": \"0.0.0.0\",  // 服务运行的ip地址\n        \"port\": \"80\",     // 服务开放的端口\n        \"folders\": {      // 要共享的文件夹\n            \"日常共享\": \"F:/LetMeFly/文件/SharedFolder\",\n            \"英语课PPT\": \"F:/LetMeFly/文件/EnglishPPT\"\n            // \"name\": \"path\"\n        }\n    }\n    ```\n4. 开放对应端口：请保证配置文件中的端口可以被其他主机访问\n5. 运行服务：```python server.py```\n\n这样，在```settings.json \u003e folders```中的所有```path```及其子目录中的文件都能被```settings.json \u003e ip```的```settings.json \u003e port```端口访问到。\n\n## 使用效果\n\n若路径配置错误：\n\n```\nCONFIG error! '英语课PPT' -\u003e 'F:/LetMeFly/文件/EnglishPPT' not exists\n```\n\n若配置正确：\n\n![demo.gif](docs/img/demo.gif)\n\n**大道至简，返璞归真。**\n\n## 关于Windows\n\n启动服务可以运行```docs/windows/fileserver.bat```，关闭服务可以运行```docs/windows/fileserver-stop.bat```。\n\n若想要开机自启可以为```docs/windows/fileserver.bat```创建一个快捷方式并移动到“开机自启目录”下。关于开机自启目录，可以```Win + R -\u003e shell:startup -\u003e enter```打开。\n\n在写```fileserver-stop.bat```的时候[这篇文章](https://www.jb51.net/article/29323.htm)帮助了我很多。\n\n## 后记\n\n这段代码是怎么来的呢？本蒟蒻参与了一门需要自己制作PPT并在课堂上展示的英语课。英语老师为防止电脑中病毒仅允许使用格式化后的U盘往电脑上拷贝PPT。\n\nBUPT不是个大局域网么，英语教室的主机是有连接这个局域网的，因此在我实验室主机上开个```文件下载服务```就不需要格式化U盘来拷贝PPT了。\n\n然后就有了这些代码。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletmefly666%2Flightfileserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletmefly666%2Flightfileserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletmefly666%2Flightfileserver/lists"}