How it works...
We begin by ensuring multiple popular libraries are available. After following so many recipes in this book, it's extremely likely that many (or even all) of these libraries are already installed. That said, it never hurts to be certain!
First in the list is Python's psycopg2 Postgres interface layer. Patroni uses this to connect to Postgres for various operations, and, because it is so commonly used, it's already packaged by our distribution. Python libraries tend to evolve extremely quickly, so this isn't always possible.
Next, we install pip, a Python-specific installation utility that can download and install Python packages from the Python Package Index (PyPI). This is very similar to the PostgreSQL Extension Network, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access