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.11.tar.gz (59.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

http_server_base-2.0.11-py3-none-any.whl (83.3 kB view details)

Uploaded Python 3

File details

Details for the file http_server_base-2.0.11.tar.gz.

File metadata

  • Download URL: http_server_base-2.0.11.tar.gz
  • Upload date:
  • Size: 59.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for http_server_base-2.0.11.tar.gz
Algorithm Hash digest
SHA256 1afc2018e624c123bc75e9b3ec7dc8b2dbd6494fc3abbf53be6bca6fe9026348
MD5 931da9805220885762d894c10b1498cb
BLAKE2b-256 3fc877bfc50f6c5193285a30b31ab222b3cfb92ce9bbdaedc549c29c2fe0998d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for http_server_base-2.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d49b6c3f2d429ea42ba31003edb4cf3e2658be3daa9ae28bdb90a21ceae38fac
MD5 bc9442c0f49996746bd7ebf727a6ce23
BLAKE2b-256 66dca87c7fa4c7fb98e0c70523b3ad68c3e71717c817f1fc1463d45469d0901b

See more details on using hashes here.

Supported by

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