### Installing ethers-py with pip Source: https://github.com/elyase/ethers-py/blob/main/README.md Installs the ethers-py library using pip. It first upgrades pip itself, then installs the ethers package. ```bash pip install -U pip pip install ethers ``` -------------------------------- ### Setting up ethers-py Development Environment (Bash) Source: https://github.com/elyase/ethers-py/blob/main/README.md Sets up the development environment for ethers-py by installing development dependencies from requirements-dev.txt and building/installing the project using maturin. ```bash pip install -r requirements-dev.txt maturin develop ``` -------------------------------- ### Initializing HTTP Provider and Getting Block Number (Python) Source: https://github.com/elyase/ethers-py/blob/main/README.md Demonstrates how to initialize an HTTP provider using ethers-py and asynchronously fetch the latest block number from the Ethereum mainnet via Infura. ```python from ethers.providers import HTTPProvider provider = HTTPProvider("https://mainnet.infura.io/v3/your_infura_id") block_number = await provider.get_block_number() # 14429070 ``` -------------------------------- ### Connecting to Ethereum Node and Getting Block Number (Python) Source: https://github.com/elyase/ethers-py/blob/main/docs/source/index.md This snippet demonstrates how to initialize an HTTPProvider using ethers-py to connect to an Ethereum node (like Infura) and asynchronously fetch the latest block number. It requires the `ethers.providers.HTTPProvider` class. ```python from ethers.providers import HTTPProvider provider = HTTPProvider("https://mainnet.infura.io/v3/your_infura_id") block_number = await provider.get_block_number() # 14429070 ``` -------------------------------- ### Project Dependencies - Python Source: https://github.com/elyase/ethers-py/blob/main/requirements-dev.txt Specifies the necessary Python packages and their minimum or exact versions required for the project's development, testing, and documentation build processes. ```text pytest>=3.5.0 pytest-asyncio>=0.18.2 pip>=22.3 maturin>=0.13,<0.14 Sphinx==4.5.0 sphinx-press-theme==0.8.0 myst-parser==0.17.0 setuptools-rust==1.5.2 black ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.