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 direcotry with directory index
- file upload via webinterface
- https with on the fly generated self singed 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 pip -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
Built Distribution
File details
Details for the file servefile-0.5.0.tar.gz
.
File metadata
- Download URL: servefile-0.5.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a0c0bc7a83c13fd02966e0c7c26625f8dbaac17486f5fbe4620650baafc7cb |
|
MD5 | ff9682aa9c4900e24d1f26cf7dcd4eaa |
|
BLAKE2b-256 | e7d5b9d95797479cfa17931b4a87d9d6bc955b901bbbde425d5896d32e9fdda8 |
File details
Details for the file servefile-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: servefile-0.5.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 752500487a1df0f17b4a1e686900f8ff4ec9adc0b8b4e0f09decb7e6fa53b017 |
|
MD5 | e3a60cbc2de3d3c366b002dcbb713f73 |
|
BLAKE2b-256 | e5f086b22b135b3c26eae5c54a437562b8f6131f04ce6c64401a819ffd1ddab9 |