ivoryos 0.1.7__tar.gz → 0.1.8__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 ivoryos might be problematic. Click here for more details.

Files changed (51) hide show
  1. {ivoryos-0.1.7/ivoryos.egg-info → ivoryos-0.1.8}/PKG-INFO +1 -1
  2. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/__init__.py +1 -1
  3. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/control/templates/control/controllers.html +1 -1
  4. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/database/database.py +0 -9
  5. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/design/design.py +10 -0
  6. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/design/templates/design/experiment_builder.html +1 -1
  7. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/utils/form.py +3 -2
  8. {ivoryos-0.1.7 → ivoryos-0.1.8/ivoryos.egg-info}/PKG-INFO +1 -1
  9. {ivoryos-0.1.7 → ivoryos-0.1.8}/setup.py +1 -1
  10. {ivoryos-0.1.7 → ivoryos-0.1.8}/LICENSE +0 -0
  11. {ivoryos-0.1.7 → ivoryos-0.1.8}/MANIFEST.in +0 -0
  12. {ivoryos-0.1.7 → ivoryos-0.1.8}/README.md +0 -0
  13. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/config.py +0 -0
  14. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/__init__.py +0 -0
  15. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/auth/__init__.py +0 -0
  16. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/auth/auth.py +0 -0
  17. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/auth/templates/auth/login.html +0 -0
  18. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/auth/templates/auth/signup.html +0 -0
  19. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/control/__init__.py +0 -0
  20. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/control/control.py +0 -0
  21. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/control/templates/control/controllers_home.html +0 -0
  22. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/control/templates/control/controllers_new.html +0 -0
  23. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/database/__init__.py +0 -0
  24. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/database/templates/database/experiment_database.html +0 -0
  25. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/design/__init__.py +0 -0
  26. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/design/templates/design/experiment_run.html +0 -0
  27. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/main/__init__.py +0 -0
  28. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/main/main.py +0 -0
  29. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/main/templates/main/help.html +0 -0
  30. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/routes/main/templates/main/home.html +0 -0
  31. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/favicon.ico +0 -0
  32. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/gui_annotation/Slide1.png +0 -0
  33. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/gui_annotation/Slide2.PNG +0 -0
  34. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/js/overlay.js +0 -0
  35. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/js/socket_handler.js +0 -0
  36. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/js/sortable_card.js +0 -0
  37. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/js/sortable_design.js +0 -0
  38. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/logo.webp +0 -0
  39. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/static/style.css +0 -0
  40. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/templates/base.html +0 -0
  41. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/utils/__init__.py +0 -0
  42. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/utils/db_models.py +0 -0
  43. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/utils/global_config.py +0 -0
  44. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/utils/llm_agent.py +0 -0
  45. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/utils/script_runner.py +0 -0
  46. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos/utils/utils.py +0 -0
  47. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos.egg-info/SOURCES.txt +0 -0
  48. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos.egg-info/dependency_links.txt +0 -0
  49. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos.egg-info/requires.txt +0 -0
  50. {ivoryos-0.1.7 → ivoryos-0.1.8}/ivoryos.egg-info/top_level.txt +0 -0
  51. {ivoryos-0.1.7 → ivoryos-0.1.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ivoryos
3
- Version: 0.1.7
3
+ Version: 0.1.8
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
@@ -19,7 +19,7 @@ global_config = GlobalConfig()
19
19
 
20
20
 
21
21
  def create_app(config_class=None):
22
- url_prefix = os.getenv('URL_PREFIX', None)
22
+ url_prefix = os.getenv('URL_PREFIX', "/ivoryos")
23
23
  app = Flask(__name__, static_url_path=f'{url_prefix}/static', static_folder='static')
24
24
  app.config.from_object(config_class or 'config.get_config()')
25
25
 
@@ -37,7 +37,7 @@
37
37
  {% endfor %}
38
38
  </div>
39
39
  <div class="input-group mb-3">
40
- <button type="submit" name="{{ function }}" id="{{ function }}" class="form-control" style="background-color: #a5cece;">{{function}} </button>
40
+ <button type="submit" name="{{ function }}" id="{{ function }}" class="form-control" style="background-color: #a5cece;">{{format_name(function)}} </button>
41
41
  </div>
42
42
  </form>
43
43
  </div>
@@ -7,15 +7,6 @@ from ivoryos.utils.utils import get_script_file, post_script_file
7
7
  database = Blueprint('database', __name__, template_folder='templates/database')
8
8
 
9
9
 
10
- @database.route("/delete/<id>")
11
- @login_required
12
- def delete_action(id):
13
- back = request.referrer
14
- script = get_script_file()
15
- script.delete_action(id)
16
- post_script_file(script)
17
- return redirect(back)
18
-
19
10
 
20
11
  @database.route("/edit_workflow/<workflow_name>")
21
12
  @login_required
@@ -394,3 +394,13 @@ def edit_action(uuid):
394
394
  flash(e.__str__())
395
395
  session.pop('edit_action')
396
396
  return redirect(url_for('design.experiment_builder'))
397
+
398
+
399
+ @design.route("/delete/<id>", methods=['GET', 'POST'])
400
+ @login_required
401
+ def delete_action(id):
402
+ back = request.referrer
403
+ script = utils.get_script_file()
404
+ script.delete_action(id)
405
+ utils.post_script_file(script)
406
+ return redirect(back)
@@ -302,7 +302,7 @@
302
302
  {% for button in buttons %}
303
303
  <li id="{{ button['id'] }}" style="list-style-type: none;">
304
304
  <a href="{{ url_for('design.edit_action', uuid=button['uuid']) }}" type="button" class="btn btn-light" style="{{ button['style'] }}">{{ button['label'] }}</a>
305
- <a href="/delete/{{ button['id'] }}" type="button" class="btn btn-light"><span class="bi bi-trash"></span></a>
305
+ <a href="{{ url_for('design.delete_action', id=button['id']) }}" type="button" class="btn btn-light"><span class="bi bi-trash"></span></a>
306
306
  </li>
307
307
  {% endfor %}
308
308
  </ul>
@@ -220,7 +220,8 @@ def create_form_for_method(method, method_name, autofill, script=None, design=Tr
220
220
  formatted_param_name = format_name(param.name)
221
221
  field_kwargs = {
222
222
  "label": formatted_param_name,
223
- "default": f'#{param.name}' if autofill else (param.default if param.default is not param.empty else ""),
223
+ "default": f'#{param.name}' if autofill else (param.default if param.default is not param.empty else None),
224
+ "validators": [InputRequired()] if param.default is param.empty else None,
224
225
  **({"script": script} if (autofill or design) else {})
225
226
  }
226
227
  field_class, placeholder_text = annotation_mapping.get(
@@ -255,7 +256,7 @@ def create_form_from_module(sdl_module, autofill: bool, script=None, design=True
255
256
  attr = getattr(sdl_module, attr_name)
256
257
  if inspect.ismethod(attr) and not attr_name.startswith('_'):
257
258
  form_class = create_add_form(attr, attr_name, autofill, script, design)
258
- method_forms[format_name(attr_name)] = form_class()
259
+ method_forms[attr_name] = form_class()
259
260
  return method_forms
260
261
 
261
262
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ivoryos
3
- Version: 0.1.7
3
+ Version: 0.1.8
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='ivoryos',
5
- version='0.1.7',
5
+ version='0.1.8',
6
6
  packages=find_packages(exclude=['example', 'example.*', 'docs', 'docs.*']),
7
7
  include_package_data=True,
8
8
  description='an open-source Python package enabling Self-Driving Labs (SDLs) interoperability',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes