How To Install python3-bottle-sqlite on Fedora 36
Introduction
In this tutorial we learn how to install python3-bottle-sqlite
on Fedora 36.
What is python3-bottle-sqlite
Bottle-sqlite is a plugin that integrates SQLite3 with your Bottle application. It automatically connects to a database at the beginning of a request, passes the database handle to the route callback and closes the connection afterwards. To automatically detect routes that need a database connection, the plugin searches for route callbacks that require a db keyword argument (configurable) and skips routes that do not. This removes any overhead for routes that don’t need a database connection.
We can use yum
or dnf
to install python3-bottle-sqlite
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-bottle-sqlite.
Install python3-bottle-sqlite 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-bottle-sqlite
using dnf
by running the following command:
sudo dnf -y install python3-bottle-sqlite
Install python3-bottle-sqlite 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-bottle-sqlite
using yum
by running the following command:
sudo yum -y install python3-bottle-sqlite
How To Uninstall python3-bottle-sqlite on Fedora 36
To uninstall only the python3-bottle-sqlite
package we can use the following command:
sudo dnf remove python3-bottle-sqlite
python3-bottle-sqlite Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/__pycache__/bottle_sqlite.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/bottle_sqlite.cpython-310.pyc
/usr/lib/python3.10/site-packages/bottle_sqlite-0.1.3-py3.10.egg-info
/usr/lib/python3.10/site-packages/bottle_sqlite.py
/usr/share/doc/python3-bottle-sqlite
/usr/share/doc/python3-bottle-sqlite/PKG-INFO
References
Summary
In this tutorial we learn how to install python3-bottle-sqlite
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).