http.server
A (beautiful) replacement for the http.server Python3 module.
pip3 install beautify-http-server
Features:
- File download 🤷♂️
- File upload 🤩
- Preview (pdf, text, image, music, video) 🧐
- List files in
.zipand.tararchives remotely, with the ability to view or download a single entry 😮 - Mobile-friendly 🤳
Example
- Preview:
- Mobile:
Dev Tips: force to view a zip-like file by passing
#zipin the URL 😉
Usage
After installation (pip3 install beautify-http-server, see below), run:
$ # to serve current working directory, on 127.0.0.1:8000
$ http.server
$ http.server --bind 0.0.0.0 --port 8080 --folder ~/Downloads
$ http.server -h
usage: http.server [-h] [--bind BIND] [--port PORT] [--folder FOLDER]
[--debug | --no-output]
optional arguments:
-h, --help show this help message and exit
--bind BIND Specify bind address [default: 127.0.0.1]
--port PORT Specify server port [default: 8000]
--folder FOLDER Specify which directory to serve [default: current working
directory]
--debug Use "flask.run" in Debug mode instead of "waitress" WSGI
server
--no-output Disable server output (set logging.level >= WARNING)
ATTENTION: this program is meant to be run locally, do not expose on Internet!
Installation
As easy as:
$ pip3 install beautify-http-server
Otherwise:
$ # (Optional)
$ virtualenv venv && source venv/bin/activate
$ git clone https://www.github.com/lorenzodifuccia/http.server
$ cd http.server
$ pip install .
$ python3 -m http_server ...
OR
$ http.server ...
This project has the following dependencies:
- Python3 (see
requirements.txt) - HTML5
Future
Known issues:
- HTML5 and Browsers do not fully support
.mkvfiles
Made with <3 by me
Metadata
Release files for beautify-http-server 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beautify-http-server-0.0.1.tar.gz | 13.9 kB | Without provenance | Details for beautify-http-server-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beautify_http_server-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for beautify_http_server-0.0.1-py3-none-any.whl |
Total release size: 29.2 kB
Release files / beautify-http-server-0.0.1.tar.gz
| Download URL | beautify-http-server-0.0.1.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16129f3a3bd887a7dc07c00ebe83ae50fcc759abd0aad1fd5370311273f9a8c4
|
|
BLAKE2b-256 checksum How to use checksums |
93d5e3db327cf0d7153fa3ebe7f4bd5335934e35eebe153e957868f9302bacb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.10
|
Release files / beautify_http_server-0.0.1-py3-none-any.whl
| Download URL | beautify_http_server-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
820884123b8266c6cc400bd062a143fdf4c995eaa80d5e409c604ee524ef7b24
|
|
BLAKE2b-256 checksum How to use checksums |
5baed68a12a290a2cb5c762b5e268211a534e0d6455866ee04b6d0259cbd40f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.10
|
Security for beautify-http-server 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.