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
Reason this release was yanked:
Unstable release
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-1.8.2.tar.gz
(49.1 kB
view hashes)
Built Distribution
Close
Hashes for http_server_base-1.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b4f629a35dc0edff1844313ac543ed74188fafd5409c59289be9fa5a280ad3b |
|
MD5 | 55e6374266328a6d1cb6e7029ef81067 |
|
BLAKE2b-256 | 2507fdfbf20af8276d7f27f8a0d79a34b58785ce68e68c54dc39e56b3efe125f |