uptick.decorators module

uptick.decorators.chain(f)

This decorator allows you to access ctx.bitshares which is an instance of BitShares.

uptick.decorators.configfile(f)

This decorator will parse a configuration file in YAML format and store the dictionary in ctx.config

uptick.decorators.customchain(**kwargsChain)

This decorator allows you to access ctx.bitshares which is an instance of BitShares. But in contrast to @chain, this is a decorator that expects parameters that are directed right to BitShares().

… code-block::python

@main.command() @click.option(“–worker”, default=None) @click.pass_context @customchain(foo=”bar”) @unlock def list(ctx, worker):

print(ctx.obj)
uptick.decorators.offline(f)

This decorator allows you to access ctx.bitshares which is an instance of BitShares with offline=True.

uptick.decorators.offlineChain(f)

This decorator allows you to access ctx.bitshares which is an instance of BitShares with offline=True.

uptick.decorators.online(f)

This decorator allows you to access ctx.bitshares which is an instance of BitShares.

uptick.decorators.onlineChain(f)

This decorator allows you to access ctx.bitshares which is an instance of BitShares.

uptick.decorators.unlock(f)

This decorator will unlock the wallet by either asking for a passphrase or taking the environmental variable UNLOCK

uptick.decorators.unlockWallet(f)

This decorator will unlock the wallet by either asking for a passphrase or taking the environmental variable UNLOCK

uptick.decorators.verbose(f)

Add verbose flags and add logging handlers