Library for simple HTTP server & REST HTTP server base based on Tornado. Includes: Logging requests and responses with Request Id; Configuration loading; Methods for requests proxying
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
http-server-base-2.0.8.tar.gz
(59.6 kB
view hashes)
Built Distribution
Close
Hashes for http_server_base-2.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5990421618c5c5359b9918df12581ea6d90c7227bdb4f3b22c348c6628cb3c |
|
MD5 | 5917a6a5c12670b107a14ee427e0c852 |
|
BLAKE2b-256 | 498a8a15154aa7dfa41d0604956a1576790efab5824c8f219aee0bb3962d84aa |