semvec/pypi-packages huggingface dataset:
multicall3 0.1.4
Python 3 interface Mutlicall3 smart contract
License: MIT
Requires Python: >=3.8

# multicall3.py

Python 3 interface for [Multicall3](https://www.multicall3.com/).

## Installation

Install via pip:

```shell
pip install multicall3
```

Install via [pdm](https://pdm-project.org/):

```shell
pdm add multicall3
```

## Example

```python
from multicall3 import Multicall3
from web3 import Web3, AsyncWeb3, AsyncHTTPProvider
import asyncio

ERC20_ABI = [
    {
        "constant": True,
        "inputs": [],
        "name": "name",
        "outputs": [{"name": "", "type": "string"}],
        "payable": False,
        "stateMutability": "view",
        "type": "function",
    },
    {
        "constant": True,
        "inputs": [],
        "name": "decimals",
        "outputs": [{"name": "", "type": "uint8"}],
        "payable": False,
        "stateMutability": "view",
        "type": "function",
    },
    {
        "constant": True,
        "inputs": [],
        "name": "symbol",
        "outputs": [{"name": "", "type": "string"}],
        "payable": False,
        "stateMutability": "view",
        "type": "function",
    }
]

async def main():
  w3 = AsyncWeb3(AsyncHTTPProvider("https://ethereum.publicnode.com"))
  multicall3 = Multicall3(w3=w3)
  usdc_contract = w3.eth.contract(
      address=Web3.to_checksum_address("0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48"),
      abi=ERC20_ABI,
  )

  results = await multicall3.aggregate3(
      usdc_contract.functions.name(),
      usdc_contract.functions.symbol(),
      usdc_contract.functions.decimals(),
  )
  assert results[0] == "USD Coin"
  assert results[1] == "USDC"
  assert results[2] == 6

asyncio.run(main())
```

## Contributing

Install `pdm` using [pipx](https://github.com/pypa/pipx):

```shell
pipx install pdm --python $(which python)
```

Install dependencies:

```shell
pdm install
```

Activate the virtualenv:

```shell
$(pdm venv activate)
```

Run the test:

```shell
pytest
```
PyDonno 1.2.4
All my packages
License: MIT

# PyDonno



This is a single PyPI package to install all my packages.



## Install requirements (only needed on Linux)





sudo apt install ffmpeg libsm6 libxext6 nasm python3-tk wget firefox-esr -y

wget https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz # for yt2mp4

sudo tar xvzf geckodriver-v0.30.0-linux64.tar.gz -C /usr/bin/

chmod +x /usr/bin/geckodriver

rm geckodriver-v0.30.0-linux64.tar.gz





## To use



Just install the package.



### From PyPI





python3 -m pip install PyDonno





### From GitHub





python3 -m pip install git+https://github.com/donno2048/PyDonno
bfcc 1.0.0
A brainfuck compiler for 64-byte arm linux
License: MIT
Requires Python: >=3.0

# bfc

[![Testing](https://github.com/donno2048/bfc/actions/workflows/test.yml/badge.svg)](https://github.com/donno2048/bfc/actions/workflows/test.yml)

A brainfuck compiler for 64-byte arm linux

Yes, it is a compiler, not an interpreter.

## Installation

### From PyPI

```sh
pip3 install bfcc
```

### From GitHub

```sh
pip3 install git+https://github.com/donno2048/bfc
```

## Usage

```sh
bfc input.bf output
```