How To Install python-authkit on Ubuntu 18.04

In this tutorial we learn how to install python-authkit on Ubuntu 18.04. python-authkit is authentication and authorisation framework for Python WSGI applications

Introduction

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

What is python-authkit

python-authkit is:

AuthKit is a Python module that provides functionality for WSGI (web) applications to use authentication and authorisation.

  • Built for WSGI applications and middleware
  • Sophisticated and extensible permissions system
  • Built in support for HTTP basic, HTTP digest, form, cookie and OpenID authentication methods plus others.
  • Easily define users, passwords and roles
  • Designed to be totally extensible so you can use the components to integrate with a database, LDAP connection or your own custom system.
  • Plays nicely with the Pylons web framework.

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

sudo apt-get -y install python-authkit

Install python-authkit Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-authkit

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

sudo aptitude -y install python-authkit

How To Uninstall python-authkit on Ubuntu 18.04

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

sudo apt-get remove python-authkit

Uninstall python-authkit And Its Dependencies

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

sudo apt-get -y autoremove python-authkit

Remove python-authkit Configurations and Data

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

sudo apt-get -y purge python-authkit

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

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

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

References

Summary

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