Skip to main content

blockchain-compare-py

Compare blockchain networks (NEAR, Ethereum, Solana) with latency measurement and visualization tools.

Requirements

  • Python 3.9+

Installation

pip install blockchain-compare-py

Optional Dependencies

pip install pandas matplotlib

Quick Start

from blockchain_compare_py import BlockchainComparePyClient

client = BlockchainComparePyClient(timeout=10)

Methods

Method Description
get_block_height(chain) Get current block height for a chain
measure_latency(chain, samples) Measure RPC latency for a chain
compare_latency() Compare latency across all chains
get_metrics(chain) Get combined metrics for a chain
compare_all() Compare all metrics across all chains
to_dataframe() Export results as a pandas DataFrame
plot_latency() Plot latency comparison chart
plot_block_heights() Plot block height comparison chart

Supported Chains

  • NEARhttps://rpc.mainnet.near.org
  • Ethereumhttps://cloudflare-eth.com
  • Solanahttps://api.mainnet-beta.solana.com

Example

client = BlockchainComparePyClient()

Compare latency across chains

results = client.compare_latency()

Export to DataFrame (requires pandas)

df = client.to_dataframe()

Visualize (requires matplotlib)

client.plot_latency() client.plot_block_heights()

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blockchain_compare_py-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blockchain_compare_py-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file blockchain_compare_py-1.0.0.tar.gz.

File metadata

  • Download URL: blockchain_compare_py-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for blockchain_compare_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 df0fd210208a7f360dfa1c9464f78ae70c9d231d775fc63d76cadd9483f01a60
MD5 123b4f28c4ee4f09be6c22871b64ef70
BLAKE2b-256 abc855c7ad9facea94fc1bd719d9517507c1de584bc921b949406e93d2a77d00

See more details on using hashes here.

File details

Details for the file blockchain_compare_py-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for blockchain_compare_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39c548c1e0cd73dcfcf9d8e80c042c62cc99a11ca0de71453cc2da5c1ba8b6a5
MD5 48b1e2475d4ae799bfe8acb0c01cd271
BLAKE2b-256 c56304f27d2761ad31cf3a857203dc9facbf01974af200a4dfaba14ca2c6f212

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page