How To Install python-formalchemy on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-formalchemy
on Ubuntu 18.04.
What is python-formalchemy
python-formalchemy is:
FormAlchemy greatly speeds development with SQLAlchemy mapped classes (models) in a HTML forms environment.
FormAlchemy eliminates boilerplate by autogenerating HTML input fields from a given model. FormAlchemy will try to figure out what kind of HTML code should be returned by introspecting the model’s properties and generate ready-to-use HTML code that will fit the developer’s application.
Of course, FormAlchemy can’t figure out everything, i.e, the developer might want to display only a few columns from the given model. Thus, FormAlchemy is also highly customizable.
There are three methods to install python-formalchemy
on Ubuntu 18.04. 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-formalchemy 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-formalchemy
using apt-get
by running the following command:
sudo apt-get -y install python-formalchemy
Install python-formalchemy Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-formalchemy
using apt
by running the following command:
sudo apt -y install python-formalchemy
Install python-formalchemy 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-formalchemy
using aptitude
by running the following command:
sudo aptitude -y install python-formalchemy
How To Uninstall python-formalchemy on Ubuntu 18.04
To uninstall only the python-formalchemy
package we can use the following command:
sudo apt-get remove python-formalchemy
Uninstall python-formalchemy And Its Dependencies
To uninstall python-formalchemy
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-formalchemy
Remove python-formalchemy Configurations and Data
To remove python-formalchemy
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-formalchemy
Remove python-formalchemy configuration, data, and all of its dependencies
We can use the following command to remove python-formalchemy
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-formalchemy
References
Summary
In this tutorial we learn how to install python-formalchemy
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.