Package Manager API¶
-
class
web3.pm.
PM
¶
The web3.pm
object exposes methods to interact with Packages as defined by ERC 1123.
Installation¶
Warning
The PM module is still under development, and not all use-cases are currently supported, so it is not included by default in the web3 instance.
You must install the eth-pm module separately, until it is stable. Install with:
pip install --upgrade ethpm
Attaching¶
To use web3.pm
, attach it to your web3
instance.
from web3.pm import PM
PM.attach(web3, 'pm')