Skip to main content

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
  1. Clone the repository
  2. Run as sudo/admin: python3.6 -m pip install -e .
  3. 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 details)

Uploaded Source

Built Distribution

http_server_base-2.0.10-py3-none-any.whl (83.0 kB view details)

Uploaded Python 3

File details

Details for the file http-server-base-2.0.10.tar.gz.

File metadata

  • Download URL: http-server-base-2.0.10.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for http-server-base-2.0.10.tar.gz
Algorithm Hash digest
SHA256 e07ecf47d7943694d9c80142758505369cf817550f312448f561c727cb95ff7f
MD5 bfb309c5ede757bc4c0b702acfd1a172
BLAKE2b-256 db8c108ea589e6b0c514d30aa3a9b5e26d027dab887907d4dc9905bac3003c46

See more details on using hashes here.

File details

Details for the file http_server_base-2.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for http_server_base-2.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d3466e0f00272c7abf04bc38e818e7668dbf3095da68c70b96ede09a57f21fac
MD5 3c94aace3469055215565144225aaaa0
BLAKE2b-256 72c3ca09e4255ef06e9bd5f36a60f6dcca5788d4af751be6ec4c77d2c3d11418

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page