ivoryos 1.0.7__py3-none-any.whl → 1.0.9__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.
ivoryos/__init__.py CHANGED
@@ -57,7 +57,7 @@ def create_app(config_class=None):
57
57
  app.config.from_object(config_class or 'config.get_config()')
58
58
  os.makedirs(app.config["OUTPUT_FOLDER"], exist_ok=True)
59
59
  # Initialize extensions
60
- socketio.init_app(app, cors_allowed_origins="*", cookie=None, logger=True, engineio_logger=True)
60
+ socketio.init_app(app, cors_allowed_origins="*", cookie=None)
61
61
  login_manager.init_app(app)
62
62
  login_manager.login_view = "auth.login"
63
63
  db.init_app(app)
@@ -166,7 +166,7 @@ def run(module=None, host="0.0.0.0", port=None, debug=None, llm_server=None, mod
166
166
 
167
167
  # in case Python 3.12 or higher doesn't log URL
168
168
  if sys.version_info >= (3, 12):
169
- ip = utils.get_ip_address()
169
+ ip = utils.get_local_ip()
170
170
  print(f"Server running at http://localhost:{port}")
171
171
  if not ip == "127.0.0.1":
172
172
  print(f"Server running at http://{ip}:{port}")
@@ -1,4 +1,10 @@
1
1
  import ast
2
+ try:
3
+ from ast import unparse as ast_unparse
4
+ except ImportError:
5
+ import astor
6
+ ast_unparse = astor.to_source
7
+
2
8
  import builtins
3
9
  import json
4
10
  import keyword
@@ -419,7 +425,7 @@ class Script(db.Model):
419
425
  func_def = next(node for node in module.body if isinstance(node, ast.FunctionDef))
420
426
 
421
427
  # Extract function body as source lines
422
- line_collection[stype] = [ast.unparse(node) for node in func_def.body if not isinstance(node, ast.Return)]
428
+ line_collection[stype] = [ast_unparse(node) for node in func_def.body if not isinstance(node, ast.Return)]
423
429
  # print(line_collection[stype])
424
430
  return line_collection
425
431
 
ivoryos/utils/utils.py CHANGED
@@ -297,7 +297,7 @@ def web_config_entry_wrapper(data: dict, config_type: list):
297
297
  return filtered_rows
298
298
 
299
299
 
300
- def create_deck_snapshot(deck, save: bool = False, output_path: str = '', exclude_names: list[str] = []):
300
+ def create_deck_snapshot(deck, save: bool = False, output_path: str = '', exclude_names: list = []):
301
301
  """
302
302
  Create a deck snapshot of the given script
303
303
  :param deck: python module name to create the deck snapshot from e.g. __main__
ivoryos/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.0.7"
1
+ __version__ = "1.0.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ivoryos
3
- Version: 1.0.7
3
+ Version: 1.0.9
4
4
  Summary: an open-source Python package enabling Self-Driving Labs (SDLs) interoperability
5
5
  Home-page: https://gitlab.com/heingroup/ivoryos
6
6
  Author: Ivory Zhang
@@ -16,6 +16,7 @@ Requires-Dist: Flask-SQLAlchemy
16
16
  Requires-Dist: Flask-WTF
17
17
  Requires-Dist: SQLAlchemy-Utils
18
18
  Requires-Dist: python-dotenv
19
+ Requires-Dist: astor; python_version < "3.9"
19
20
 
20
21
  [![Documentation Status](https://readthedocs.org/projects/ivoryos/badge/?version=latest)](https://ivoryos.readthedocs.io/en/latest/?badge=latest)
21
22
  [![PyPI version](https://img.shields.io/pypi/v/ivoryos)](https://pypi.org/project/ivoryos/)
@@ -1,6 +1,6 @@
1
- ivoryos/__init__.py,sha256=9LWTha5Qprn0PX4pL0fbOS9VZ3p60Hd54APBxQPqv8A,8173
1
+ ivoryos/__init__.py,sha256=SEy7z9DYSYfSTDlBh8SuqEvBMkalkzeEpB-iE5WyBsI,8136
2
2
  ivoryos/config.py,sha256=sk4dskm-K_Nv4uaA3QuE6xtew8wL6q3HmIoLgRm7p8U,2153
3
- ivoryos/version.py,sha256=BW7SWRpHoxuOQZ67pS20yog2LWYl-nK7-BEFBNrHGgA,22
3
+ ivoryos/version.py,sha256=q2ACMkQx0Hm5xKo2YKJFBE7rTruciTSIN6AvWWL9nB8,22
4
4
  ivoryos/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  ivoryos/routes/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  ivoryos/routes/auth/auth.py,sha256=pvrYQN2XqH2OpZMxirFQZr9-c8yO29CpvQg9VR6JFsE,3256
@@ -38,13 +38,13 @@ ivoryos/templates/base.html,sha256=sDdwqOIUP2Get-py4E59PkieoGWLFpX6wAJe93s4aRo,8
38
38
  ivoryos/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  ivoryos/utils/bo_campaign.py,sha256=CVs7q15Pm2SRuJNaCvZKIxOFuv1xibM2yymtpAMAWOk,3285
40
40
  ivoryos/utils/client_proxy.py,sha256=0OT2xTMkqh_2ybgCxMV_71ZVUThWwrsnAhTIBY5vDR8,2095
41
- ivoryos/utils/db_models.py,sha256=zlmmD2600CYyn79gQq8k0Vra7BDBKJBAyNLYclIWdvs,27382
41
+ ivoryos/utils/db_models.py,sha256=HQSjMrZc1o1fvjx5Mf7W_53xPbT9aZ00xtUJJNPbwio,27502
42
42
  ivoryos/utils/form.py,sha256=k9d4AZz74FeOh4gkhDsZx3g4LZti_aJm9ZPRBkpOsE0,21933
43
43
  ivoryos/utils/global_config.py,sha256=OqfDrPgOzRdIUMD4V3pA9t6b-BATMjGZl8Jn7nkI56k,2138
44
44
  ivoryos/utils/llm_agent.py,sha256=-lVCkjPlpLues9sNTmaT7bT4sdhWvV2DiojNwzB2Lcw,6422
45
45
  ivoryos/utils/script_runner.py,sha256=0b5hLKAF2o0SQKiArhUsG8-4MA-eniAcjwi8gCNVwtY,14542
46
46
  ivoryos/utils/task_runner.py,sha256=u4nF0wOADu_HVlGYVTOXnUm1woWGgYAccr-ZCzgtb6Q,2899
47
- ivoryos/utils/utils.py,sha256=nGSw3vHkxXedX4T-AFEWGzDIU7h0NjrAf0wBt0Og9pk,13886
47
+ ivoryos/utils/utils.py,sha256=BzgKIMMb7vyUIwYMhGDsWtwJEy5vNKtEHRJHHSiTSnM,13881
48
48
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  tests/conftest.py,sha256=u2sQ6U-Lghyl7et1Oz6J2E5VZ47VINKcjRM_2leAE2s,3627
50
50
  tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -54,8 +54,8 @@ tests/integration/test_route_database.py,sha256=mS026W_hEuCTMpSkdRWvM-f4MYykK_6n
54
54
  tests/integration/test_route_design.py,sha256=PJAvGRiCY6B53Pu1v5vPAVHHsuaqRmRKk2eesSNshLU,1157
55
55
  tests/integration/test_route_main.py,sha256=bmuf8Y_9CRWhiLLf4up11ltEd5YCdsLx6I-o26VGDEw,1228
56
56
  tests/integration/test_sockets.py,sha256=4ZyFyExm7a-DYzVqpzEONpWeb1a0IT68wyFaQu0rY_Y,925
57
- ivoryos-1.0.7.dist-info/LICENSE,sha256=p2c8S8i-8YqMpZCJnadLz1-ofxnRMILzz6NCMIypRag,1084
58
- ivoryos-1.0.7.dist-info/METADATA,sha256=zgcTPGg5Wu0wJfHlzHD38V7ZHqia5hEgQoK9lfvaAXw,8886
59
- ivoryos-1.0.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
60
- ivoryos-1.0.7.dist-info/top_level.txt,sha256=mIOiZkdpSwxFJt1R5fsyOff8mNprXHq1nMGNKNULIyE,14
61
- ivoryos-1.0.7.dist-info/RECORD,,
57
+ ivoryos-1.0.9.dist-info/LICENSE,sha256=p2c8S8i-8YqMpZCJnadLz1-ofxnRMILzz6NCMIypRag,1084
58
+ ivoryos-1.0.9.dist-info/METADATA,sha256=hQZ8qTQfJGOrlFzsPj364ZTGKpgEeW0FKs7DJXqIbQc,8931
59
+ ivoryos-1.0.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
60
+ ivoryos-1.0.9.dist-info/top_level.txt,sha256=mIOiZkdpSwxFJt1R5fsyOff8mNprXHq1nMGNKNULIyE,14
61
+ ivoryos-1.0.9.dist-info/RECORD,,