pywebexec 1.1.13__py3-none-any.whl → 1.1.14__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.
pywebexec/pywebexec.py CHANGED
@@ -15,13 +15,8 @@ from gunicorn.app.base import Application
15
15
  import ipaddress
16
16
  from socket import gethostname, gethostbyname_ex
17
17
  import ssl
18
-
19
18
  if os.environ.get('PYWEBEXEC_LDAP_SERVER'):
20
- try:
21
- from ldap3 import Server, Connection, ALL, SIMPLE, SUBTREE, Tls
22
- except:
23
- print("Need to install ldap3: pip install ldap3", file=sys.stderr)
24
- sys.exit(1)
19
+ from ldap3 import Server, Connection, ALL, SIMPLE, SUBTREE, Tls
25
20
 
26
21
  app = Flask(__name__)
27
22
  app.secret_key = os.urandom(24) # Secret key for session management
@@ -42,8 +37,6 @@ if os.path.isdir(f"{CONFDIR}/.config"):
42
37
  CONFDIR += '/.config'
43
38
  CONFDIR += "/.pywebexec"
44
39
 
45
- if not os.path.exists(COMMAND_STATUS_DIR):
46
- os.makedirs(COMMAND_STATUS_DIR)
47
40
 
48
41
  # In-memory cache for command statuses
49
42
  command_status_cache = {}
@@ -271,7 +264,8 @@ def parseargs():
271
264
  else:
272
265
  print(f"Error: {args.dir} not found", file=sys.stderr)
273
266
  sys.exit(1)
274
-
267
+ if not os.path.exists(COMMAND_STATUS_DIR):
268
+ os.makedirs(COMMAND_STATUS_DIR)
275
269
  if args.gencert:
276
270
  hostname = resolve_hostname(gethostname())
277
271
  args.cert = args.cert or f"{CONFDIR}/pywebexec.crt"
pywebexec/version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.1.13'
16
- __version_tuple__ = version_tuple = (1, 1, 13)
15
+ __version__ = version = '1.1.14'
16
+ __version_tuple__ = version_tuple = (1, 1, 14)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.1.13
3
+ Version: 1.1.14
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -1,6 +1,6 @@
1
1
  pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
2
- pywebexec/pywebexec.py,sha256=nXo0K6dBS9zKRUEP1hFyGWpL3BV2sUku3CFeGi0QQ-w,21479
3
- pywebexec/version.py,sha256=TwfOeVDk7-YdURlWNHTinaP_27Y41bPwJIh1LndxWvc,413
2
+ pywebexec/pywebexec.py,sha256=DQJ1uc8otLP0IOa3kk14oAadi27VzZDphtagciy7jXs,21365
3
+ pywebexec/version.py,sha256=IoIw4Q-i2QxpssZDRqvzb2A_DRSo8XNg09z-Fm0f8c8,413
4
4
  pywebexec/static/css/style.css,sha256=BFiRkGhGrNoEmD2M3grfQXwsdI_bJWgB7GPHDoyT7R4,3374
5
5
  pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
6
6
  pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
@@ -12,9 +12,9 @@ pywebexec/static/images/success.svg,sha256=PJDcCSTevJh7rkfSFLtc7P0pbeh8PVQBS8DaO
12
12
  pywebexec/static/js/script.js,sha256=glaAXtJkH2pZGak3AWRExZnaojO1vPoyvYxDQqZ2fQ0,9328
13
13
  pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pywebexec/templates/index.html,sha256=X0TsF1-fEuanpGPQo0GpCvvE87BWUEkYyrWA7IOu20Q,1454
15
- pywebexec-1.1.13.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
16
- pywebexec-1.1.13.dist-info/METADATA,sha256=2HTctXivbcyeIDet0bxmPb4JHB9nYssTHCX1uXZCEwM,6906
17
- pywebexec-1.1.13.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
- pywebexec-1.1.13.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
19
- pywebexec-1.1.13.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
20
- pywebexec-1.1.13.dist-info/RECORD,,
15
+ pywebexec-1.1.14.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
16
+ pywebexec-1.1.14.dist-info/METADATA,sha256=kjf-Ahy9gyQnhvDLAcQc_Ja4mXcDjBGr5OMq2qI02fA,6906
17
+ pywebexec-1.1.14.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
+ pywebexec-1.1.14.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
19
+ pywebexec-1.1.14.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
20
+ pywebexec-1.1.14.dist-info/RECORD,,