matlab-proxy 0.15.1__py3-none-any.whl → 0.16.0__py3-none-any.whl

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 matlab-proxy might be problematic. Click here for more details.

matlab_proxy/app_state.py CHANGED
@@ -11,13 +11,13 @@ from datetime import datetime, timedelta, timezone
11
11
  from typing import Final, Optional
12
12
 
13
13
  from matlab_proxy import util
14
- from matlab_proxy.settings import (
15
- get_process_startup_timeout,
16
- )
17
14
  from matlab_proxy.constants import (
18
15
  CONNECTOR_SECUREPORT_FILENAME,
19
16
  MATLAB_LOGS_FILE_NAME,
20
17
  )
18
+ from matlab_proxy.settings import (
19
+ get_process_startup_timeout,
20
+ )
21
21
  from matlab_proxy.util import mw, mwi, system, windows
22
22
  from matlab_proxy.util.mwi import environment_variables as mwi_env
23
23
  from matlab_proxy.util.mwi import token_auth
@@ -28,12 +28,11 @@ from matlab_proxy.util.mwi.exceptions import (
28
28
  LicensingError,
29
29
  MatlabError,
30
30
  OnlineLicensingError,
31
- XvfbError,
32
31
  UIVisibleFatalError,
32
+ XvfbError,
33
33
  log_error,
34
34
  )
35
35
 
36
-
37
36
  logger = mwi.logger.get()
38
37
 
39
38
 
@@ -314,7 +313,11 @@ class AppState:
314
313
  [Dict | None]: Returns token authentication headers if any.
315
314
  """
316
315
  return (
317
- {self.settings["mwi_auth_token_name"]: self.settings["mwi_auth_token_hash"]}
316
+ {
317
+ self.settings["mwi_auth_token_name_for_http"]: self.settings[
318
+ "mwi_auth_token_hash"
319
+ ]
320
+ }
318
321
  if self.settings["mwi_is_token_auth_enabled"]
319
322
  else None
320
323
  )
matlab_proxy/constants.py CHANGED
@@ -26,3 +26,4 @@ SUPPORTED_MATLAB_VERSIONS: Final[List[str]] = [
26
26
 
27
27
  # This constant when set to True restricts the number of active sessions to one
28
28
  IS_CONCURRENCY_CHECK_ENABLED: Final[bool] = True
29
+ MWI_AUTH_TOKEN_NAME_FOR_HTTP = "mwi-auth-token"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.47712126.css",
4
- "main.js": "./static/js/main.ff1bfd69.js",
4
+ "main.js": "./static/js/main.522d83ba.js",
5
5
  "static/media/mathworks-pictograms.svg?20181009": "./static/media/mathworks-pictograms.f6f087b008b5a9435f26.svg",
6
6
  "static/media/MATLAB-env-blur.png": "./static/media/MATLAB-env-blur.4fc94edbc82d3184e5cb.png",
7
7
  "static/media/mathworks.svg?20181004": "./static/media/mathworks.80a3218e1ba29f0573fb.svg",
@@ -35,10 +35,10 @@
35
35
  "static/media/gripper.svg": "./static/media/gripper.9defbc5e76d0de8bb6e0.svg",
36
36
  "static/media/arrow.svg": "./static/media/arrow.0c2968b90bd9a64c8c3f.svg",
37
37
  "main.47712126.css.map": "./static/css/main.47712126.css.map",
38
- "main.ff1bfd69.js.map": "./static/js/main.ff1bfd69.js.map"
38
+ "main.522d83ba.js.map": "./static/js/main.522d83ba.js.map"
39
39
  },
40
40
  "entrypoints": [
41
41
  "static/css/main.47712126.css",
42
- "static/js/main.ff1bfd69.js"
42
+ "static/js/main.522d83ba.js"
43
43
  ]
44
44
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="MATLAB"/><meta name="internal_mw_identifier" content="MWI_MATLAB_PROXY_IDENTIFIER"/><link rel="manifest" href="./manifest.json"/><title>MATLAB</title><script defer="defer" src="./static/js/main.ff1bfd69.js"></script><link href="./static/css/main.47712126.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="MATLAB"/><meta name="internal_mw_identifier" content="MWI_MATLAB_PROXY_IDENTIFIER"/><link rel="manifest" href="./manifest.json"/><title>MATLAB</title><script defer="defer" src="./static/js/main.522d83ba.js"></script><link href="./static/css/main.47712126.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>