How To Install python-pushy on Debian 10

Learn how to install python-pushy on Debian 10 with this tutorial. python-pushy is Simple interface for connecting two python interpreters

Introduction

In this tutorial we learn how to install python-pushy on Debian 10.

What is python-pushy

python-pushy is:

Pushy provides applicaton developers with a simple interface for connecting two Python interpreters, either on the local host, or over a network. Once connected, the interpreters may access objects in each other, as if they were local. Where objects are mutable (i.e. may change over time), then objects are ??proxied??. This means that a local object is created that mirrors the remote object, and sends all local function/attribute access calls to the remote object. Special care has been taken to proxy builtin types properly, so that proxied objects may be passed to Python??s various builtin functions.

Pushy contains multiple transports for connecting interpreters, as well as a means for users to provide their own transport modules. Builtin transports are provided for connecting to local interpreters, and to remote interpreters via SSH, named pipes (using SMB) on Microsoft Windows, and over plain old TCP/IP sockets (using daemon).

One of the most useful features of Pushy is that it will take care of starting the target Python interpreter for you, depending on which transport is selected. Of particular note, the SSH transport will start a remote Python interpreter and initialise a Pushy connection, without having Pushy installed on the remote system. Similarly, the local transport will create a new Python interpreter on the local host.

There are three methods to install python-pushy on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-pushy Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python-pushy

Install python-pushy Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pushy

Install python-pushy Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install python-pushy

How To Uninstall python-pushy on Debian 10

To uninstall only the python-pushy package we can use the following command:

sudo apt-get remove python-pushy

Uninstall python-pushy And Its Dependencies

To uninstall python-pushy and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove python-pushy

Remove python-pushy Configurations and Data

To remove python-pushy configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-pushy

Remove python-pushy configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-pushy

Dependencies

python-pushy have the following dependencies:

References

Summary

In this tutorial we learn how to install python-pushy package on Debian 10 using different package management tools: apt, apt-get and aptitude.