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.4.tar.gz
(27.8 kB
view details)
Built Distribution
Poort-0.3.4-py2.py3-none-any.whl
(17.8 kB
view details)
File details
Details for the file Poort-0.3.4.tar.gz
.
File metadata
- Download URL: Poort-0.3.4.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1867cddfcf5bc6fea63d190f486854aa6c5584f10be5175b7a8b3d71640a9848 |
|
MD5 | d3a3f7d0cddad28ae802e84f5aa4b56a |
|
BLAKE2b-256 | 79b427ca13c5451483febf6f800955ba53d51cb5adffdb15cd1a18d40961e9c9 |
Provenance
File details
Details for the file Poort-0.3.4-py2.py3-none-any.whl
.
File metadata
- Download URL: Poort-0.3.4-py2.py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57182e1668bc59e5ee1525c52ed3b2a1f3aa8058debb87ce58eb15b69dfd7f9f |
|
MD5 | 6b5e93b7a393e8ce41a5c1d420a1d788 |
|
BLAKE2b-256 | 4a738b5c582c838a3a9b0eb3c894992416f4366bd54b97635b18d602b3949732 |