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')

Methods

The follwing methods are available on the web3.pm namespace.

PM.get_package_from_manifest(self, manifest)
  • Manifest must currently be a dict representing a valid manifest
  • Returns a Package instance representing the Manifest