Poort: The quick gateway.
Project description
Poort is a bundle of best-practices to quickly build web gateways.
Free software: MIT license
Documentation: http://pythonhosted.org/poort
A quick example:
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from poort import Gate, Request, Response gate = Gate() def application(environ, start_response): with gate(environ): request = gate.request if request.path == '/': response = Response('Hallo world!') else: response = Response('Whoops, not found.', status=404) return response(request, start_response)
Features
Gate, which provides a simple getter/setter interface for local variables.
Request, a very simple object containing all the information about the request.
Response, a versatile but simple object that can respond to the requester.
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
Poort-0.2.3.tar.gz
(23.9 kB
view hashes)
Built Distribution
Poort-0.2.3-py2.py3-none-any.whl
(14.9 kB
view hashes)
Close
Hashes for Poort-0.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b7ba5eaa1712c61edb16b50c8300d288a6668ad30056e171e5c713440d6057a |
|
MD5 | b282e1a16cc6f5fe6ccebeea7d014177 |
|
BLAKE2b-256 | e0eb21294ec3f8dd16bcb8054ec7fa8dfc2e718d31776303dbff2f268ce6c7a8 |