CPC Fusion
Project description
A Python package based on web3.py to interact with cpchain.
Python 3.5+ support
Installation
cpc_fusion.py can be installed (preferably in a virtualenv) using pip as follows:
pip install cpc-fusion
Installation from source can be done from the root of the project with the following command.
pip install .
Using Fusion
To use the web3 library you will need to initialize the Web3 class.
Use the auto module to guess at common node connection options.
from cpc_fusion import Web3
cf = Web3(Web3.HTTPProvider('http://127.0.0.1:8501'))
cf.cpc.blockNumber
>>> 34341
Note
If you get the result UnhandledRequest: No providers responded to the RPC request then you are not connected to a node.
Read more in the documentation on CPChain.
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
cpc-fusion-0.1.4.tar.gz
(360.5 kB
view hashes)
Built Distribution
cpc_fusion-0.1.4-py3-none-any.whl
(179.1 kB
view hashes)
Close
Hashes for cpc_fusion-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf681d0a5b299363d61aa2e12c94add270e27766b56c70a563bc0b84e14d3428 |
|
MD5 | 3e1c3281954d2a22cc81d8c7bee1e7c5 |
|
BLAKE2b-256 | e41921801f5619d42c1e0b403f9ebdb8eb3d318661b7c94a04d4344b3b118894 |