Skip to content

stcrestclient-1.5.0

Compare
Choose a tag to compare
@ajgillis ajgillis released this 20 Apr 07:51
· 84 commits to master since this release

Perform LoadFromDatabase uploads file

The StcHttp code has been modified so that when calling StcHttp.perform() with "LoadFromDatabase" or "LoadFromXml", the indicated file is automatically uploaded to the server before executing the command. For example:

stc.perform('loadfromdatabase', DatabaseConnectionString='/tmp/sample_4.5x.tcc')

Uploads the file /tmp/sample4.5x.tcc, and then performs LoadFromDatabaseCommand on the file "sample_4.5x.tcc"

New adapter method: new_session()

The adapter, stcpythonrest.py, now has a new_session() public method that takes an optional kill_session boolean parameter. This method also returns the StcHttp object in case additional REST-API-specific functionality is needed (e.g. list sessions, end session).

Help search functionality

The help command has been updated to accept optional search arguments to be used when list is the help topic. For example, when using tccsh, the command: stc_help list commands wait*
will list all the commands that begin with "wait". Also, stchttp call equivalent is as follows:

    stc = stcrestclient.stchttp.StcHttp(...)
    stc.help('list', ['commands', 'wait*'])

The update, version 1.5.0, is available from PyPI, so you can install/upgrade your stcrestclient installation with the command:

sudo pip install stcrestclient -U