HTTP Server Base
This project is a Tornado-based HTTP-server base for easier development. The repository also includes a very simple example server.
Features
- Easy deployment;
- Implemented logging;
- Automated Request Id generation;
- Implemented configuration loading;
- Methods for proxying requests.
Installation
Requirements
Please, note, that Python 3.6.0+ is required for this tool.
Installation with PyPI
python3.6 -m pip install http-server-base
Manual Installation
- Clone the repository
- Run as sudo/admin:
python3.6 -m pip install -e . - Import to your project:
import http_server_base
Usage
Starting Simple Server
You can start simple HTTP server that logs all requests via console:
python3.6 -m http_server_base [port] [arguments]
Default port is 80 if allowed, else 8080
Arguments should be passed in format name=value
Useful Links
Release files for http-server-base 2.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| http_server_base-2.0.11.tar.gz | 59.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| http_server_base-2.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 143.0 kB
Release files / http_server_base-2.0.11.tar.gz
| Download URL | http_server_base-2.0.11.tar.gz |
|---|---|
| Size | 59.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1afc2018e624c123bc75e9b3ec7dc8b2dbd6494fc3abbf53be6bca6fe9026348
|
|
BLAKE2b-256 checksum How to use checksums |
3fc877bfc50f6c5193285a30b31ab222b3cfb92ce9bbdaedc549c29c2fe0998d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / http_server_base-2.0.11-py3-none-any.whl
| Download URL | http_server_base-2.0.11-py3-none-any.whl |
|---|---|
| Size | 83.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d49b6c3f2d429ea42ba31003edb4cf3e2658be3daa9ae28bdb90a21ceae38fac
|
|
BLAKE2b-256 checksum How to use checksums |
66dca87c7fa4c7fb98e0c70523b3ad68c3e71717c817f1fc1463d45469d0901b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|