Skip to main content

Serve files from shell via a small HTTP server

Project description

Servefile

Serve files from shell via a small HTTP server. The server redirects all HTTP requests to the file, so only IP and port must be given to another user to access the file. Its main purpose is to quickly send a file to users in your local network, independent of their current setup (OS/software). Besides that it also supports uploads, SSL, HTTP basic auth and directory listings.

Features:

  • serve single file
  • serve a directory with directory index
  • file upload via webinterface
  • HTTPS with on the fly generated self signed SSL certificates
  • HTTP basic authentication
  • serving files/directories as on request generated tar files

Install

Via pip

pip install servefile

After installation either execute servefile --help or python -m servefile --help

Standalone: If you don't have pip available just copy servefile/servefile.py onto the target machine, make it executable and you are ready to go.

$ wget https://raw.githubusercontent.com/sebageek/servefile/master/servefile/servefile.py -O servefile
$ chmod +x servefile
$ ./servefile --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

servefile-0.5.4.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

servefile-0.5.4-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file servefile-0.5.4.tar.gz.

File metadata

  • Download URL: servefile-0.5.4.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for servefile-0.5.4.tar.gz
Algorithm Hash digest
SHA256 5b080683c573e057db5e9ad9af800b4a2681c059ca0ba5537aff2ddfbf1bae00
MD5 e7774760cde37501389017436519f930
BLAKE2b-256 37e31a99dfaa6311e38236f6ce436e7f6c0f9b9ccef93643e33bd66e1727ef9b

See more details on using hashes here.

File details

Details for the file servefile-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: servefile-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for servefile-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4e154791dec70b280cfd3d4e0ad8ba13bfd1f676bc77b5ce0b73b54f65ace770
MD5 6b50d2194cac2e05a565fa6b00869bdf
BLAKE2b-256 bf37fc904b61328032d453802416e820112626434501cfc5dc68b52446c1602e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page