How To Install python-rows on Ubuntu 18.04

In this tutorial we learn how to install python-rows on Ubuntu 18.04. python-rows is library to tabular data, no matter the format

Introduction

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

What is python-rows

python-rows is:

No matter in which format your tabular data is: python-rows will import it, automatically detect types and give you high-level Python objects so you can start working with the data instead of trying to parse it. It is also locale and unicode aware.

The library is composed by:

  • A common interface to tabular data (the Table class).
  • A set of plugins to populate Table objects CSV, XLS, HTML, TXT.
  • A set of common fields (such as BoolField, IntegerField) which know exactly how to serialize and deserialize data for each object type you’ll get.
  • A set of utilities (such as field type recognition) to help working with tabular data.
  • Access to the most used features: convert between formats, sum, join and sort tables. Just import rows and relax.

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

sudo apt-get -y install python-rows

Install python-rows Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-rows

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

sudo aptitude -y install python-rows

How To Uninstall python-rows on Ubuntu 18.04

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

sudo apt-get remove python-rows

Uninstall python-rows And Its Dependencies

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

sudo apt-get -y autoremove python-rows

Remove python-rows Configurations and Data

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

sudo apt-get -y purge python-rows

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

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

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

References

Summary

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