Skip to main content

ape-infura: Infura Provider plugins for Ethereum-based networks

Project description

Quick Start

Infura Provider plugins for Ethereum-based networks

Dependencies

  • python3 version 3.8 or greater, python3-dev

Installation

via pip

You can install the latest release via pip:

pip install ape-infura

via setuptools

You can clone the repository and use setuptools for the most up-to-date version:

git clone https://github.com/ApeWorX/ape-infura.git
cd ape-infura
python3 setup.py install

Quick Usage

First, make sure you have one of the following environment variables set (it doesn't matter which one):

  • WEB3_INFURA_PROJECT_ID
  • WEB3_INFURA_API_KEY

Either in your current terminal session or in your root RC file (e.g. .bashrc), add the following:

export WEB3_INFURA_PROJECT_ID=MY_API_TOKEN

To use the Infura provider plugin in most commands, set it via the --network option:

ape console --network ethereum:goerli:infura

To connect to Infura from a Python script, use the networks top-level manager:

from ape import networks

with networks.parse_network_choice("ethereum:mainnet:infura") as provider:
    ...

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

ape-infura-0.5.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

ape_infura-0.5.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file ape-infura-0.5.0.tar.gz.

File metadata

  • Download URL: ape-infura-0.5.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.1 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.9.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.8.13

File hashes

Hashes for ape-infura-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d7308bd33416546e43ea346102a97d835308e14f120872910dc228e3685013b9
MD5 01064b2b957c75b6f65caf00d3ee3a53
BLAKE2b-256 f1e7d7d3375ad07afb78c4a1c57c3a78d85f86cd3477a178c6a105f97db5ab0f

See more details on using hashes here.

File details

Details for the file ape_infura-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ape_infura-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.1 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.9.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.8.13

File hashes

Hashes for ape_infura-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1e2771e5c4e17067fefd0970e9e5a59e7ce8aa6d631af08fd16dbfbdca27b24
MD5 db8b2c8b7c2229ad6c352f7423260526
BLAKE2b-256 30c059502c9f7c371f975982c539a15ccda7ce9adbfe9f6c31d9e5f10d5c4e6c

See more details on using hashes here.

Supported by

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