SDK for data interaction and function calls between Python APP and Syslab platform
Project description
SyslabAppSdk
SyslabAppSdk is an SDK that is responsible for communication interaction with the Python App and Syslab. It mainly provides the following interface for the development of APP:
- Get variable list
- Get variable value
- Send script to Syslab for execution
- Close named pipe
Installation
pip install -U syslabappsdk
Usage
Get variable list
def mw_get_variables(show_modules: bool) -> (list | Literal[False])
Description | Detail |
---|---|
Feature | get a list of Syslab workspace variables |
Parameter | show_modules: whether to display a list of modules, usually False |
Return | False - failed to get variable list - successed |
Get variable value
def mw_get_value(var_name: str) -> (str | Literal[False])
Description | Detail |
---|---|
Feature | get Syslab workspace variable value |
Parameter | var_name: variable name, which can be a child variable such as a.b |
Return | False - failed to get variable value string - successed |
Send script to Syslab for execution
def mw_run_script(code: str,
show_code_in_repl: bool,
show_result_in_repl: bool) -> (str | Literal[False])
Description | Detail |
---|---|
Feature | execute the Julia script code in the Syslab workspace |
Parameter | code: Julia script to run show_code_in_repl: whether to display the code in Syslab REPL show_result_in_repl: whether to display the result in Syslab REPL |
Return | False - failed to get result of running code - successed |
Close named pipe
def close_pipe() -> None
Description | Detail |
---|---|
Feature | Send a request to close the named pipe and call before closing the program |
Parameter | none |
Return | none |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
syslabappsdk-0.1.1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for syslabappsdk-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04172ddcf0c28a963450461235b0b52ab0cdc3d06f4739bc0a1ccb8a6e58d2d0 |
|
MD5 | a6aa07f3e82689d011e2fecf35bb2e36 |
|
BLAKE2b-256 | 1d19a193eff6e1f3579b9bcf643268455a52c1400933d696d6db92295b36e147 |