Skip to main content

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.

Metadata

Release files for micro-file-server 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for micro-file-server 0.1
File Size Uploaded
micro_file_server-0.1.tar.gz 56.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for micro-file-server 0.1
File Interpreter ABI Platform
micro_file_server-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 63.8 kB

Release files / micro_file_server-0.1.tar.gz

Download URL micro_file_server-0.1.tar.gz
Size 56.4 kB
Tags Source
SHA-256 checksum
How to use checksums
775673edf95f1b9bf122bc3fd2321e923701d56fd3a0bad7cb73d57f6b818f21
BLAKE2b-256 checksum
How to use checksums
8c2372526a653310c35cf5c2340070be966615e69209cb6fbf7b7d298eb5752e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / micro_file_server-0.1-py3-none-any.whl

Download URL micro_file_server-0.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a57a6adfda530e7aa0363bf5ccd7a1355c41bdbc31f540b4295a293d713b141
BLAKE2b-256 checksum
How to use checksums
4431c426450899593e4ed1d7854672ec59ee74be27d57f60534b09e03c81639b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page