Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cpc-fusion

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpc-fusion

CPC Fusion

  • 0.1.29
  • PyPI
  • Socket score

Maintainers
1

Fusion API

.. figure:: https://github.com/CPChain/fusion/raw/master/fusion.png :alt: cpc-fusion

cpc-fusion

|python3|\ |License: GPL v3|\ |Pull Requests|\ |Follow Twitter|

A Python package based on web3.py <https://github.com/ethereum/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:

.. code:: bash

pip install cpc-fusion

Installation from source can be done from the root of the project with the following command.

.. code:: bash

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.

.. code:: python

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 <https://docs.cpchain.io/content/api/cpc_fusion.html>__.

.. |python3| image:: https://img.shields.io/badge/language-python3-orange.svg .. |License: GPL v3| image:: https://img.shields.io/badge/License-GPLv3-blue.svg :target: https://www.gnu.org/licenses/gpl-3.0 .. |Pull Requests| image:: https://img.shields.io/bitbucket/pr-raw/cpchain/chain.svg :target: https://bitbucket.org/cpchain/chain/pull-requests/ .. |Follow Twitter| image:: https://img.shields.io/twitter/follow/cpchain_io.svg?label=Follow&style=social :target: https://twitter.com/intent/follow?screen_name=cpchain_io

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc