| Name | peth JSON |
| Version |
1.0.10
JSON |
| download |
| home_page | https://github.com/lmy375/peth/ |
| Summary | An all-in-one Ethereum SDK and command-line tool written in python. |
| upload_time | 2024-09-04 10:04:27 |
| maintainer | None |
| docs_url | None |
| author | Moon |
| requires_python | <4.0,>=3.10 |
| license | AGPL-3.0 |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Peth
`Peth` is an all-in-one Ethereum SDK and command-line tool, written in Python. It is designed for developers, smart contract auditors, web3 security researchers, and anyone interested in interacting with EVM-compatible chains with ease.
```
➜ peth
▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀
-- https://github.com/lmy375
Welcome to the peth shell. Type `help` to list commands.
peth >
```
Features include:
- An Etherscan-compatible blockchain explorer interface
- ABI encoding/decoding capabilities
- An EVM Bytecode disassembler
- Common DApp contract tools
- And more...
# Documentation
[English](https://peth.readthedocs.io/en/)
[中文](https://peth.readthedocs.io/zh-cn/)
# Installation
From pypi
```
➜ pip install peth
➜ peth
```
From github
```
➜ pip install git+https://github.com/lmy375/peth
➜ peth
```
From source
```
➜ git clone https://github.com/lmy375/peth
➜ cd peth
➜ pip -r requirements.txt
➜ python main.py
```
# Quick Usage
Command-line mode:
```
➜ peth -h
```
Console mode:
```sh
➜ peth
Welcome to the peth shell. Type `help` to list commands.
peth > help
Documented commands (type help <topic>):
========================================
4byte contract estimate_gas name safe tx_replay
abi4byte debank eth_call open send_tx txs
abi_decode debug exit oracle sender url
abi_encode decompile factory owner sh verify
address deth graph pair signer view
aes diff help price status
aml diffasm idm proxy storage
call disasm int proxy_all time
chain download_json ipython py timelock
common_addresses download_source keccak256 rpc_call tx
config erc20 log run tx_raw
peth >
```
SDK mode:
```sh
➜ ipython
Python 3.10.0 (default, Oct 29 2021, 11:06:42) [Clang 13.0.0 (clang-1300.0.29.3)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.28.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from peth import Peth
In [2]: p = Peth.get_or_create('eth')
In [3]: p.call_contract('0xdAC17F958D2ee523a2206206994597C13D831ec7', 'name')
Out[3]: 'Tether USD'
In [4]: p.call_contract('0xdAC17F958D2ee523a2206206994597C13D831ec7', 'name()->(string)')
Out[4]: 'Tether USD'
```
# Contributing
Help is always appreciated! Feel free to open an issue if you find a problem, or a pull request if you've solved an issue.
Please check out the [Contribution Guide](./docs/en/contribute.md) prior to opening a pull request.
# Buy me a coffee
Send any tokens to [0x2aa75a41805E47eCd94fbBaD84eeF6d1BF21a019](https://debank.com/profile/0x2aa75a41805E47eCd94fbBaD84eeF6d1BF21a019)
# License
This project is licensed under the [AGPL v3](./LICENSE) license.
Raw data
{
"_id": null,
"home_page": "https://github.com/lmy375/peth/",
"name": "peth",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": null,
"author": "Moon",
"author_email": "lmy375@139.com",
"download_url": "https://files.pythonhosted.org/packages/bb/6f/9f87a16d92bb123b6baca023ec296f1dfa2b654dc537feb1f6f09823f0ad/peth-1.0.10.tar.gz",
"platform": null,
"description": "# Peth\n\n`Peth` is an all-in-one Ethereum SDK and command-line tool, written in Python. It is designed for developers, smart contract auditors, web3 security researchers, and anyone interested in interacting with EVM-compatible chains with ease.\n\n```\n\u279c peth\n\n\n \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2584 \u2584 \n \u2590\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u258c\u2590\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u258c\u2590\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u258c\u2590\u2591\u258c \u2590\u2591\u258c\n \u2590\u2591\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2588\u2591\u258c\u2590\u2591\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580 \u2580\u2580\u2580\u2580\u2588\u2591\u2588\u2580\u2580\u2580\u2580 \u2590\u2591\u258c \u2590\u2591\u258c\n \u2590\u2591\u258c \u2590\u2591\u258c\u2590\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c\n \u2590\u2591\u2588\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2588\u2591\u258c\u2590\u2591\u2588\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2590\u2591\u258c \u2590\u2591\u2588\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2588\u2591\u258c\n \u2590\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u258c\u2590\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u258c\n \u2590\u2591\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580 \u2590\u2591\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580 \u2590\u2591\u258c \u2590\u2591\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2588\u2591\u258c\n \u2590\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c\n \u2590\u2591\u258c \u2590\u2591\u2588\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584 \u2590\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c\n \u2590\u2591\u258c \u2590\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c \u2590\u2591\u258c\n \u2580 \u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2580 \u2580 \u2580 \u2580 \n \n\n -- https://github.com/lmy375\n\nWelcome to the peth shell. Type `help` to list commands.\n\npeth > \n```\n\nFeatures include:\n- An Etherscan-compatible blockchain explorer interface\n- ABI encoding/decoding capabilities\n- An EVM Bytecode disassembler\n- Common DApp contract tools\n- And more...\n\n# Documentation\n\n[English](https://peth.readthedocs.io/en/)\n\n[\u4e2d\u6587](https://peth.readthedocs.io/zh-cn/)\n\n# Installation\n\nFrom pypi\n```\n\u279c pip install peth\n\u279c peth\n```\n\nFrom github\n```\n\u279c pip install git+https://github.com/lmy375/peth\n\u279c peth\n```\n\nFrom source\n```\n\u279c git clone https://github.com/lmy375/peth\n\u279c cd peth\n\u279c pip -r requirements.txt\n\u279c python main.py\n```\n\n# Quick Usage\n\nCommand-line mode:\n```\n\u279c peth -h\n```\n\nConsole mode:\n```sh\n\u279c peth\nWelcome to the peth shell. Type `help` to list commands.\n\npeth > help\n\nDocumented commands (type help <topic>):\n========================================\n4byte contract estimate_gas name safe tx_replay\nabi4byte debank eth_call open send_tx txs \nabi_decode debug exit oracle sender url \nabi_encode decompile factory owner sh verify \naddress deth graph pair signer view \naes diff help price status \naml diffasm idm proxy storage \ncall disasm int proxy_all time \nchain download_json ipython py timelock\ncommon_addresses download_source keccak256 rpc_call tx \nconfig erc20 log run tx_raw \n\npeth >\n```\n\nSDK mode:\n\n```sh\n\u279c ipython\nPython 3.10.0 (default, Oct 29 2021, 11:06:42) [Clang 13.0.0 (clang-1300.0.29.3)]\nType 'copyright', 'credits' or 'license' for more information\nIPython 7.28.0 -- An enhanced Interactive Python. Type '?' for help.\n\nIn [1]: from peth import Peth\n\nIn [2]: p = Peth.get_or_create('eth')\n\nIn [3]: p.call_contract('0xdAC17F958D2ee523a2206206994597C13D831ec7', 'name')\nOut[3]: 'Tether USD'\n\nIn [4]: p.call_contract('0xdAC17F958D2ee523a2206206994597C13D831ec7', 'name()->(string)')\nOut[4]: 'Tether USD'\n```\n\n# Contributing\n\nHelp is always appreciated! Feel free to open an issue if you find a problem, or a pull request if you've solved an issue.\n\nPlease check out the [Contribution Guide](./docs/en/contribute.md) prior to opening a pull request.\n\n\n# Buy me a coffee\n\nSend any tokens to [0x2aa75a41805E47eCd94fbBaD84eeF6d1BF21a019](https://debank.com/profile/0x2aa75a41805E47eCd94fbBaD84eeF6d1BF21a019)\n\n# License\n\nThis project is licensed under the [AGPL v3](./LICENSE) license.\n",
"bugtrack_url": null,
"license": "AGPL-3.0",
"summary": "An all-in-one Ethereum SDK and command-line tool written in python.",
"version": "1.0.10",
"project_urls": {
"Documentation": "https://peth.readthedocs.io/",
"Homepage": "https://github.com/lmy375/peth/",
"Repository": "https://github.com/lmy375/peth/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8debbbd9c339ce6ca7c14041f5e8d7ea7848c7acb03a0d132e95d58714102ed4",
"md5": "2577d538343af31ee142f63650ed2327",
"sha256": "56f10428c6215f37df9412a29381b838e0cd354d4f0d6c41f0702fa88c7396fd"
},
"downloads": -1,
"filename": "peth-1.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2577d538343af31ee142f63650ed2327",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 143550,
"upload_time": "2024-09-04T10:04:25",
"upload_time_iso_8601": "2024-09-04T10:04:25.315756Z",
"url": "https://files.pythonhosted.org/packages/8d/eb/bbd9c339ce6ca7c14041f5e8d7ea7848c7acb03a0d132e95d58714102ed4/peth-1.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bb6f9f87a16d92bb123b6baca023ec296f1dfa2b654dc537feb1f6f09823f0ad",
"md5": "0b31ef72dcdf71f0daa64beb0ec81e07",
"sha256": "15c1f2585084f93710877904b7c0a145c6f1c065c27cec5377acb1054a5a1d27"
},
"downloads": -1,
"filename": "peth-1.0.10.tar.gz",
"has_sig": false,
"md5_digest": "0b31ef72dcdf71f0daa64beb0ec81e07",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 117377,
"upload_time": "2024-09-04T10:04:27",
"upload_time_iso_8601": "2024-09-04T10:04:27.454133Z",
"url": "https://files.pythonhosted.org/packages/bb/6f/9f87a16d92bb123b6baca023ec296f1dfa2b654dc537feb1f6f09823f0ad/peth-1.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-04 10:04:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lmy375",
"github_project": "peth",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "peth"
}