"Pyevmasm" is an assembler and disassembler library for the EVM (Ethereum Virtual Machine) written in Python. Using it you can assemble EVM instructions to opscode or disassemble opcodes back into EVM instructions.
The project includes the
evmasm CLI as well as an API you can tap into via Python.
- Trail of Bits