How To Install python3-cheetah on Debian 10

Learn how to install python3-cheetah on Debian 10 with this tutorial. python3-cheetah is text-based template engine and Python code generator (Python 3)

Introduction

In this tutorial we learn how to install python3-cheetah on Debian 10.

What is python3-cheetah

python3-cheetah is:

Cheetah can be used as a standalone templating utility or referenced as a library from other Python applications. It has many potential uses, but web developers looking for a viable alternative to ASP, JSP, PHP and PSP are expected to be its principle user group.

Features:

  • Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other text-based format.
  • Cleanly separates content, graphic design, and program code.
  • Blends the power and flexibility of Python with a simple template language that non-programmers can understand.
  • Gives template writers full access to any Python data structure, module, function, object, or method in their templates.
  • Makes code reuse easy by providing an object-orientated interface to templates that is accessible from Python code or other Cheetah templates. One template can subclass another and selectively reimplement sections of it.
  • Provides a simple, yet powerful, caching mechanism that can dramatically improve the performance of a dynamic website.
  • Compiles templates into optimized, yet readable, Python code.

This package contains the Python 3 module.

There are three methods to install python3-cheetah 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 python3-cheetah 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-cheetah using apt-get by running the following command:

sudo apt-get -y install python3-cheetah

Install python3-cheetah Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-cheetah

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

sudo aptitude -y install python3-cheetah

How To Uninstall python3-cheetah on Debian 10

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

sudo apt-get remove python3-cheetah

Uninstall python3-cheetah And Its Dependencies

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

sudo apt-get -y autoremove python3-cheetah

Remove python3-cheetah Configurations and Data

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

sudo apt-get -y purge python3-cheetah

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

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

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

Dependencies

python3-cheetah have the following dependencies:

References

Summary

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