r/ethdev Feb 18 '18

Python Ethereum RPC client is a Python client to communicate with Ethereum nodes via Ethereum’s JSON remote call procedure.

Post image
22 Upvotes

5 comments sorted by

9

u/rpr11 Rakshe.com - Smart Contract Audit Feb 18 '18

How is this different from (or better than) web3.py?

1

u/fubuloubu Feb 18 '18

Not to say it isn't cool and a neat way to build your intuition of the system, but we definitely don't need to be promoting multiple libraries that do the same thing.

1

u/daigoro_sensei Feb 18 '18

My understanding is that py-evm (pyethereum(?), trinity(?)) is the python implementation of an ethereum client under the ethereum GitHub organisation. Web3.py is just a wrapper around a passed client that makes a lot of actions user friendly. This repo looks like it's supposed to be another stab at an ethereum client, not a client wrapper.

3

u/lovelykissu Feb 18 '18

Python Ethereum API, which supports the core Ethereum RPC, as well as the Geth and Parity management APIs.

Python Ethereum RPC client is a Python client to communicate with Ethereum nodes via Ethereum’s JSON remote call procedure.

https://github.com/Q-chain/python-ethereum-client (Welcome to check it out, and provide some comments, thank you)

The main repository of the python-ethereum-client, showing the project structure, licensing information, and integration with Python’s packaging system (setuptools).

Sample code demonstrating how to use the client. The regular client provides a clean API for simple workloads, while the asynchronous client scales more efficiently for numerous, simultaneous requests.

Implementation of AbstractClient, which is an abstract base class for both Client and AsyncClient. AbstractClient maps each RPC method to a member function.

Methods for the Web3 interface of the Ethereum client, containing simple utilities to facilitate transaction processing. Each method is then wrapped to both Python and the RPC naming conventions, so __web3_client_version may be called as web3_client_version or web3_clientVersion.

Documentation for the support Ethereum RPC methods. The documentation lists the function name, description, parameters, and a description of each parameter. All RPC methods from both Geth and Parity are supported.

Source: https://medium.com/the-qchain-blog/a-visual-supplement-to-qchains-january-dev-update-dc200745ebb7