Skip to main content

web.dispatch

© 2009-2017 Alice Bevan-McGregor and contributors.

https://github.com/marrow/web.dispatch

Latest released version. Latest Github tagged release. Downloads per week. Release build status. Release test coverage. Status of release dependencies. Subscribe to project activity on Github. Star this project on Github.

Introduction

Dispatch is the process of taking some starting point and a path, then resolving the object that path refers to. This process is common to almost every web application framework (transforming URLs into controllers), RPC system, and even filesystem shell. Other terms for this process include: “traversal”, “routing”, or “lookup”.

This package speaks a standardized dispatch protocol and is not entirely intended for direct use by most developers. The target audience is instead the authors of frameworks that may require such modular dispatch for use by their own users.

Installation

Installing web.dispatch is easy, just execute the following in a terminal:

pip install web.dispatch

Note: We strongly recommend always using a container, virtualization, or sandboxing environment of some kind when developing using Python; installing things system-wide is yucky (for a variety of reasons) nine times out of ten. We prefer light-weight virtualenv, others prefer solutions as robust as Vagrant.

If you add web.dispatch to the install_requires argument of the call to setup() in your application’s setup.py file, this dispatcher will be automatically installed and made available when your own application or library is installed. We recommend using “less than” version numbers to ensure there are no unintentional side-effects when updating. Use web.dispatch<3.1 to get all bugfixes for the current release, and web.dispatch<4.0 to get bugfixes and feature updates while ensuring that large breaking changes are not installed.

Development Version

Development build status. Development test coverage. Changes since last release. Github Issues Fork this project on Github.

Development takes place on GitHub in the web.dispatch project. Issue tracking, documentation, and downloads are provided there.

Installing the current development version requires Git, a distributed source code management system. If you have Git you can run the following to download and link the development version into your Python runtime:

git clone https://github.com/marrow/web.dispatch.git
pip install -e 'web.dispatch[development]'

You can then upgrade to the latest version at any time:

(cd web.dispatch; git pull; pip install -e '.[development]')

If you would like to make changes and contribute them back to the project, fork the GitHub project, make your changes, and submit a pull request. This process is beyond the scope of this documentation; for more information see GitHub’s documentation.

Version History

Version 3.0

  • First version. Numbering kept parallel with primary dispatchers.

License

web.dispatch has been released under the MIT Open Source license.

The MIT License

Copyright © 2009-2017 Alice Bevan-McGregor and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release files for web.dispatch 3.0.1

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

Source distribution (sdist)

Source distribution for web.dispatch 3.0.1
File Size Uploaded
web.dispatch-3.0.1.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for web.dispatch 3.0.1
File Interpreter ABI Platform
web.dispatch-3.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 23.6 kB

Release files / web.dispatch-3.0.1.tar.gz

Download URL web.dispatch-3.0.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
02169f90fa369eed7bedc794dd9d038b228b66d97056985beb85d630f64f4378
BLAKE2b-256 checksum
How to use checksums
78d72357fa30f1bd6f47dc92df2be3bc4c19136ec249424eeefbe49774f452b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / web.dispatch-3.0.1-py2.py3-none-any.whl

Download URL web.dispatch-3.0.1-py2.py3-none-any.whl
Size 15.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
83ae893de0fc7ab155051cacd10b1449ee4f829927eec8e84035a4cad14a3620
BLAKE2b-256 checksum
How to use checksums
9fe65f9aea8dd74091632366bf7341cb6b83092b8d649d3b43ea518cd30c6821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files

3.0.0

2 release files

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