How To Install python-storm on Ubuntu 18.04

In this tutorial we learn how to install python-storm on Ubuntu 18.04. python-storm is object-relational mapper (ORM) for Python

Introduction

In this tutorial we learn how to install python-storm on Ubuntu 18.04.

What is python-storm

python-storm is:

Storm is an object-relation mapper (ORM) for the Python language. In simple terms, that kind of system allows rows from a relational database to be seen as objects in an object-oriented language like Python.

Features:

  • Clean and lightweight API offers a short learning curve and long- erm maintainability.
  • Storm is developed in a test-driven manner. An untested line of code is considered a bug.
  • Storm needs no special class constructors, nor imperative base classes.
  • Storm is well designed (different classes have very clear boundaries, with small and clean public APIs).
  • Designed from day one to work both with thin relational databases, such as SQLite, and big iron systems like PostgreSQL and MySQL.
  • Storm is easy to debug, since its code is written with a KISS principle, and thus is easy to understand.
  • Designed from day one to work both at the low end, with trivial small databases, and the high end, with applications accessing billion row tables and committing to multiple database backends.
  • It’s very easy to write and support backends for Storm (current backends have around 100 lines of code).

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

sudo apt-get -y install python-storm

Install python-storm Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-storm

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

sudo aptitude -y install python-storm

How To Uninstall python-storm on Ubuntu 18.04

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

sudo apt-get remove python-storm

Uninstall python-storm And Its Dependencies

To uninstall python-storm and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-storm

Remove python-storm Configurations and Data

To remove python-storm configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-storm

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

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

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

References

Summary

In this tutorial we learn how to install python-storm package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.