aioethereum
Ethereum RPC client library for the PEP 3156 Python event loop.
Features
ujson support |
Yes |
uvloop support |
Yes |
High-level APIs |
Yes |
HTTP support |
Yes |
Unix domain socket (IPC) support |
Yes |
SSL/TLS support |
Yes |
Tested CPython versions |
|
Tested Geth versions |
|
Implemented RPC apis |
admin, db, debug, eth, miner, net, personal, shh, txpool, web3 |
Documentation
Usage examples
Simple high-level interface (through HTTP):
import asyncio
import aioethereum
loop = asyncio.get_event_loop()
async def go():
client = await aioethereum.create_ethereum_client(
'http://localhost:8545', loop=loop)
val = await client.web3_clientVersion()
print(val)
loop.run_until_complete(go())
# will print like 'Geth/v1.7.0-stable-6c6c7b2a/darwin-amd64/go1.9'
or via IPC
import asyncio
import aioethereum
loop = asyncio.get_event_loop()
async def go():
client = await aioethereum.create_ethereum_client(
'ipc://<path_to_unix_socket>', loop=loop)
val = await client.web3_clientVersion()
print(val)
loop.run_until_complete(go())
# will print like 'Geth/v1.7.0-stable-6c6c7b2a/darwin-amd64/go1.9'
Requirements
License
The aioethereum is offered under MIT license.
0.2.2 (2018-04-10)
Fix bug, related to https://www.python.org/dev/peps/pep-0492/#new-syntax;
Fix port detection for client when only domain;
0.2.1 (2017-10-08)
Add admin and debug management apis;
Add new tests;
Add uvloop support (python 3.5+ required);
0.2.0 (2017-10-05)
Add more docstrings to the code;
Add tests for all rpc methods;
Add admin and debug;
Fix error for unixsocket retring;
Fix unixsocket invalid loop for Python 3.4;
BaseAsyncIOClient._rpc marked as deprecated and will be removed in 0.3.0;
0.1.1 (2017-10-01)
Add sphinx docs;
0.1.0 (2017-09-30)
Initial release;
Ethereum client implemented;
WIP on RPC management.
Metadata
Release files for aioethereum 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aioethereum-0.2.2.tar.gz | 12.0 kB | Without provenance | Details for aioethereum-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioethereum-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for aioethereum-0.2.2-py3-none-any.whl |
Total release size: 31.3 kB
Release files / aioethereum-0.2.2.tar.gz
| Download URL | aioethereum-0.2.2.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d673b5e0426fede5d03be950eeccc71b341e8801f300d70599c75d474720356
|
|
BLAKE2b-256 checksum How to use checksums |
b87af3d763b3604284465c3a4f5ca51855b9059b1c02ac2bc398db83463f182a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aioethereum-0.2.2-py3-none-any.whl
| Download URL | aioethereum-0.2.2-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5d434e0f07fe408e7c7a704dd579a2082ff913310a660af6e023225a1d839f4
|
|
BLAKE2b-256 checksum How to use checksums |
917fbaccd344674d2ea65c3a1759182e698aa08bb231726cf66f0aeeb2beadbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aioethereum 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.