How To Install python3-oauth2 on Fedora 36

In this tutorial we learn how to install python3-oauth2 in Fedora 36. python3-oauth2 is Python support for improved oauth

Introduction

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

What is python3-oauth2

Oauth2 was originally forked from Leah Culver and Andy Smith’s oauth.py code. Some of the tests come from a fork by Vic Fryzel, while a revamped Request class and more tests were merged in from Mark Paschal’s fork. A number of notable differences exist between this code and its forefathers - 100% unit test coverage. - The DataStore object has been completely ripped out. While creating unit tests for the library I found several substantial bugs with the implementation and confirmed with Andy Smith that it was never fully baked. - Classes are no longer prefixed with OAuth. - The Request class now extends from dict. - The library is likely no longer compatible with Python 2.3. - The Client class works and extends from httplib2. It’s a thin wrapper that handles automatically signing any normal HTTP request you might wish to make.

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

Install python3-oauth2 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-oauth2 using dnf by running the following command:

sudo dnf -y install python3-oauth2

Install python3-oauth2 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-oauth2 using yum by running the following command:

sudo yum -y install python3-oauth2

How To Uninstall python3-oauth2 on Fedora 36

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

sudo dnf remove python3-oauth2

python3-oauth2 Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/oauth2
/usr/lib/python3.10/site-packages/oauth2-1.9.0.post1-py3.10.egg-info
/usr/lib/python3.10/site-packages/oauth2-1.9.0.post1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/oauth2-1.9.0.post1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/oauth2-1.9.0.post1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/oauth2-1.9.0.post1-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/oauth2-1.9.0.post1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/oauth2-1.9.0.post1-py3.10.egg-info/zip-safe
/usr/lib/python3.10/site-packages/oauth2/__init__.py
/usr/lib/python3.10/site-packages/oauth2/__pycache__
/usr/lib/python3.10/site-packages/oauth2/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/oauth2/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/oauth2/__pycache__/_compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/oauth2/__pycache__/_compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/oauth2/__pycache__/_version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/oauth2/__pycache__/_version.cpython-310.pyc
/usr/lib/python3.10/site-packages/oauth2/_compat.py
/usr/lib/python3.10/site-packages/oauth2/_version.py
/usr/lib/python3.10/site-packages/oauth2/clients
/usr/lib/python3.10/site-packages/oauth2/clients/__init__.py
/usr/lib/python3.10/site-packages/oauth2/clients/__pycache__
/usr/lib/python3.10/site-packages/oauth2/clients/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/oauth2/clients/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/oauth2/clients/__pycache__/imap.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/oauth2/clients/__pycache__/imap.cpython-310.pyc
/usr/lib/python3.10/site-packages/oauth2/clients/__pycache__/smtp.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/oauth2/clients/__pycache__/smtp.cpython-310.pyc
/usr/lib/python3.10/site-packages/oauth2/clients/imap.py
/usr/lib/python3.10/site-packages/oauth2/clients/smtp.py
/usr/share/doc/python3-oauth2
/usr/share/doc/python3-oauth2/PKG-INFO

References

Summary

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