Stcrestclient

Latest version: v1.9.1

Safety actively analyzes 630254 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.5.0

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:

python
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()](https://github.com/Spirent/py-stcrestclient/blob/master/stcrestclient/stcpythonrest.py#L186-L187) 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:

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


The update, version 1.5.0, is available from [PyPI](https://pypi.python.org/pypi/stcrestclient/1.5.0), so you can install/upgrade your stcrestclient installation with the command:


sudo pip install stcrestclient -U

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.