How To Install python3-sanction on Fedora 36

In this tutorial we learn how to install python3-sanction in Fedora 36. python3-sanction is A simple, lightweight OAuth2 client

Introduction

In this tutorial we learn how to install python3-sanction on Fedora 36.

What is python3-sanction

python-sanction is a lightweight, dead simple client implementation of the OAuth2 protocol. - Variations on OAuth2 client implementation range from a few hundred LOC to thousands. In a Pythonic world, there’s absolutely no need for this when simply dealing with the client side of the spec. Currently, sanction sits at a whopping 65 LOC, one class. This makes the library tremendously easy to grok. - Most providers have varying levels of diversion from the official spec. The goal with this library is to either handle these diversions natively, or expose a method to allow client code to deal with it efficiently and effectively. - Three of the four OAuth2 flows should be supported by this library. Currently, only authorization code and client credential flows have been tested due to lack of other (known) implementations. sanction has been tested with the following OAuth2 providers * Facebook (include the test API) * Google * Foursquare * bitly * GitHub * StackExchange * Instagram * DeviantArt

We can use yum or dnf to install python3-sanction on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-sanction.

Install python3-sanction on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-sanction using dnf by running the following command:

sudo dnf -y install python3-sanction

Install python3-sanction on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-sanction using yum by running the following command:

sudo yum -y install python3-sanction

How To Uninstall python3-sanction on Fedora 36

To uninstall only the python3-sanction package we can use the following command:

sudo dnf remove python3-sanction

python3-sanction Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/sanction
/usr/lib/python3.10/site-packages/sanction-0.3.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/sanction-0.3.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/sanction-0.3.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/sanction-0.3.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/sanction-0.3.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/sanction/__init__.py
/usr/lib/python3.10/site-packages/sanction/__pycache__
/usr/lib/python3.10/site-packages/sanction/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sanction/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/sanction/__pycache__/client.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sanction/__pycache__/client.cpython-310.pyc
/usr/lib/python3.10/site-packages/sanction/client.py
/usr/share/doc/python3-sanction
/usr/share/doc/python3-sanction/LICENSE.txt
/usr/share/doc/python3-sanction/README.rst

References

Summary

In this tutorial we learn how to install python3-sanction on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).