pywebexec 1.1.3__py3-none-any.whl → 1.1.5__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
@@ -382,6 +382,8 @@ def run_command(command, params, command_id):
382
382
 
383
383
  @app.before_request
384
384
  def check_authentication():
385
+ if not app.config['USER'] and not app.config['LDAP_SERVER']:
386
+ return
385
387
  if 'username' not in session and request.endpoint not in ['login', 'static']:
386
388
  return auth.login_required(lambda: None)()
387
389
 
@@ -11,6 +11,11 @@ th { background-color: #f2f2f2; position: sticky; top: 0; z-index: 1; }
11
11
  .outcol {
12
12
  width: 100%;
13
13
  }
14
+ select { /* Safari bug */
15
+ font-size: 15px;
16
+ border: #aaa solid 1px;
17
+ border-radius: 5px;
18
+ }
14
19
  .output {
15
20
  white-space: pre-wrap;
16
21
  background: #f0f0f0;
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.3'
16
- __version_tuple__ = version_tuple = (1, 1, 3)
15
+ __version__ = version = '1.1.5'
16
+ __version_tuple__ = version_tuple = (1, 1, 5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.1.3
3
+ Version: 1.1.5
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -63,7 +63,7 @@ Requires-Dist: ldap3>=2.9.1
63
63
  [![Pypi version](https://img.shields.io/pypi/v/pywebexec.svg)](https://pypi.org/project/pywebexec/)
64
64
  ![example](https://github.com/joknarf/pywebexec/actions/workflows/python-publish.yml/badge.svg)
65
65
  [![Licence](https://img.shields.io/badge/licence-MIT-blue.svg)](https://shields.io/)
66
- [![](https://pepy.tech/badge/pywebexec)](https://pepy.tech/project/pywebexec)
66
+ [![PyPI Downloads](https://static.pepy.tech/badge/pywebexec)](https://pepy.tech/projects/pywebexec)
67
67
  [![Python versions](https://img.shields.io/badge/python-3.6+-blue.svg)](https://shields.io/)
68
68
 
69
69
  # pywebexec
@@ -122,7 +122,7 @@ Generated password is given if no `--pasword` option
122
122
  $ export PYWEBEXEC_LDAP_SERVER=ldap://ldap.forumsys.com:389
123
123
  $ export PYWEBEXEC_LDAP_BIND_DN="cn=read-only-admin,dc=example,dc=com"
124
124
  $ export PYWEBEXEC_LDAP_BIND_PASSWORD="password"
125
- $ export PYWEBEXEC_LDAP_GROUPS=ou=mathematicians,ou=scientists
125
+ $ export PYWEBEXEC_LDAP_GROUPS="ou=mathematicians,ou=scientists"
126
126
  $ export PYWEBEXEC_LDAP_USER_ID="uid"
127
127
  $ export PYWEBEXEC_LDAP_BASE_DN="dc=example,dc=com"
128
128
  $ pywebexec
@@ -1,7 +1,7 @@
1
1
  pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
2
- pywebexec/pywebexec.py,sha256=mRvTAK8O9VtGPqUdQxIeYBzpjLYkYVru1rzWmS3Ui5Q,21149
3
- pywebexec/version.py,sha256=HwUMBHweBEaQ6rszqbo52qsXT3x6N8a86Dx1PmA5rxM,411
4
- pywebexec/static/css/style.css,sha256=NiBoOzZ35eBM1ZP2HFNda-dzOsAv4xRPh3vsvVgLL9c,2513
2
+ pywebexec/pywebexec.py,sha256=yGx5OkTNFovjsludN5hdX43qoHb7W3FoxmDuJzlq2CU,21229
3
+ pywebexec/version.py,sha256=K7MsjSZDN7hQiclQF8UfNY4KbJK_zB9svdvabdG3p98,411
4
+ pywebexec/static/css/style.css,sha256=XUYEf5QG_-ZiWFI9LUzYCch800O_Co4pwB5-39HB9dk,2614
5
5
  pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
6
6
  pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
7
7
  pywebexec/static/images/copy_ok.svg,sha256=mEqUVUhSq8xaJK2msQkxRawnz_KwlCZ-tok8QS6hJ3g,451
@@ -12,9 +12,9 @@ pywebexec/static/images/success.svg,sha256=PJDcCSTevJh7rkfSFLtc7P0pbeh8PVQBS8DaO
12
12
  pywebexec/static/js/script.js,sha256=RrlozMlUx_7MJTf7IG98rzJsLgwEMyEV9bSW6QpQdZw,7088
13
13
  pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pywebexec/templates/index.html,sha256=Q3tubZjBzq4v1aV_BDFSvAKnoim-wKo3EkE_pkA2jm4,1302
15
- pywebexec-1.1.3.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
16
- pywebexec-1.1.3.dist-info/METADATA,sha256=qBvd4O3GRqPGYwxHChmltKH8Tjh16H-GDTx3cYZnBUc,6743
17
- pywebexec-1.1.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
- pywebexec-1.1.3.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
19
- pywebexec-1.1.3.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
20
- pywebexec-1.1.3.dist-info/RECORD,,
15
+ pywebexec-1.1.5.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
16
+ pywebexec-1.1.5.dist-info/METADATA,sha256=y7TXfgdRmg0nMdeaZQsmIxjK5_ds6_8Y1SuVbtEznrc,6767
17
+ pywebexec-1.1.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
+ pywebexec-1.1.5.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
19
+ pywebexec-1.1.5.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
20
+ pywebexec-1.1.5.dist-info/RECORD,,