Python

In this section, we will delve into the details of the Circular Protocol official Python package.

Installation

It is possible to install the package directly from the repo hosted on GitHub:

git clone https://github.com/circular-protocol/circular-py.git

and then using pip

pip install circular-py/circular_protocol_api/.

Or directly via the PyPi repository with:

pip install circular_protocol_api

Example of usage

from circular_protocol_api import CircularProtocolAPI

circular = CircularProtocolAPI()
result = circular.getBlockchains()

Last updated