Skip to main content

Packaged metadata on Ethereum Virtual Machine (EVM) chains

Project description

Python EVM Chains Metadata

Provides general metadata on EVM-compatible chains organized by Ape-style ecosystem and network.

Original soure data: https://github.com/ethereum-lists/chains

Quick Start

Dependencies

Installation

via pip

You can install the latest release via pip:

pip install evmchains

via setuptools

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

git clone https://github.com/ApeWorX/evmchains.git
cd evmchains
python3 setup.py install

Quick Usage

from evmchains import get_chain_meta
chain = get_chain_meta("ethereum", "mainnet")
assert chain.chainId == 1

Development

Please see the contributing guide to learn more how to contribute to this project. Comments, questions, criticisms and pull requests are welcomed.

Adding Chains

To add a chain to the metadata, please open a pull request with the following changes:

  • Update CHAIN_IDS in scripts/update.py with the chain IDs you want to add
  • Run python scripts/update.py
  • Submit a PR with the updated script and updated evmchain/chains.py metdata file

Do not edit evmchain/chains.py manually. Any manual changes are likely to be overwritten later.

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

evmchains-0.0.8.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

evmchains-0.0.8-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file evmchains-0.0.8.tar.gz.

File metadata

  • Download URL: evmchains-0.0.8.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for evmchains-0.0.8.tar.gz
Algorithm Hash digest
SHA256 025319388931fb1fe7d6b42980cb2b526ec1da0a8ed8bd9db70644edc4206fe9
MD5 1800162ef6030745f14b6ce783a3ef95
BLAKE2b-256 1ed4211bc2bd1dbcce6296f5e07dc85cfdd391275f9f612b0d42fbd3acefde6c

See more details on using hashes here.

File details

Details for the file evmchains-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: evmchains-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for evmchains-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 652caad0f864e76c3c0ad3d3de67f6303ee81ace38ed61ca8d495cf199f5bdf1
MD5 998823b01c8783f3818ffb99d35a33d3
BLAKE2b-256 fbc2d7ea17e5fd7d8bd831f394f36d88ef61fb2973d24fa7e9327e8308d0c3b6

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