psytricks 2.2.0a18__tar.gz → 2.2.0a19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of psytricks might be problematic. Click here for more details.
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/PKG-INFO +26 -5
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/README.md +25 -4
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/pyproject.toml +1 -1
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__init__.py +1 -1
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/psytricks-lib.ps1 +1 -1
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/restricks-server.ps1 +4 -3
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/mappings.py +2 -2
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/LICENSE +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/psytricks-wrapper.ps1 +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/restricks-server.example.xml +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/sampledata/GetAccessUsers.json +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/sampledata/GetMachineStatus.json +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/sampledata/GetSessions.json +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/cli.py +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/decoder.py +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/literals.py +0 -0
- {psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/wrapper.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: psytricks
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.0a19
|
|
4
4
|
Summary: PowerShell Python Citrix Tricks.
|
|
5
5
|
License-Expression: GPL-3.0-or-later
|
|
6
6
|
License-File: LICENSE
|
|
@@ -131,6 +131,8 @@ To go with **WinSW** simply download the bundled version provided with each
|
|
|
131
131
|
[PSyTricks release][www_releases]. Just look for the `.zip` asset having `REST`
|
|
132
132
|
and `WinSW` in its name, matching your .NET version.
|
|
133
133
|
|
|
134
|
+
#### 🔧 Configuration
|
|
135
|
+
|
|
134
136
|
Unzip the downloaded file to the desired target location, e.g.
|
|
135
137
|
`%PROGRAMDATA%\PSyTricks`, then copy / rename `restricks-server.example.xml` to
|
|
136
138
|
`restricks-server.xml` and open it in an editor.
|
|
@@ -140,11 +142,28 @@ and make sure to update the hostname passed via the `-AdminAddress` parameter in
|
|
|
140
142
|
the `<startarguments>` section. It needs to point to your Citrix Delivery
|
|
141
143
|
Controller, just in case that's not obvious.
|
|
142
144
|
|
|
143
|
-
|
|
145
|
+
#### 🛑⚠️🛑 Enable execution
|
|
146
|
+
|
|
147
|
+
Depending on the security policies in place on your system, the service
|
|
148
|
+
components need to be explicitly unblocked before the service can be started. To
|
|
149
|
+
do this, run the following commands:
|
|
144
150
|
|
|
145
151
|
```PowerShell
|
|
146
|
-
cd C:\ProgramData\PSyTricks
|
|
147
|
-
|
|
152
|
+
cd C:\ProgramData\PSyTricks # or wherever you're installing to
|
|
153
|
+
Unblock-File .\psytricks-lib.ps1
|
|
154
|
+
Unblock-File .\restricks-server.ps1
|
|
155
|
+
Unblock-File .\restricks-server.exe
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
💡 Those steps also need to be performed when **upgrading** the service, which
|
|
159
|
+
is done by replacing exactly the files listed above.
|
|
160
|
+
|
|
161
|
+
#### ☑️ Register and 🏃🏼♀️➡️ run it
|
|
162
|
+
|
|
163
|
+
The final step is to install and start the service:
|
|
164
|
+
|
|
165
|
+
```PowerShell
|
|
166
|
+
.\restricks-server.exe install
|
|
148
167
|
Start-Service RESTricksServer
|
|
149
168
|
```
|
|
150
169
|
|
|
@@ -163,7 +182,9 @@ Tada! That's it, the service is now ready to take HTTP requests (from
|
|
|
163
182
|
|
|
164
183
|
Please be aware that the REST interface doesn't do **any authentication** on
|
|
165
184
|
purpose, meaning everything / everyone that can access it will be able to run
|
|
166
|
-
all requests!
|
|
185
|
+
all requests!
|
|
186
|
+
|
|
187
|
+
We're using it in combination with an 🔐🌐 **SSH tunnel** but essentially
|
|
167
188
|
anything that controls who / what can access the service will do the job.
|
|
168
189
|
|
|
169
190
|
## 🎪 What does it provide?
|
|
@@ -107,6 +107,8 @@ To go with **WinSW** simply download the bundled version provided with each
|
|
|
107
107
|
[PSyTricks release][www_releases]. Just look for the `.zip` asset having `REST`
|
|
108
108
|
and `WinSW` in its name, matching your .NET version.
|
|
109
109
|
|
|
110
|
+
#### 🔧 Configuration
|
|
111
|
+
|
|
110
112
|
Unzip the downloaded file to the desired target location, e.g.
|
|
111
113
|
`%PROGRAMDATA%\PSyTricks`, then copy / rename `restricks-server.example.xml` to
|
|
112
114
|
`restricks-server.xml` and open it in an editor.
|
|
@@ -116,11 +118,28 @@ and make sure to update the hostname passed via the `-AdminAddress` parameter in
|
|
|
116
118
|
the `<startarguments>` section. It needs to point to your Citrix Delivery
|
|
117
119
|
Controller, just in case that's not obvious.
|
|
118
120
|
|
|
119
|
-
|
|
121
|
+
#### 🛑⚠️🛑 Enable execution
|
|
122
|
+
|
|
123
|
+
Depending on the security policies in place on your system, the service
|
|
124
|
+
components need to be explicitly unblocked before the service can be started. To
|
|
125
|
+
do this, run the following commands:
|
|
120
126
|
|
|
121
127
|
```PowerShell
|
|
122
|
-
cd C:\ProgramData\PSyTricks
|
|
123
|
-
|
|
128
|
+
cd C:\ProgramData\PSyTricks # or wherever you're installing to
|
|
129
|
+
Unblock-File .\psytricks-lib.ps1
|
|
130
|
+
Unblock-File .\restricks-server.ps1
|
|
131
|
+
Unblock-File .\restricks-server.exe
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
💡 Those steps also need to be performed when **upgrading** the service, which
|
|
135
|
+
is done by replacing exactly the files listed above.
|
|
136
|
+
|
|
137
|
+
#### ☑️ Register and 🏃🏼♀️➡️ run it
|
|
138
|
+
|
|
139
|
+
The final step is to install and start the service:
|
|
140
|
+
|
|
141
|
+
```PowerShell
|
|
142
|
+
.\restricks-server.exe install
|
|
124
143
|
Start-Service RESTricksServer
|
|
125
144
|
```
|
|
126
145
|
|
|
@@ -139,7 +158,9 @@ Tada! That's it, the service is now ready to take HTTP requests (from
|
|
|
139
158
|
|
|
140
159
|
Please be aware that the REST interface doesn't do **any authentication** on
|
|
141
160
|
purpose, meaning everything / everyone that can access it will be able to run
|
|
142
|
-
all requests!
|
|
161
|
+
all requests!
|
|
162
|
+
|
|
163
|
+
We're using it in combination with an 🔐🌐 **SSH tunnel** but essentially
|
|
143
164
|
anything that controls who / what can access the service will do the job.
|
|
144
165
|
|
|
145
166
|
## 🎪 What does it provide?
|
|
@@ -93,7 +93,7 @@ if ($Shutdown) {
|
|
|
93
93
|
Stop-Process -Name "restricks-server" -ErrorAction SilentlyContinue
|
|
94
94
|
}
|
|
95
95
|
} catch {
|
|
96
|
-
Write-Host "Issue shutting down: $_"
|
|
96
|
+
Write-Host "[$(Format-Date)] Issue shutting down: $_"
|
|
97
97
|
} finally {
|
|
98
98
|
exit
|
|
99
99
|
}
|
|
@@ -474,6 +474,7 @@ function Start-ListenerBlocking {
|
|
|
474
474
|
|
|
475
475
|
function Start-ListenerLoop {
|
|
476
476
|
Write-Host "====================================================" @Blue
|
|
477
|
+
Write-Host "$(Format-Date)" @Blue
|
|
477
478
|
Write-Host "Starting: $ScriptPath" @Blue
|
|
478
479
|
Write-Host "PSyTricksVersion: $Version" @Blue
|
|
479
480
|
Write-Host "Citrix 'AdminAddress': $AdminAddress" @Blue
|
|
@@ -495,7 +496,7 @@ function Start-ListenerLoop {
|
|
|
495
496
|
Write-Host "====================================================" @Blue
|
|
496
497
|
return
|
|
497
498
|
}
|
|
498
|
-
Write-Host "No shutdown file [$StopMarker] present." @Blue
|
|
499
|
+
Write-Host "[$(Format-Date)] No shutdown file [$StopMarker] present." @Blue
|
|
499
500
|
Write-Host "Re-starting in 5s, press Ctrl+C to abort..." @Blue
|
|
500
501
|
Start-Sleep -Seconds 5
|
|
501
502
|
Write-Host "Wait-time elapsed, re-starting the listener..."
|
|
@@ -516,7 +517,7 @@ if ($LogFile -eq "") {
|
|
|
516
517
|
} catch {
|
|
517
518
|
throw "Unable to open log file for writing: [$LogFile]"
|
|
518
519
|
}
|
|
519
|
-
Write-Host "[$ScriptName] logs will go to [$LogFile]."
|
|
520
|
+
Write-Host "[$ScriptName] [$(Format-Date)] logs will go to [$LogFile]."
|
|
520
521
|
# 'Write-Host' is writing to the 'Information' stream (which is #6), so we
|
|
521
522
|
# need to redirect that one to the log file:
|
|
522
523
|
Start-ListenerLoop 6>&1 | Out-File $LogFile -Encoding "utf8"
|
|
@@ -9,8 +9,8 @@ The dicts defined here can be used to map the numerical values back to their
|
|
|
9
9
|
descriptive names. The mapped names are corresponding to the ones described in
|
|
10
10
|
the official Citrix CVAD 2203 developer docs (all transformed to lowercase):
|
|
11
11
|
|
|
12
|
-
https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops-sdk/2203/
|
|
13
|
-
https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops-sdk/2507/
|
|
12
|
+
* https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops-sdk/2203/
|
|
13
|
+
* https://developer-docs.citrix.com/en-us/citrix-virtual-apps-desktops-sdk/2507/
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
#######################################################################################
|
|
File without changes
|
|
File without changes
|
{psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/restricks-server.example.xml
RENAMED
|
File without changes
|
{psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/sampledata/GetAccessUsers.json
RENAMED
|
File without changes
|
{psytricks-2.2.0a18 → psytricks-2.2.0a19}/src/psytricks/__ps1__/sampledata/GetMachineStatus.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|