HTTPServerPY
Author: Moin Khan
HTTPServerPY: A lightweight static HTTP server written in Python
Introduction
HTTPServerPY is a simple, zero-configuration command-line static HTTP server.
Installation:
Globally via pip
pip install HTTPServerPY
This will install HTTPServerPY globally so that it may be run from the command line anywhere.
Usage:
py -m HTTPServerPY [host] [port] [path] [options]
[host] defaults localhost | 0.0.0.0.
[port] defaults 8000.
[path] defaults to the current directory ./.
Now you can visit http://localhost:8080 to view your server
Available Options:
| Command | Description | Defaults |
| ------------- |-------------|-------------|------|
|-p or --port |Port to use. Use -p=8080 to serve at 8080 port| 8000 |
|-h or --host |Host to use. Use -h=0.0.0.0 to serve at localhost | 0.0.0.0 |
|-pth or --path |Path to serve from. Use --path=./my_folder to serve from my_folder present in current folder| ./ |
Magic Files
index.htmlwill be served as the default file to any directory requests.404.htmlwill be served if a file is not found.405.htmlwill be served if a requested method is not supported.
Now you can visit http://localhost:8080 to view your server
Contributing
All contributions are welcome. Please create an issue first for any feature request or bug. Then fork the repository, create a branch and make any changes to fix the bug or add the feature and create a pull request. That's it! Thanks!
License
HTTPServerPY is released under the MIT License. Check out the full license here.
Metadata
Release files for HTTPServerPY 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| httpserverpy-0.0.2.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| httpserverpy-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / httpserverpy-0.0.2.tar.gz
| Download URL | httpserverpy-0.0.2.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99583f3377d31855894db8fdef55f28292c409f60a0b19b33d8e15268841026d
|
|
BLAKE2b-256 checksum How to use checksums |
e9e52cff2e0811be6b6d610558051555a412638bd1a44ddafc55dd3a8cd5dba2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.1
|
Release files / httpserverpy-0.0.2-py3-none-any.whl
| Download URL | httpserverpy-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2be30d9e0c67610d830decc17b8aaabda74b58a03745564e6e81b00a3572f8d6
|
|
BLAKE2b-256 checksum How to use checksums |
99b83c4c5420229dbee14da8821d06569daba260464384903c5c7a0e4dd69803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.1
|