New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

micro-file-server

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-file-server

The micro autoindex and file hosting server with one Flask framework dependence, with ability to upload files.

  • 0.1
  • PyPI
  • Socket score

Maintainers
1

Table of Contents

  1. Description
  2. Features:
  3. Dependencies
  4. Usage
  5. Screenshot

Description

The micro autoindex and file hosting server with one Flask framework dependence. HTTP server that allow to download and upload files.

Features:

Allow to transfer files between systems easily and safely.

  • ftp-like design
  • ability to uplaod file
  • protection from folder escaping and injecting
  • size calculation
  • configuration with enironmental variables
  • optional basic file type recognition: text, image, audio, video
  • optional ability to prevent downloading of small files to use browser as a text reader.

Dependencies

Python version >= 3.10

Flask >= 2.3.2

Lower version may work as well.

Usage

export FLASK_RUN_HOST=0.0.0.0 FLASK_RUN_PORT=8080
export FLASK_BASE_DIR='/home/user'
python -m micro_file_server --host=0.0.0.0
# or
python micro_file_server/__main__.py

Here is defaults, that you can change:

export FLASK_FILENAME_MAX_LENGTH=40
export FLASK_MIMETYPE_RECOGNITION=True
export FLASK_SMALL_TEXT_DO_NOT_DOWNLOAD=True
export FLASK_SMALL_TEXT_ENCODING="utf-8"
export FLASK_FLASK_UPLOADING_ENABLED=True

Built-in web server is secure enough, but to execute with pip install gunicorn

gunicorn micro_file_server.__main__:app

Screenshot

Keywords

Filesharing, fileserver, httpserver, microhttp.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc