How To Install python3-priority on Kali Linux

In this tutorial we learn how to install python3-priority on Kali Linux. python3-priority is pure-Python implementation of the HTTP/2 priority tree (Python 3)

Introduction

In this tutorial we learn how to install python3-priority on Kali Linux.

What is python3-priority

python3-priority is:

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 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 package is for Python 3.

There are three methods to install python3-priority on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-priority Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python3-priority using apt-get by running the following command:

sudo apt-get -y install python3-priority

Install python3-priority Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-priority using apt by running the following command:

sudo apt -y install python3-priority

Install python3-priority Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python3-priority using aptitude by running the following command:

sudo aptitude -y install python3-priority

How To Uninstall python3-priority on Kali Linux

To uninstall only the python3-priority package we can use the following command:

sudo apt-get remove python3-priority

Uninstall python3-priority And Its Dependencies

To uninstall python3-priority and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove python3-priority

Remove python3-priority Configurations and Data

To remove python3-priority configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge python3-priority

Remove python3-priority configuration, data, and all of its dependencies

We can use the following command to remove python3-priority configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-priority

Dependencies

python3-priority have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-priority package on Kali Linux using different package management tools: apt, apt-get and aptitude.