v2.0.0
Common
A REST
server (restricks-server.ps1
) written in PowerShell was added to facilitate and speed up interaction with the CVAD / Citrix toolstack. See the installation instructions for details on how to use it and please be aware that this is very much in an infant state 🍼.
NOTE: this is an alternative to the original way of calling PowerShell as a Python subprocess
(requiring the Python code to be executed in a user context that has access to the Citrix Broker
Snap-In and that has appropriate permissions configured on the Delivery Controller). Wrapping this into a REST service that is reachable via HTTP allows to run the Python code in a completely independent context.
Changed
- 🧨 BREAKING 🧨
psytricks.wrapper.PSyTricksWrapper.send_message
is now requiring the details (style, title and text) of the message to send directly, unlike before where a file was being read. If the file use-case is required again it can be simply wrapped around the method call. This change is done to keep consistency with the newly introducedREST
wrapper class (see below).- All action methods (requesting data or state changes from Citrix) in
psytricks.wrapper.PSyTricksWrapper
have dropped thekwargs
parameter. They were initially implemented to simplify the call from withinpsytricks.cli.run_cli
but are basically just adding confusion. - To accommodate for the above changes the CLI command
sendmessage
now has two additional command-line options:--title
(mandatory) to set the message title and--style
(optional) to set the message icon. The previously existing--message
option now expects the body as a string (may contain\n
for linebreaks), not the path to a message file any more.
Added
- An additional wrapper class
psytricks.wrapper.ResTricksWrapper
🎪 has been added to interface with the newly introduced REST service. Apart from feeling much less awkward than thesubprocess
way, this also happens to be orders of magnitude faster 🎢🎡. - Added
psytricks.literals
to improve type checking and documentation.