How To Install python-toscawidgets on Debian 9

In this tutorial we learn how to install python-toscawidgets on Debian 9. python-toscawidgets is Python framework for building reusable web components

Introduction

In this tutorial we learn how to install python-toscawidgets on Debian 9.

What is python-toscawidgets

python-toscawidgets is:

ToscaWidgets is a system for creating re-usable web components, such as a popup calendar or a rich text editor.

In general, components consist of an HTML template, static resources (JavaScript, CSS, Images, etc.) and server-side code. ToscaWidgets allow these to be packaged into a “widget”, that a web developer can then easily use in their application.

This package also provides some contributions for ToscaWidgets, in particular:

  • tw.forms - web widgets for building and validating forms

There are three methods to install python-toscawidgets on Debian 9. 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-toscawidgets 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-toscawidgets using apt-get by running the following command:

sudo apt-get -y install python-toscawidgets

Install python-toscawidgets Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-toscawidgets

Install python-toscawidgets 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-toscawidgets using aptitude by running the following command:

sudo aptitude -y install python-toscawidgets

How To Uninstall python-toscawidgets on Debian 9

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

sudo apt-get remove python-toscawidgets

Uninstall python-toscawidgets And Its Dependencies

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

sudo apt-get -y autoremove python-toscawidgets

Remove python-toscawidgets Configurations and Data

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

sudo apt-get -y purge python-toscawidgets

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

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

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

Dependencies

python-toscawidgets have the following dependencies:

References

Summary

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