Cortex-client is both a Python API and a Command-Line Interface (CLI) to interact with a cortex-server. The CLI actually uses the API.