Skip to main content

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

Metadata

Release files for boring 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boring 1.0.2
File Size Uploaded Provenance Actions
boring-1.0.2.tar.gz 15.2 kB Without provenance Details for boring-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boring 1.0.2
File Interpreter ABI Platform Actions
boring-1.0.2-py3-none-any.whl Python 3 none any Details for boring-1.0.2-py3-none-any.whl

Total release size: 32.2 kB

Release files / boring-1.0.2.tar.gz

Download URL boring-1.0.2.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
22244382838cad64b5db07111c6f6f44faa0726b6caa81c9c6a9cdbf443f792e
BLAKE2b-256 checksum
How to use checksums
f62bff188fe6109b7ad0921d9363de9fa924c7a39cb522cc28aab5bd112f6ccb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / boring-1.0.2-py3-none-any.whl

Download URL boring-1.0.2-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88adce7de5e58f45c5a024a681d656e0296935e1499c2a4ece6036457a812f1f
BLAKE2b-256 checksum
How to use checksums
3040e161ff9bd5b0aa967f132211836fe511860c20f122bd097e0dc4bd57b778
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for boring 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page