How To Install python3-sqlalchemy on Debian 10
Introduction
In this tutorial we learn how to install python3-sqlalchemy
on Debian 10.
What is python3-sqlalchemy
python3-sqlalchemy is:
SQLAlchemy is an SQL database abstraction library for Python. Its strengths are:
- full power and flexibility of SQL. SQLAlchemy provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language.
- extremely easy to use for all the basic tasks, such as: accessing pooled connections, constructing SQL from Python expressions, finding object instances, and committing object modifications back to the database.
- powerful enough for complicated tasks, such as: eager load a graph of objects and their dependencies via joins; map recursive adjacency structures automatically; map objects to not just tables but to any arbitrary join or select statement; combine multiple tables together to load whole sets of otherwise unrelated objects from a single result set; commit entire graphs of object changes in one step.
- built to conform to what DBAs demand, including the ability to swap out generated SQL with hand-optimized statements, full usage of bind parameters for all literal values, fully transactionalized and consistent updates using Unit of Work.
- modular. Different parts of SQLAlchemy can be used independently of the rest, including the connection pool, SQL construction, and ORM. SQLAlchemy is constructed in an open style that allows plenty of customization, with an architecture that supports custom datatypes, custom SQL extensions, and ORM plugins which can augment or extend mapping functionality.
There are three methods to install python3-sqlalchemy
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-sqlalchemy 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-sqlalchemy
using apt-get
by running the following command:
sudo apt-get -y install python3-sqlalchemy
Install python3-sqlalchemy Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-sqlalchemy
using apt
by running the following command:
sudo apt -y install python3-sqlalchemy
Install python3-sqlalchemy 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-sqlalchemy
using aptitude
by running the following command:
sudo aptitude -y install python3-sqlalchemy
How To Uninstall python3-sqlalchemy on Debian 10
To uninstall only the python3-sqlalchemy
package we can use the following command:
sudo apt-get remove python3-sqlalchemy
Uninstall python3-sqlalchemy And Its Dependencies
To uninstall python3-sqlalchemy
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove python3-sqlalchemy
Remove python3-sqlalchemy Configurations and Data
To remove python3-sqlalchemy
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge python3-sqlalchemy
Remove python3-sqlalchemy configuration, data, and all of its dependencies
We can use the following command to remove python3-sqlalchemy
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-sqlalchemy
Dependencies
python3-sqlalchemy have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-sqlalchemy
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.