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.
Metadata
Release files for Poort 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Poort-0.3.4.tar.gz | 27.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Poort-0.3.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 45.5 kB
Release files / Poort-0.3.4.tar.gz
| Download URL | Poort-0.3.4.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1867cddfcf5bc6fea63d190f486854aa6c5584f10be5175b7a8b3d71640a9848
|
|
BLAKE2b-256 checksum How to use checksums |
79b427ca13c5451483febf6f800955ba53d51cb5adffdb15cd1a18d40961e9c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Poort-0.3.4-py2.py3-none-any.whl
| Download URL | Poort-0.3.4-py2.py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
57182e1668bc59e5ee1525c52ed3b2a1f3aa8058debb87ce58eb15b69dfd7f9f
|
|
BLAKE2b-256 checksum How to use checksums |
4a738b5c582c838a3a9b0eb3c894992416f4366bd54b97635b18d602b3949732
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |