Installation¶
Prerequisites¶
You may need to install the Python and database library develompment headers.
On Debian/Ubuntu derivates for example like this:
# PostgreSQL
sudo apt install python3-dev libpq-dev
# MySQL/MariaDB
sudo apt install python3-dev default-libmysqlclient-dev
Installing quma¶
If you like to use quma with SQLite Python has everything covered and you only need to install quma itself:
pip install quma
To connect to a PostgreSQL or MySQL/MariaDB database you need to install the matching driver:
# PostgreSQL
pip install quma psycopg2
# or
pip install quma psycopg2cffi
# MySQL/MariaDB
pip install quma mysqlclient
Templates for dynamic SQL¶
You need to install the Mako template library if you want to use dynamic sql scripts using templates.
pip install mako
Development¶
git clone https://github.com/ebenefuenf/quma
cd quma
pip install -e '.[test,docs,templates,postgres,mysql]'