Pytezos CLI

Examples

See how PyTezos CLI is used in a Travis CI pipeline: https://github.com/atomex-me/atomex-fa12-ligo/blob/master/.travis.yml

Reference

class pytezos.cli.PyTezosCli[source]
activate(path, network='carthagenet')[source]

Activates and reveals key from the faucet file.

Parameters
deploy(path, storage=None, network='carthagenet', key=None, github_repo_slug=None, github_oauth_token=None, dry_run=False)[source]

Deploy contract to the specified network.

Parameters
  • path – Path to the .tz file

  • storage – Storage in JSON format (not Micheline)

  • network

  • key

  • github_repo_slug

  • github_oauth_token

  • dry_run – Set this flag if you just want to see what would happen

parameter(action, path=None)[source]

Manage contract parameter.

Parameters
  • action – One of schema

  • path – Path to the .tz file, or the following uri: <network>:<KT-address>

storage(action, path=None)[source]

Manage contract storage.

Parameters
  • action – One of schema, default

  • path – Path to the .tz file, or the following uri: <network>:<KT-address>