ape-infura


Nameape-infura JSON
Version 0.7.3 PyPI version JSON
download
home_pagehttps://github.com/ApeWorX/ape-infura
Summaryape-infura: Infura Provider plugins for Ethereum-based networks
upload_time2024-05-02 19:02:19
maintainerNone
docs_urlNone
authorApeWorX Ltd.
requires_python<4,>=3.8
licenseApache-2.0
keywords ethereum
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Quick Start

Use the [Infura](https://infura.io/) provider plugin to interact with blockchains via APIs.
This plugin supports the following ecosystems:

- Ethereum
- Polygon
- Arbitrum
- Optimism
- Blast
- ~~Linea~~ (awaiting ape-linea update)

## Dependencies

- [python3](https://www.python.org/downloads) version 3.8 up to 3.12.

## Installation

### via `pip`

You can install the latest release via [`pip`](https://pypi.org/project/pip/):

```bash
pip install ape-infura
```

### via `setuptools`

You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:

```bash
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:

```bash
export WEB3_INFURA_PROJECT_ID=MY_API_TOKEN
```

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

```bash
ape console --network ethereum:sepolia:infura
```

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

```python
from ape import networks

with networks.parse_network_choice("ethereum:mainnet:infura") as provider:
    # Also, access the websocket URI:
    print(provider.ws_uri)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ApeWorX/ape-infura",
    "name": "ape-infura",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.8",
    "maintainer_email": null,
    "keywords": "ethereum",
    "author": "ApeWorX Ltd.",
    "author_email": "admin@apeworx.io",
    "download_url": "https://files.pythonhosted.org/packages/51/1d/7540c85c53b128bdf4f13b6ce1ae52aad91d5cc95d40b485a7a650ee1e03/ape-infura-0.7.3.tar.gz",
    "platform": null,
    "description": "# Quick Start\n\nUse the [Infura](https://infura.io/) provider plugin to interact with blockchains via APIs.\nThis plugin supports the following ecosystems:\n\n- Ethereum\n- Polygon\n- Arbitrum\n- Optimism\n- Blast\n- ~~Linea~~ (awaiting ape-linea update)\n\n## Dependencies\n\n- [python3](https://www.python.org/downloads) version 3.8 up to 3.12.\n\n## Installation\n\n### via `pip`\n\nYou can install the latest release via [`pip`](https://pypi.org/project/pip/):\n\n```bash\npip install ape-infura\n```\n\n### via `setuptools`\n\nYou can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:\n\n```bash\ngit clone https://github.com/ApeWorX/ape-infura.git\ncd ape-infura\npython3 setup.py install\n```\n\n## Quick Usage\n\nFirst, make sure you have one of the following environment variables set (it doesn't matter which one):\n\n- WEB3_INFURA_PROJECT_ID\n- WEB3_INFURA_API_KEY\n\nEither in your current terminal session or in your root RC file (e.g. `.bashrc`), add the following:\n\n```bash\nexport WEB3_INFURA_PROJECT_ID=MY_API_TOKEN\n```\n\nTo use the Infura provider plugin in most commands, set it via the `--network` option:\n\n```bash\nape console --network ethereum:sepolia:infura\n```\n\nTo connect to Infura from a Python script, use the `networks` top-level manager:\n\n```python\nfrom ape import networks\n\nwith networks.parse_network_choice(\"ethereum:mainnet:infura\") as provider:\n    # Also, access the websocket URI:\n    print(provider.ws_uri)\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "ape-infura: Infura Provider plugins for Ethereum-based networks",
    "version": "0.7.3",
    "project_urls": {
        "Homepage": "https://github.com/ApeWorX/ape-infura"
    },
    "split_keywords": [
        "ethereum"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e3d33e5c7bb766bb556a1f9b29016fd089ef4fa5bebac0b1b2d00f858d1c865",
                "md5": "91ac82099a75d9600419789931c43bce",
                "sha256": "a8ba3b150f82a1ac39f41a844e57654255bb80fdcf4dfc544ee7aed32b5a9753"
            },
            "downloads": -1,
            "filename": "ape_infura-0.7.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "91ac82099a75d9600419789931c43bce",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.8",
            "size": 9454,
            "upload_time": "2024-05-02T19:02:17",
            "upload_time_iso_8601": "2024-05-02T19:02:17.466092Z",
            "url": "https://files.pythonhosted.org/packages/0e/3d/33e5c7bb766bb556a1f9b29016fd089ef4fa5bebac0b1b2d00f858d1c865/ape_infura-0.7.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "511d7540c85c53b128bdf4f13b6ce1ae52aad91d5cc95d40b485a7a650ee1e03",
                "md5": "353515eb80a7fbd59897622ccdad663d",
                "sha256": "eaad0c76560fefa0c2efd137034a510d8ff6e2f3ed6a4463ceb6bcb17fda6a3f"
            },
            "downloads": -1,
            "filename": "ape-infura-0.7.3.tar.gz",
            "has_sig": false,
            "md5_digest": "353515eb80a7fbd59897622ccdad663d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 16631,
            "upload_time": "2024-05-02T19:02:19",
            "upload_time_iso_8601": "2024-05-02T19:02:19.282038Z",
            "url": "https://files.pythonhosted.org/packages/51/1d/7540c85c53b128bdf4f13b6ce1ae52aad91d5cc95d40b485a7a650ee1e03/ape-infura-0.7.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-02 19:02:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ApeWorX",
    "github_project": "ape-infura",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ape-infura"
}
        
Elapsed time: 0.61643s