{"id":22480095,"url":"https://github.com/anoncheg1/micro_file_server","last_synced_at":"2025-09-05T00:42:01.411Z","repository":{"id":236552846,"uuid":"657820148","full_name":"Anoncheg1/micro_file_server","owner":"Anoncheg1","description":"Easy file sharing server (like FTP) with one dependency of Flask and in a single file.","archived":false,"fork":false,"pushed_at":"2024-11-13T12:35:33.000Z","size":174,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T11:38:42.531Z","etag":null,"topics":["filesharing","ftpserver","http-server","webserver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anoncheg1.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,"zenodo":null}},"created_at":"2023-06-23T23:57:33.000Z","updated_at":"2024-12-22T14:21:07.000Z","dependencies_parsed_at":"2024-04-27T18:46:56.974Z","dependency_job_id":"177c8621-a77d-4d42-8e54-3ae733a260ee","html_url":"https://github.com/Anoncheg1/micro_file_server","commit_stats":null,"previous_names":["anoncheg1/micro_file_server"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/Anoncheg1/micro_file_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anoncheg1%2Fmicro_file_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anoncheg1%2Fmicro_file_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anoncheg1%2Fmicro_file_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anoncheg1%2Fmicro_file_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anoncheg1","download_url":"https://codeload.github.com/Anoncheg1/micro_file_server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anoncheg1%2Fmicro_file_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273695221,"owners_count":25151481,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["filesharing","ftpserver","http-server","webserver"],"created_at":"2024-12-06T15:19:18.354Z","updated_at":"2025-09-05T00:42:01.397Z","avatar_url":"https://github.com/Anoncheg1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![badge](https://github.com/Anoncheg1/micro_file_server/actions/workflows/python-publish.yml/badge.svg?event=release)\n\n# Table of Contents\n\n1.  [Description](#orgd1e733e)\n2.  [Features:](#org58f5941)\n3.  [Dependencies](#orgb5d14b0)\n4.  [Usage](#org0fa2131)\n5.  [Default settings](#orgb47cec6)\n6.  [Screenshot](#orgb47cec7)\n7.  [Check hash](#orgb47cec5)\n\n\n# Description\n\nCreate Web server from current directory.\n\nHTTP and HTTPS server that allow to download and upload files.\n\nMicro autoindex and file hosting server with one Flask framework dependence in single file.\n\n\u003ca id=\"org58f5941\"\u003e\u003c/a\u003e\n\n# Features:\n\nAllow to transfer files between systems easily and safely.\n\n-   ftp-like design\n-   ability to upload file\n-   protection from folder escaping and injecting\n-   size calculation\n-   flexible configuration with enironmental variables\n-   optional basic file type recognition: text, image, audio, video\n-   easy viewing text files by mime type faking.\n-   hiding files and directories that starts with '.' dot character.\n-   HTTPS/TLS/SSL supported with cert and key files or with dynamic \"adhoc\" key.\n-   all in a single file: .py or .exe.\n\n\n\u003ca id=\"org58f5941\"\u003e\u003c/a\u003e\n\n# Dependencies\n\nPython version \u003e= 3.10\n\nFlask \u003e= 2.3.2 ``` pip install flask ```\n\ncryptography \u003e= 41.0.4 ``` pip install cryptography ``` optionally required for TLS --cert\n\nLower version may work as well.\n\n\u003ca id=\"org0fa2131\"\u003e\u003c/a\u003e\n\n# Usage\n\n    cd downloads\n    python micro_file_server/__main__.py --cert=.cert/cert.pem --key=.cert/key.pem\n\nor\n\n    python -m micro_file_server --host 0.0.0.0 --port 8080\nor\n\n    python micro_file_server/__main__.py\n\nor\n    export FLASK_RUN_HOST=0.0.0.0 FLASK_RUN_PORT=8080\n    export FLASK_BASE_DIR='/home/user'\n    python -m micro_file_server\n\n\n\nBuilt-in development web server is secure enough, but you may install production Web server: ``` pip install gunicorn ```\n\n    gunicorn micro_file_server.__main__:app --bind 0.0.0.0:8080\n\nor for HTTPS:\n\n    gunicorn micro_file_server.__main__:app --bind 0.0.0.0:8080 --certfile=.cert/cert.pem --keyfile=.cert/key.pem\n\n\u003ca id=\"orgb47cec6\"\u003e\u003c/a\u003e\n\n# Defaults, that you can change:\n\n    export FLASK_FILENAME_MAX_LENGTH=40\n    export FLASK_MIMETYPE_RECOGNITION=True\n    export FLASK_SMALL_TEXT_DO_NOT_DOWNLOAD=True\n    export FLASK_SMALL_TEXT_ENCODING=\"utf-8\"\n    export FLASK_FLASK_UPLOADING_ENABLED=True\n    export FLASK_HIDE_HIDDEN=True\n    export FLASK_ALLOW_REWRITE=True\n\n\u003ca id=\"orgb47cec7\"\u003e\u003c/a\u003e\n\n# Screenshot\n\n![](https://github.com/Anoncheg1/micro_file_server/raw/main/Screenshot.png)\n\n\u003ca id=\"orgb47cec5\"\u003e\u003c/a\u003e\n\n# Check hash\n\nMS Windows: ``` certutil -hashfile \"micro-file-server.exe\" SHA512 ```\n\nat Ubuntu: ``` sha512sum micro-file-server ```\n\nat MacOS: ```shasum -a 512 micro-file-server-macos ```\n\n# Keywords\nFilesharing, fileserver, httpserver, microhttp, simplehttp.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoncheg1%2Fmicro_file_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoncheg1%2Fmicro_file_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoncheg1%2Fmicro_file_server/lists"}