statable 3.4.3__tar.gz → 3.5.1__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.
- {statable-3.4.3 → statable-3.5.1}/PKG-INFO +4 -1
- {statable-3.4.3 → statable-3.5.1}/codegen/__init__.py +37 -37
- {statable-3.4.3 → statable-3.5.1}/codegen/c_code_generator.py +1784 -1771
- {statable-3.4.3 → statable-3.5.1}/codegen/code_templates.py +17 -15
- {statable-3.4.3 → statable-3.5.1}/codegen/enum_generator.py +376 -376
- {statable-3.4.3 → statable-3.5.1}/codegen/role_function_generator.py +9 -9
- {statable-3.4.3 → statable-3.5.1}/codegen/state_actions_generator.py +394 -394
- {statable-3.4.3 → statable-3.5.1}/codegen/struct_generator.py +5 -5
- {statable-3.4.3 → statable-3.5.1}/codegen/timer_generator.py +1 -1
- {statable-3.4.3 → statable-3.5.1}/codegen/transition_generator.py +906 -906
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/base_validator.py +24 -24
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/cell_validator.py +274 -274
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/state_validator.py +87 -87
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/prompt_generator.py +723 -723
- {statable-3.4.3 → statable-3.5.1}/codegen/variable_generator.py +3 -3
- statable-3.5.1/pyproject.toml +85 -0
- {statable-3.4.3 → statable-3.5.1}/statable/__init__.py +75 -70
- {statable-3.4.3 → statable-3.5.1}/statable/__main__.py +53 -96
- statable-3.5.1/statable/output_utils.py +47 -0
- statable-3.5.1/statable/smoke.py +285 -0
- {statable-3.4.3 → statable-3.5.1}/statable/xml_io.py +1163 -1163
- {statable-3.4.3 → statable-3.5.1}/statable.egg-info/PKG-INFO +4 -1
- {statable-3.4.3 → statable-3.5.1}/statable.egg-info/SOURCES.txt +8 -1
- statable-3.5.1/statable.egg-info/requires.txt +12 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/code_generation_dialog.py +42 -0
- statable-3.5.1/statable_gui/fs_cleanup.py +55 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/main_window.py +79 -0
- statable-3.5.1/statable_gui/output_warning.py +70 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_ci_registration.py +75 -69
- {statable-3.4.3 → statable-3.5.1}/tests/test_readme_consistency.py +14 -3
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_0_g1_shared.py +168 -165
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_0_s1_packaging.py +132 -129
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_0_s2_public_api.py +149 -146
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_0_s3_cli.py +218 -215
- statable-3.5.1/tests/test_v3_5_1_eclipse_installer.py +238 -0
- statable-3.5.1/tests/test_v3_5_gui_output_clean.py +173 -0
- statable-3.5.1/tests/test_v3_5_s1_smoke.py +59 -0
- statable-3.4.3/pyproject.toml +0 -47
- statable-3.4.3/statable.egg-info/requires.txt +0 -7
- {statable-3.4.3 → statable-3.5.1}/README.md +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/code_merger.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/config.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/event_queue_generator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/interrupt_generator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/naming_convention.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/osal_generator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/sample_data.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/type_mapper.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/change_actions.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/change_applier.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/clipboard_manager.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/data/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/data/action_definitions.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/data/keywords.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/data/prompt_templates.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/data/validation_rules.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/custom_type_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/event_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/flag_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/interrupt_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/queue_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/role_function_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/timer_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/transition_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/items/variable_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/logger.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/models.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/response_parser.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/response_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/validation_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/codegen/validate/validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/setup.cfg +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/cli.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/global_defs.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/mermaid_gen.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/model.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/parser.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/sample_data.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/shared/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/shared/condition_library.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/shared/literal_library.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/shared/role_function_library.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable/state_machine.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable.egg-info/dependency_links.txt +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable.egg-info/entry_points.txt +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable.egg-info/top_level.txt +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/action_edit_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/code_generation_settings_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/common_widgets.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/condition_builder_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/condition_edit_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/condition_template_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/config.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/dialogs.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/event_definition_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/event_delivery_settings_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/event_queue_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/global_defs.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/global_defs_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/i18n/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/interrupt_handler_edit_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/layer_settings_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/libcntrl/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/libcntrl/condition_library.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/libcntrl/literal_library.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/libcntrl/literal_management_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/libcntrl/role_function_edit_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/libcntrl/role_function_library.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/literal_definition_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/logger.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/matrix_table.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/new_project_templates.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/new_project_wizard.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/preference_keys.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/preferences.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/role_function_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/sample_data.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/state_actions_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/symbol_picker.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/traceball.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/__init__.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/actions_tab.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/code_widget.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/coverage_analyzer.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/draft.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/edit_dialogs.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/overview_tab.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/palette_widget.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/relations_edit_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/relations_tab.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/system_global_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/transition_actions_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/transition_editor_direct/transitions_tab.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/validation_dialog.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/statable_gui/widgets.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p1.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p12_10.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p12_2.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p12_5.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p12_6.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p12_7.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p12_8.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p12_9.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p2.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p3.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p4a.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_2_p4b.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_3_p1.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_4_p1_merge.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p1.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p10.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p11.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p2.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p3.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p4.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p5.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p6.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p8.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_5_p9.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_6_p1.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_6_p2.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_6_p3.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_7_p3.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_7_p4.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_7_p5_validation.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_8_p1_ai_prompt.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_8_p2_response_parser.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_8_p3_response_validator.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v2_8_p4_gui_integration.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_0_s4_docs.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_2_s1_wizard.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_2_s2_signals.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_4_0_signal_safety.py +0 -0
- {statable-3.4.3 → statable-3.5.1}/tests/test_v3_4_0_state_actions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statable
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5.1
|
|
4
4
|
Summary: MISRA C:2012-aware state machine design and C code generation for embedded systems
|
|
5
5
|
Author: Hideki Akashi
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -23,6 +23,9 @@ Requires-Dist: PySide6>=6.0; extra == "gui"
|
|
|
23
23
|
Provides-Extra: dev
|
|
24
24
|
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
25
25
|
Requires-Dist: pycparser; extra == "dev"
|
|
26
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
27
|
+
Requires-Dist: coverage>=7.0; extra == "dev"
|
|
28
|
+
Requires-Dist: tomli>=2.0; python_version < "3.11" and extra == "dev"
|
|
26
29
|
|
|
27
30
|
# StaTable
|
|
28
31
|
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
# codegen package
|
|
2
|
-
"""
|
|
3
|
-
StaTable code generation layer
|
|
4
|
-
|
|
5
|
-
[v1.5 added]
|
|
6
|
-
- Keep re-exports minimal
|
|
7
|
-
- CCodeGenerator loads many submodules at generation time,
|
|
8
|
-
so it is not re-exported at top level (to reduce startup time)
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
__version__ = "3.
|
|
12
|
-
|
|
13
|
-
__all__ = [
|
|
14
|
-
'CCodeGenerator',
|
|
15
|
-
'CodeGenerationConfig',
|
|
16
|
-
'ConfigManager',
|
|
17
|
-
'validate',
|
|
18
|
-
'__version__',
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def __getattr__(name):
|
|
23
|
-
"""\n PEP 562 lazy import\n"""
|
|
24
|
-
if name == 'CCodeGenerator':
|
|
25
|
-
from .c_code_generator import CCodeGenerator
|
|
26
|
-
return CCodeGenerator
|
|
27
|
-
if name == 'CodeGenerationConfig':
|
|
28
|
-
from .config import CodeGenerationConfig
|
|
29
|
-
return CodeGenerationConfig
|
|
30
|
-
if name == 'ConfigManager':
|
|
31
|
-
from .config import ConfigManager
|
|
32
|
-
return ConfigManager
|
|
33
|
-
if name == 'validate':
|
|
34
|
-
import importlib
|
|
35
|
-
return importlib.import_module('.validate', __name__)
|
|
36
|
-
raise AttributeError(
|
|
37
|
-
f"module 'codegen' has no attribute {name!r}"
|
|
1
|
+
# codegen package
|
|
2
|
+
"""
|
|
3
|
+
StaTable code generation layer
|
|
4
|
+
|
|
5
|
+
[v1.5 added]
|
|
6
|
+
- Keep re-exports minimal
|
|
7
|
+
- CCodeGenerator loads many submodules at generation time,
|
|
8
|
+
so it is not re-exported at top level (to reduce startup time)
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
__version__ = "3.5.1"
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'CCodeGenerator',
|
|
15
|
+
'CodeGenerationConfig',
|
|
16
|
+
'ConfigManager',
|
|
17
|
+
'validate',
|
|
18
|
+
'__version__',
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def __getattr__(name):
|
|
23
|
+
"""\n PEP 562 lazy import\n"""
|
|
24
|
+
if name == 'CCodeGenerator':
|
|
25
|
+
from .c_code_generator import CCodeGenerator
|
|
26
|
+
return CCodeGenerator
|
|
27
|
+
if name == 'CodeGenerationConfig':
|
|
28
|
+
from .config import CodeGenerationConfig
|
|
29
|
+
return CodeGenerationConfig
|
|
30
|
+
if name == 'ConfigManager':
|
|
31
|
+
from .config import ConfigManager
|
|
32
|
+
return ConfigManager
|
|
33
|
+
if name == 'validate':
|
|
34
|
+
import importlib
|
|
35
|
+
return importlib.import_module('.validate', __name__)
|
|
36
|
+
raise AttributeError(
|
|
37
|
+
f"module 'codegen' has no attribute {name!r}"
|
|
38
38
|
)
|