py-priority: Import py-priority-1.3.0 as wip/py-priority

Priority is a pure-Python implementation of the priority logic for HTTP/2, set
out in RFC 7540 Section 5.3 (Stream Priority). This logic allows for clients
to express a preference for how the server allocates its (limited) resources to
the many outstanding HTTP requests that may be running over a single HTTP/2
connection.

Specifically, this Python implementation uses a variant of the implementation
used in the excellent H2O project. This original implementation is also the
inspiration for nghttp2's priority implementation, and generally produces a
very clean and even priority stream. The only notable changes from H2O's
implementation are small modifications to allow the priority implementation to
work cleanly as a separate implementation, rather than being embedded in a
HTTP/2 stack directly.

While priority information in HTTP/2 is only a suggestion, rather than an
enforceable constraint, where possible servers should respect the priority
requests of their clients.
This commit is contained in:
Leonardo Taccari 2018-06-28 01:21:04 +02:00
parent f79f91d3fa
commit 2213cf1a3e
5 changed files with 51 additions and 0 deletions

View File

@ -3544,6 +3544,7 @@ SUBDIR+= py-prel
SUBDIR+= py-premailer
SUBDIR+= py-print
SUBDIR+= py-prioritized-methods
SUBDIR+= py-priority
SUBDIR+= py-processing
SUBDIR+= py-prody
SUBDIR+= py-professor

17
py-priority/DESCR Normal file
View File

@ -0,0 +1,17 @@
Priority is a pure-Python implementation of the priority logic for HTTP/2, set
out in RFC 7540 Section 5.3 (Stream Priority). This logic allows for clients
to express a preference for how the server allocates its (limited) resources to
the many outstanding HTTP requests that may be running over a single HTTP/2
connection.
Specifically, this Python implementation uses a variant of the implementation
used in the excellent H2O project. This original implementation is also the
inspiration for nghttp2's priority implementation, and generally produces a
very clean and even priority stream. The only notable changes from H2O's
implementation are small modifications to allow the priority implementation to
work cleanly as a separate implementation, rather than being embedded in a
HTTP/2 stack directly.
While priority information in HTTP/2 is only a suggestion, rather than an
enforceable constraint, where possible servers should respect the priority
requests of their clients.

16
py-priority/Makefile Normal file
View File

@ -0,0 +1,16 @@
# $NetBSD$
DISTNAME= priority-1.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/priority/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://python-hyper.org/priority/
COMMENT= Pure-Python implementation of the HTTP/2 priority tree
LICENSE= mit
USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

11
py-priority/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $NetBSD$
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/priority/__init__.py
${PYSITELIB}/priority/__init__.pyc
${PYSITELIB}/priority/__init__.pyo
${PYSITELIB}/priority/priority.py
${PYSITELIB}/priority/priority.pyc
${PYSITELIB}/priority/priority.pyo

6
py-priority/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (priority-1.3.0.tar.gz) = 123ceeef0a899d52d790d756f032f655d645d135
RMD160 (priority-1.3.0.tar.gz) = 65e0bab05dd5452489c266f7405dcf4ce5801ed2
SHA512 (priority-1.3.0.tar.gz) = cefb13b15e99ef98c37fdd1486466c9e1d7d04b4574cbca1665fde7b7b44cc7d66964bed41184315a9b51bd6f9d0e02bbe113bfa004a754ac270170309b71e0a
Size (priority-1.3.0.tar.gz) = 13827 bytes