Copyright ©2020 Apache Software Foundation. All Rights Reserved.
The Phoenix Query Server is an JDBC over HTTP abstraction. The Phoenix Query Server proxies the standard Phoenix JDBC driver and provides a backwards-compatible wire protocol to invoke that JDBC driver. This is all done via the Apache Avatica project (sub-project of Apache Calcite).
The reference client implementation for PQS is a “thin” JDBC driver which can communicate with PQS. There are drivers in other languages which exist in varying levels of maturity including Python, Golang, and .NET.
The Python driver is maintained by the Phoenix project, and is available in the python-phoenixdb directory of the phoenix-queryserver repository.