How To Install python3-prettyprinter on Fedora 36

In this tutorial we learn how to install python3-prettyprinter in Fedora 36. python3-prettyprinter is Syntax-highlighting, declarative and composable pretty printer

Introduction

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

What is python3-prettyprinter

Syntax-highlighting, declarative and composable pretty printer. Drop in replacement for the standard library pprint prettyprinter in your imports. Uses a modified Wadler-Leijen layout algorithm for optimal formatting. Write pretty printers for your own types with a dead simple, declarative interface.

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

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

sudo dnf -y install python3-prettyprinter

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

sudo yum -y install python3-prettyprinter

How To Uninstall python3-prettyprinter on Fedora 36

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

sudo dnf remove python3-prettyprinter

python3-prettyprinter Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/prettyprinter
/usr/lib/python3.10/site-packages/prettyprinter-0.17.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/prettyprinter-0.17.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/prettyprinter-0.17.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/prettyprinter-0.17.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/prettyprinter-0.17.0-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/prettyprinter-0.17.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/prettyprinter-0.17.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/prettyprinter/__init__.py
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/color.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/color.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/doc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/doc.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/doctypes.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/doctypes.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/layout.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/layout.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/pretty_stdlib.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/pretty_stdlib.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/prettyprinter.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/prettyprinter.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/render.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/render.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/sdoctypes.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/sdoctypes.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/syntax.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/syntax.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/color.py
/usr/lib/python3.10/site-packages/prettyprinter/doc.py
/usr/lib/python3.10/site-packages/prettyprinter/doctypes.py
/usr/lib/python3.10/site-packages/prettyprinter/extras
/usr/lib/python3.10/site-packages/prettyprinter/extras/__init__.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/attrs.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/attrs.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/dataclasses.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/dataclasses.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/django.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/django.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/ipython.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/ipython.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/ipython_repr_pretty.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/ipython_repr_pretty.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/numpy.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/numpy.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/python.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/python.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/requests.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/__pycache__/requests.cpython-310.pyc
/usr/lib/python3.10/site-packages/prettyprinter/extras/attrs.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/dataclasses.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/django.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/ipython.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/ipython_repr_pretty.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/numpy.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/python.py
/usr/lib/python3.10/site-packages/prettyprinter/extras/requests.py
/usr/lib/python3.10/site-packages/prettyprinter/layout.py
/usr/lib/python3.10/site-packages/prettyprinter/pretty_stdlib.py
/usr/lib/python3.10/site-packages/prettyprinter/prettyprinter.py
/usr/lib/python3.10/site-packages/prettyprinter/render.py
/usr/lib/python3.10/site-packages/prettyprinter/sdoctypes.py
/usr/lib/python3.10/site-packages/prettyprinter/syntax.py
/usr/lib/python3.10/site-packages/prettyprinter/utils.py
/usr/share/doc/python3-prettyprinter
/usr/share/doc/python3-prettyprinter/AUTHORS.rst
/usr/share/doc/python3-prettyprinter/HISTORY.rst
/usr/share/doc/python3-prettyprinter/README.rst
/usr/share/licenses/python3-prettyprinter
/usr/share/licenses/python3-prettyprinter/LICENSE

References

Summary

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