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.7.tar.gz
(59.5 kB
view hashes)
Built Distribution
Close
Hashes for http_server_base-2.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e700783d60fdbcb28295bc47873f13d94b7f46ee4a2cdddeda3daec46db10d00 |
|
MD5 | 37d2f522082f78686040c7a208d2a2b4 |
|
BLAKE2b-256 | 18d9b3257f88e3f907619331deb242a6a5775b5eb7774e75323e45afc50dd193 |