Skip to main content

A small HTTP web server for wsgi compatible apps

Project description

Boring

A simple HTTP webserver for WSGI compatible web app, support any wsgi web framework , django,flask, bottle and others. It is fairly fast .........

installation

boring has no dependency except python standard library, so it can be installed by cloning this repository , then run python setup.py install , or install from pypi with pip install boring.

Starting the server

boring myapp:app or python -m boring myapp:app

Assuming there is myapp.py in the current directory and and a callable object app in myapp.py.

Using with django

boring yourproject.wsgi or python -m boring yourproject.wsgi

you can serve current directory on http instead of web app, with boring . , the current directory will be served on http

Command Line Options

usage: boring [-h] [-p PORT] [--reload] [-b BIND] [--use-config] [-v] app

positional arguments:
  app                   wsgi app to load

optional arguments:
  -h, --help            show this help message and exit

  -p PORT, --port PORT  port number to use, default 8000

  --reload              enable auto reload

  -b BIND, --bind BIND  bind to this address

   --use-config          use configuration for boring

  -v, --version         show program's version number and exit

Serving Static Files

boring can be configured to serve static files (js,css,images and others). to serve static files ,create a file boring.config and add the following to the config file STATIC_URL=url # url for serving files eg /static/ for django and others STATIC_ROOT=path # folder where to find static files then add --use-config to the command line argument when starting the server

Boring In Action

test-boring.herokuapp.com , is flask webapp copied from miguelgrinberg blog running boring as http server

firdawss.herokuapp.com a django powered site running boring as the webserver

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boring-1.0.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

boring-1.0.2-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file boring-1.0.2.tar.gz.

File metadata

  • Download URL: boring-1.0.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for boring-1.0.2.tar.gz
Algorithm Hash digest
SHA256 22244382838cad64b5db07111c6f6f44faa0726b6caa81c9c6a9cdbf443f792e
MD5 d803ee35cc0d9652d1e40449cbd33efa
BLAKE2b-256 f62bff188fe6109b7ad0921d9363de9fa924c7a39cb522cc28aab5bd112f6ccb

See more details on using hashes here.

File details

Details for the file boring-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: boring-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for boring-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 88adce7de5e58f45c5a024a681d656e0296935e1499c2a4ece6036457a812f1f
MD5 07675d2c2b923e8a2cf55a4e434417db
BLAKE2b-256 3040e161ff9bd5b0aa967f132211836fe511860c20f122bd097e0dc4bd57b778

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