How To Install python-falcon on Debian 9
Introduction
In this tutorial we learn how to install python-falcon
on Debian 9.
What is python-falcon
python-falcon is:
Falcon is a high-performance Python framework for building cloud APIs. It encourages the REST architectural style, and tries to do as little as possible while remaining highly effective.
Unlike other Python web frameworks, Falcon won’t bottleneck your API’s performance under highly concurrent workloads. Many frameworks max out at serving simple “hello world” requests at a few thousand req/sec, while Falcon can easily serve many more on the same hardware.
Falcon isn’t very opinionated. In other words, the framework leaves a lot of decisions and implementation details to you.
Features:
- Intuitive routing via URI templates and resource classes
- Easy access to headers and bodies through request and response classes
- Idiomatic HTTP error responses via a handy exception base class
- DRY request processing using global, resource, and method hooks
- Snappy unit testing through WSGI helpers and mocks
- 20% speed boost when Cython is available
- Python 2.6, Python 2.7, PyPy and Python 3.3 support
This package provides the Python 2.x module.
There are three methods to install python-falcon
on Debian 9. 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-falcon 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-falcon
using apt-get
by running the following command:
sudo apt-get -y install python-falcon
Install python-falcon Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-falcon
using apt
by running the following command:
sudo apt -y install python-falcon
Install python-falcon 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 python-falcon
using aptitude
by running the following command:
sudo aptitude -y install python-falcon
How To Uninstall python-falcon on Debian 9
To uninstall only the python-falcon
package we can use the following command:
sudo apt-get remove python-falcon
Uninstall python-falcon And Its Dependencies
To uninstall python-falcon
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-falcon
Remove python-falcon Configurations and Data
To remove python-falcon
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-falcon
Remove python-falcon configuration, data, and all of its dependencies
We can use the following command to remove python-falcon
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-falcon
Dependencies
python-falcon have the following dependencies:
References
Summary
In this tutorial we learn how to install python-falcon
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.