mktmain.client_cli module

mktmain.client_cli.create_console_handler(verbose_level)[source]
mktmain.client_cli.setup_loggers(verbose_level=0)[source]
class mktmain.client_cli.ClientController(client, echo=False)[source]

Bases: cmd.Cmd

precmd(line)[source]
postcmd(flag, line)[source]
help_names()[source]
help_symbols()[source]
do_sleep(args)[source]

sleep <seconds> – command to pause processing for a time (seconds).

do_waitforcommit(args)[source]

wait – wait for a transaction to commit

do_map(args)[source]
map – assign a value to a symbol that can be retrieved with a
$expansion
do_echo(args)[source]

echo – expand local $symbols

do_dump(args)[source]

dump – display information about an object

do_tokenstore(args)[source]

tokenstore – set the token store used to pay for transactions

do_state(args)[source]
state – access elements of the state
state fetch – retrieve the current version of the ledger state state value – get the value associated with a field in state state query – find object that match specific criteria state byname – find the identifier for an object using its name and type
do_exchange(args)[source]

exchange – execute an marketplace exchange transaction

do_account(args)[source]
account – register or unregister an account
account reg – register a new account account unr – unregister an existing account
do_asset(args)[source]
asset – register or unregister an asset
asset reg – register the asset asset unr – unregister the asset
do_assettype(args)[source]
assettype – register or unregister an asset type
assettype reg – register the asset type assettype unr – unregister the asset type
do_exchangeoffer(args)[source]
exchangeoffer – register or unregister an exchange offer
exchangeoffer reg – register a new exchange offer exchangeoffer unr – unregister an existing exchange offer
do_holding(args)[source]
holding – register or unregister a holding
holding reg – register a new holding holding unr – unregister an existing holding
do_liability(args)[source]
liability – register or unregister a liability
liability reg – register a new liability liability unr – unregister an existing liability
do_participant(args)[source]
participant – register or unregister a participant
participant reg – register a new participant participant unr – unregister an existing participant
do_selloffer(args)[source]
selloffer – register or unregister a sell offer
selloffer reg – register a new sell offer selloffer unr – unregister an existing sell offer
do_holdings(args)[source]

holdings – informative list of information about holdings

do_offers(args)[source]

offers == informative list of available offers

do_session(args)[source]
session – create or delete a session
session create – create a new pre-validation session session delete – delete the pre-validation session
do_exit(args)[source]

exit – shutdown the simulator and exit the command loop

do_EOF(args)[source]

exit – shutdown the simulator and exit the command loop

mktmain.client_cli.parse_script_file(filename)[source]
mktmain.client_cli.verify_key(creator, key)[source]
mktmain.client_cli.local_main(config)[source]
mktmain.client_cli.parse_command_line(args)[source]
mktmain.client_cli.get_configuration(args, os_name='posix', config_files_required=True)[source]
mktmain.client_cli.log_configuration(cfg)[source]
mktmain.client_cli.read_key_file(keyfile)[source]
mktmain.client_cli.main(args=['-b', 'html', '-W', '-d', 'build/doctrees', 'source', 'build/html'])[source]