priority
A pure-Python implementation of the HTTP/2 priority tree
Decision gist · record as of 2026-08-14
Yes, if you are building or maintaining an HTTP/2 server or proxy that needs RFC 7540-compliant priority scheduling. The package has no dependencies, low install friction, and a permissive license. However, note that the last release was 2021-06-27 with no updates since; if you need active maintenance or support for very recent Python versions, verify compatibility first or consider whether the aging status affects your use case.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6.1 or later; supports CPython and PyPy.
- Low install friction with no runtime dependencies.
- Maintenance is aging—last release was 2021-06-27 and the repository has not been updated since then, though it remains unarchived and the package is marked Production/Stable.
License · maintenance · safety
MIT License (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2021-06-27 (1874 days) · last repo commit 2025-12-24 · 29 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,420,516 downloads/mo, #1,742 on PyPI
Alternatives
Verify before relying
from priority import PriorityTree
p = PriorityTree()
p.insert_stream(stream_id=1)
p.insert_stream(stream_id=3, depends_on=1)
for stream_id in p:
# send_data(stream_id)- Whether the package remains compatible with Python versions released after 2021 without explicit testing.
- Current real-world usage patterns and whether the aging maintenance status affects adoption in modern HTTP/2 stacks.
What it is and what it does
Priority is a pure-Python implementation of the HTTP/2 stream priority algorithm specified in RFC 7540 Section 5.3. It provides a priority tree data structure that servers can use to fairly schedule resource allocation across multiple concurrent HTTP/2 streams, respecting client-expressed preferences for stream weights and dependencies. The implementation is based on the H2O project's approach and is used by nghttp2.
The package exposes a simple API: insert streams into the tree with optional weights and dependencies, iterate over the tree to determine which stream should send data next, and call block/unblock/reprioritize methods to update the tree as stream states change. This allows servers to automatically emit stream data in conformance with RFC 7540 without manual priority logic.
Use it for
- HTTP/2 server implementations that need to schedule multiple concurrent streams fairly according to client priority hints.
- Proxies or load balancers that must respect HTTP/2 stream priorities when forwarding requests.
- Testing or validating HTTP/2 priority behavior in protocol implementations.
- Applications that need to simulate or understand HTTP/2 priority scheduling mechanics.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building or maintaining an HTTP/2 server or proxy that needs RFC 7540-compliant priority scheduling.
The package has no dependencies, low install friction, and a permissive license. However, note that the last release was 2021-06-27 with no updates since; if you need active maintenance or support for very recent Python versions, verify compatibility first or consider whether the aging status affects your use case.
Install
priority on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is aging—last release was 2021-06-27 and the repository has not been updated since then, though it remains unarchived and the package is marked Production/Stable.
Requires Python 3.6.1 or later; supports CPython and PyPy.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
from priority import PriorityTree
p = PriorityTree()
p.insert_stream(stream_id=1)
p.insert_stream(stream_id=3, depends_on=1)
for stream_id in p:
# send_data(stream_id)
Verify before relying
- Whether the package remains compatible with Python versions released after 2021 without explicit testing.
- Current real-world usage patterns and whether the aging maintenance status affects adoption in modern HTTP/2 stacks.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.6.1 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 1,874 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,420,516 / month, #1,742 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: priority-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “HTTP/2 priority tree”
- priorityImplements HTTP/2 stream priority scheduling according to RFC 7540,…
- HeapDictHeapDict is a mutable mapping that acts as a priority queue,…
- django-tasksProvides a backport of Django's built-in Tasks framework, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also h2 · hyperframe · hpack · jh2 · filigran-sseclient · taskiq-aio-pika · sentence-stream · jsonseq · pydocket · queuelib