pangea-client is a set of libraries for different languages to interface with Pangea API.
When using python the data is delivered in Arrow or JSON, developers are required to provide their own types.
Access to the API via pangea-client requires credentials, please apply for access first.
Once credentials are issued, they will need to be set in the environment variables.
The easiest way to use these credentials is to create a .env file in the project root folder and populate it like so:
PANGEA_USERNAME=xxxxx
PANGEA_PASSWORD=xxxxxCheckout the github repository separately for example code.
Before proceeding, poetry needs to be installed globally.
curl -sSL https://install.python-poetry.org | python3 -DO NOT install using pip, only via the above script.
After poetry is installed, cd to the directory where you cloned the repo (python sub-folder for megarepo) and run:
poetry installpoetry run python3 examples/arrow-blocks.py
poetry run python3 examples/jsonstream-status.py
poetry run python3 examples/jsonstream-blocks.pyor setup a venv shell with poetry first:
poetry shellthen you can run
python3 examples/arrow-blocks.py