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.10.tar.gz
(59.2 kB
view hashes)
Built Distribution
Close
Hashes for http_server_base-2.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3466e0f00272c7abf04bc38e818e7668dbf3095da68c70b96ede09a57f21fac |
|
MD5 | 3c94aace3469055215565144225aaaa0 |
|
BLAKE2b-256 | 72c3ca09e4255ef06e9bd5f36a60f6dcca5788d4af751be6ec4c77d2c3d11418 |