AST parser from solc json file
Project description
An AST parser for solc json outputs
Usage
Parsing AST with solidity source code and get contract information:
from solc_json_parser.parser import SolidityAst
# The input can be a file path or source code
ast = SolidityAst('contracts/BlackScholesEstimate_8.sol')
ast.all_contract_names
# List all functions in contract
ast.functions_in_contract_by_name('BlackScholesEstimate', name_only=True)
# Get source code by program counter
ast.source_by_pc('BlackScholesEstimate', 92)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
solc-json-parser-0.1.4.tar.gz
(12.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solc-json-parser-0.1.4.tar.gz.
File metadata
- Download URL: solc-json-parser-0.1.4.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb5ca0268421076e42610ac523c2495bb4a1d862fdbfa1b83b458742de17fb0a
|
|
| MD5 |
34ef3d47cb7f40e19669122dfdcc730f
|
|
| BLAKE2b-256 |
fa26307abebe6d148df8c0570a37b6b1e97d3dffcc40fee2e2ab78392df26b57
|
File details
Details for the file solc_json_parser-0.1.4-py3-none-any.whl.
File metadata
- Download URL: solc_json_parser-0.1.4-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf4a2adab9ff6d5d830178929ee6bf8c9753711b7fb088fd5bbd6c88427cd9b1
|
|
| MD5 |
d9bf9d296999a5848e4b8b739102d6fb
|
|
| BLAKE2b-256 |
ca0dd03066dc9311078659b9230989a829b7c20fa84ef23b3881c0e8585f2e52
|