patroni package
Submodules
Module contents
Define general variables and functions for patroni
.
- var PATRONI_ENV_PREFIX
-
prefix for Patroni related configuration environment variables.
- var KUBERNETES_ENV_PREFIX
-
prefix for Kubernetes related configuration environment variables.
- var MIN_PSYCOPG2
-
minimum version of
psycopg2
required by Patroni to work. - var MIN_PSYCOPG3
-
minimum version of
psycopg
required by Patroni to work.- patroni.parse_version(version: str) → Tuple[ int, …] View on GitHub
-
Convert version from human-readable format to tuple of integers. + Note
Designed for easy comparison of software versions in Python. + Parameters:;; *version* – human-readable software version, e.g. `+2.5.4.dev1+``+ +``+(dt+``+ +``+dec+``+ +``+pq3+``+ +``+ext+``+ +``+lo64)+`. Returns:;; tuple of _version_ parts, each part as an integer. Example:;;
>>> parse_version('2.5.4.dev1 (dt dec pq3 ext lo64)') (2, 5, 4)
© Copyright 2015 Compose, Zalando SE. Revision 3d527f57
.
Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: master