Skip to main content

Poort is a bundle of best-practices to quickly build web gateways.

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.

Authors

Poort is written and maintained by Nils Corver.

A full list of contributors can be found in GitHub’s overview.

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)

Source distribution for Poort 0.3.4
File Size Uploaded
Poort-0.3.4.tar.gz 27.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Poort 0.3.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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