Skip to main content

Pangea Client connects you to The First Immersive Web3 Environment

Project description

Pangea Client

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.


Getting started

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=xxxxx

Examples

Checkout the github repository separately for example code.


Setup

Before proceeding, poetry needs to be installed globally.

curl -sSL https://install.python-poetry.org | python3 -

⚠️ WARNING ⚠️

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 install

Running the Examples

poetry run python3 examples/arrow-blocks.py
poetry run python3 examples/jsonstream-status.py
poetry run python3 examples/jsonstream-blocks.py

or setup a venv shell with poetry first:

poetry shell

then you can run

python3 examples/arrow-blocks.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pangea_client-0.3.9.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pangea_client-0.3.9-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pangea_client-0.3.9.tar.gz.

File metadata

  • Download URL: pangea_client-0.3.9.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.7 Linux/6.11.0-19-generic

File hashes

Hashes for pangea_client-0.3.9.tar.gz
Algorithm Hash digest
SHA256 8817321cdf67bdc928f89f363128eea39ecf6bc5ac5920cd700c02a8038b51d2
MD5 1bf5e57d69d825a154ac6ae9a3752a3b
BLAKE2b-256 ae1978ff660bf7d54d66c25638d8592b2be96b3660addb02f2b70644f26be159

See more details on using hashes here.

File details

Details for the file pangea_client-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: pangea_client-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.7 Linux/6.11.0-19-generic

File hashes

Hashes for pangea_client-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 07b3fad345a205e5c7813e0d87b1e1ed51ea99fb725818d7d5502ab55af76b18
MD5 010ab94fb0c9ebe0eec55cb354b6dcec
BLAKE2b-256 9cf0a188effe6506c3af749323a18f620ebd79a266f9dbd5f73462ec7fd5acde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page