PyPI Package - blockchain-compare-py v4
Project description
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
- NEAR —
https://rpc.mainnet.near.org - Ethereum —
https://cloudflare-eth.com - Solana —
https://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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df0fd210208a7f360dfa1c9464f78ae70c9d231d775fc63d76cadd9483f01a60
|
|
| MD5 |
123b4f28c4ee4f09be6c22871b64ef70
|
|
| BLAKE2b-256 |
abc855c7ad9facea94fc1bd719d9517507c1de584bc921b949406e93d2a77d00
|
File details
Details for the file blockchain_compare_py-1.0.0-py3-none-any.whl.
File metadata
- Download URL: blockchain_compare_py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39c548c1e0cd73dcfcf9d8e80c042c62cc99a11ca0de71453cc2da5c1ba8b6a5
|
|
| MD5 |
48b1e2475d4ae799bfe8acb0c01cd271
|
|
| BLAKE2b-256 |
c56304f27d2761ad31cf3a857203dc9facbf01974af200a4dfaba14ca2c6f212
|