{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http"}],"enrichment":{"capability":"Implements HTTP/2 stream priority scheduling according to RFC 7540, allowing servers to allocate resources fairly across multiple concurrent streams based on client-expressed preferences.","skillfed_tags":["http2","stream-scheduling"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"priority","links":{"html":"https://skillfed.io/packages/priority","md":"https://skillfed.io/packages/priority.md","pypi":"https://pypi.org/project/priority/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2021-06-27","license_spdx":null,"license_treatment":"permissive","name":"priority","python_support":"supports_current","summary":"A pure-Python implementation of the HTTP/2 priority tree"},"popularity":{"monthly_downloads":7420516,"position":1742,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
