Poort: The quick gateway.
Project description
Poort is a bundle of best-practices to quickly build web gateways.
Free software: MIT license
Documentation: http://documentation.creeer.io/poort/
Source-code: https://github.com/corverdevelopment/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.3.1.tar.gz
(26.7 kB
view hashes)
Built Distribution
Poort-0.3.1-py2.py3-none-any.whl
(17.1 kB
view hashes)
Close
Hashes for Poort-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 212aacf067a5aab7b514454e603238923c504c17d812c82b2808c7a3ba823afa |
|
MD5 | 9776bdd6ec2db7c1d9a15158d560b33c |
|
BLAKE2b-256 | eea5c06e5a464f3a0e06c0595bc90cfff7a7c604e8dbf32583de51a2e91d09a8 |