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.3.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

servefile-0.5.3-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servefile-0.5.3.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for servefile-0.5.3.tar.gz
Algorithm Hash digest
SHA256 a126dc32979114b624cca64186b7bc4a397c149c7557b15cb74450c1be4f91fb
MD5 58629a2e86558c41ae53754cdfd7b409
BLAKE2b-256 ca2a7c1e8f7f9733caa0d20269ad4350be4970cd08cad2a85263aa41f958816a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servefile-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for servefile-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e73f79eb60fb83886cb4b430dc6a300b5d70dac6240e8de9657b9102912f7199
MD5 14e1c3d717c2755aa249fe3bc96188b1
BLAKE2b-256 ee56f10e3ada52865837218a84ecd4c9494c245fceace0f8519865ee7c1a59f5

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