odsbox-pilot 1.0.0__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.
@@ -0,0 +1,192 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of developing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent contributions
76
+ Licensors have made that are necessarily infringed by their
77
+ Contribution(s) alone or by the combined Work (in such form). If You
78
+ institute patent litigation against any entity (including a cross-claim
79
+ or counterclaim in a lawsuit) alleging that the Work or any
80
+ Contributor's patent claims (including a cross-clause) constitutes
81
+ direct or contributory patent infringement, then any patent licenses
82
+ granted to You under this License for that Work shall terminate
83
+ as of the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the
86
+ Work or Derivative Works thereof in any medium, with or without
87
+ modifications, and in Source or Object form, provided that You
88
+ meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or Derivative
91
+ Works a copy of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices
94
+ stating that You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works
97
+ that You distribute, all copyright, patent, trademark, and
98
+ attribution notices from the Source form of the Work,
99
+ excluding those notices that do not pertain to any part of
100
+ the Derivative Works; and
101
+
102
+ (d) If the Work includes a "NOTICE" text file as part of its
103
+ distribution, You must include a readable copy of the
104
+ attribution notices contained within such NOTICE file, in
105
+ at least one of the following places: within a NOTICE text
106
+ file distributed as part of the Derivative Works; within
107
+ the Source form or documentation, if provided along with the
108
+ Derivative Works; or, within a display generated by the
109
+ Derivative Works, if and wherever such third-party notices
110
+ normally appear. The contents of the NOTICE file are for
111
+ informational purposes only and do not modify the License.
112
+ You may add Your own attribution notices within Derivative
113
+ Works that You distribute, alongside or in addition to the
114
+ NOTICE text from the Work, provided that such additional
115
+ attribution notices cannot be construed as modifying the License.
116
+
117
+ You may add Your own license statement for Your modifications and
118
+ may provide additional grant of rights to use, copy, modify, merge,
119
+ publish, distribute, sublicense, and/or sell copies of the Work,
120
+ and to permit persons to whom the Work is furnished to do so,
121
+ subject to the following conditions:
122
+
123
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
124
+ any Contribution intentionally submitted for inclusion in the Work
125
+ by You to the Licensor shall be under the terms and conditions of
126
+ this License, without any additional terms or conditions.
127
+ Notwithstanding the above, nothing herein shall supersede or modify
128
+ the terms of any separate license agreement you may have executed
129
+ with Licensor regarding such Contributions.
130
+
131
+ 6. Trademarks. This License does not grant permission to use the trade
132
+ names, trademarks, service marks, or product names of the Licensor,
133
+ except as required for reasonable and customary use in describing the
134
+ origin of the Work and reproducing the content of the NOTICE file.
135
+
136
+ 7. Disclaimer of Warranty. Unless required by applicable law or
137
+ agreed to in writing, Licensor provides the Work (and each
138
+ Contributor provides its Contributions) on an "AS IS" BASIS,
139
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
140
+ implied, including, without limitation, any warranties or conditions
141
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
142
+ PARTICULAR PURPOSE. You are solely responsible for determining the
143
+ appropriateness of using or reproducing the Work and assume any
144
+ risks associated with Your exercise of permissions under this License.
145
+
146
+ 8. Limitation of Liability. In no event and under no legal theory,
147
+ whether in tort (including negligence), contract, or otherwise,
148
+ unless required by applicable law (such as deliberate and grossly
149
+ negligent acts) or agreed to in writing, shall any Contributor be
150
+ liable to You for damages, including any direct, indirect, special,
151
+ incidental, or exemplary damages of any character arising as a
152
+ result of this License or out of the use or inability to use the
153
+ Work (including but not limited to damages for loss of goodwill,
154
+ work stoppage, computer failure or malfunction, or all other
155
+ commercial damages or losses), even if such Contributor has been
156
+ advised of the possibility of such damages.
157
+
158
+ 9. Accepting Warranty or Additional Liability. While redistributing
159
+ the Work or Derivative Works thereof, You may choose to offer,
160
+ and charge a fee for, acceptance of support, warranty, indemnity,
161
+ or other liability obligations and/or rights consistent with this
162
+ License. However, in accepting such obligations, You may offer such
163
+ obligations only on Your own behalf and on Your sole responsibility,
164
+ not on behalf of any other Contributor, and only if You agree to
165
+ indemnify, defend, and hold each Contributor harmless for any
166
+ liability incurred by, or claims asserted against, such Contributor
167
+ by reason of your accepting any such warranty or additional liability.
168
+
169
+ END OF TERMS AND CONDITIONS
170
+
171
+ APPENDIX: How to apply the Apache License to your work.
172
+
173
+ To apply the Apache License to your work, attach the following
174
+ boilerplate notice, with the fields enclosed by brackets "[]"
175
+ replaced with your own identifying information. (Don't include
176
+ the brackets!) The text should be enclosed in the appropriate
177
+ comment syntax for the syntax used in the source file. Please also
178
+ include a "NOTICE" or "README" or similar file with the same fields.
179
+
180
+ Copyright 2026 odsbox-pilot contributors
181
+
182
+ Licensed under the Apache License, Version 2.0 (the "License");
183
+ you may not use this file except in compliance with the License.
184
+ You may obtain a copy of the License at
185
+
186
+ http://www.apache.org/licenses/LICENSE-2.0
187
+
188
+ Unless required by applicable law or agreed to in writing, software
189
+ distributed under the License is distributed on an "AS IS" BASIS,
190
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
191
+ See the License for the specific language governing permissions and
192
+ limitations under the License.
@@ -0,0 +1,92 @@
1
+ Metadata-Version: 2.4
2
+ Name: odsbox-pilot
3
+ Version: 1.0.0
4
+ Summary: ASAM ODS desktop query tool powered by odsbox
5
+ Keywords: ASAM,ODS,measurement data,query,desktop
6
+ Author: Andreas K
7
+ Author-email: Andreas K <totonga@gmail.com>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Topic :: Scientific/Engineering
17
+ Classifier: Topic :: Database :: Front-Ends
18
+ Requires-Dist: keyring>=25.7.0
19
+ Requires-Dist: odsbox[oidc]>=1.2.0
20
+ Requires-Dist: pandas>=2.0.0
21
+ Requires-Dist: wxpython>=4.2.5 ; extra == 'gui'
22
+ Requires-Python: >=3.14
23
+ Project-URL: Changelog, https://github.com/totonga/odsbox-pilot/releases
24
+ Project-URL: Homepage, https://github.com/totonga/odsbox-pilot
25
+ Project-URL: Issues, https://github.com/totonga/odsbox-pilot/issues
26
+ Project-URL: Repository, https://github.com/totonga/odsbox-pilot
27
+ Provides-Extra: gui
28
+ Description-Content-Type: text/markdown
29
+
30
+ # odsbox-pilot
31
+
32
+ [![PyPI](https://img.shields.io/pypi/v/odsbox-pilot)](https://pypi.org/project/odsbox-pilot/)
33
+ [![Python](https://img.shields.io/pypi/pyversions/odsbox-pilot)](https://pypi.org/project/odsbox-pilot/)
34
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
35
+ [![CI](https://github.com/totonga/odsbox-pilot/actions/workflows/ci.yml/badge.svg)](https://github.com/totonga/odsbox-pilot/actions/workflows/ci.yml)
36
+
37
+ A desktop query tool for [ASAM ODS](https://www.asam.net/standards/detail/ods/) servers, built on top of [odsbox](https://pypi.org/project/odsbox/).
38
+
39
+ ## Features
40
+
41
+ - Connect to ASAM ODS servers with multiple auth modes (Basic, OIDC, M2M)
42
+ - Manage multiple server configurations with secure credential storage via `keyring`
43
+ - Interactive query editor with syntax highlighting (CodeMirror)
44
+ - Query history and built-in examples
45
+ - Tabular result display powered by pandas
46
+
47
+ ## Requirements
48
+
49
+ - Python 3.14+
50
+ - A running ASAM ODS server
51
+
52
+ ## Installation
53
+
54
+ ```bash
55
+ pip install odsbox-pilot
56
+ ```
57
+
58
+ ## Usage
59
+
60
+ Launch the application:
61
+
62
+ ```bash
63
+ odsbox-pilot
64
+ ```
65
+
66
+ Or run as a module:
67
+
68
+ ```bash
69
+ python -m odsbox_pilot
70
+ ```
71
+
72
+ ## Development
73
+
74
+ This project uses [uv](https://github.com/astral-sh/uv) for dependency management.
75
+
76
+ ```bash
77
+ # Clone and set up
78
+ git clone https://github.com/totonga/odsbox-pilot.git
79
+ cd odsbox-pilot
80
+ uv sync
81
+
82
+ # Run tests
83
+ uv run pytest tests/unit/
84
+
85
+ # Lint and type-check
86
+ uv run ruff check src/ tests/
87
+ uv run mypy src/
88
+ ```
89
+
90
+ ## License
91
+
92
+ Apache License 2.0 — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,63 @@
1
+ # odsbox-pilot
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/odsbox-pilot)](https://pypi.org/project/odsbox-pilot/)
4
+ [![Python](https://img.shields.io/pypi/pyversions/odsbox-pilot)](https://pypi.org/project/odsbox-pilot/)
5
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
6
+ [![CI](https://github.com/totonga/odsbox-pilot/actions/workflows/ci.yml/badge.svg)](https://github.com/totonga/odsbox-pilot/actions/workflows/ci.yml)
7
+
8
+ A desktop query tool for [ASAM ODS](https://www.asam.net/standards/detail/ods/) servers, built on top of [odsbox](https://pypi.org/project/odsbox/).
9
+
10
+ ## Features
11
+
12
+ - Connect to ASAM ODS servers with multiple auth modes (Basic, OIDC, M2M)
13
+ - Manage multiple server configurations with secure credential storage via `keyring`
14
+ - Interactive query editor with syntax highlighting (CodeMirror)
15
+ - Query history and built-in examples
16
+ - Tabular result display powered by pandas
17
+
18
+ ## Requirements
19
+
20
+ - Python 3.14+
21
+ - A running ASAM ODS server
22
+
23
+ ## Installation
24
+
25
+ ```bash
26
+ pip install odsbox-pilot
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ Launch the application:
32
+
33
+ ```bash
34
+ odsbox-pilot
35
+ ```
36
+
37
+ Or run as a module:
38
+
39
+ ```bash
40
+ python -m odsbox_pilot
41
+ ```
42
+
43
+ ## Development
44
+
45
+ This project uses [uv](https://github.com/astral-sh/uv) for dependency management.
46
+
47
+ ```bash
48
+ # Clone and set up
49
+ git clone https://github.com/totonga/odsbox-pilot.git
50
+ cd odsbox-pilot
51
+ uv sync
52
+
53
+ # Run tests
54
+ uv run pytest tests/unit/
55
+
56
+ # Lint and type-check
57
+ uv run ruff check src/ tests/
58
+ uv run mypy src/
59
+ ```
60
+
61
+ ## License
62
+
63
+ Apache License 2.0 — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,98 @@
1
+ [project]
2
+ name = "odsbox-pilot"
3
+ version = "1.0.0"
4
+ description = "ASAM ODS desktop query tool powered by odsbox"
5
+ readme = "README.md"
6
+ license = "Apache-2.0"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.14"
9
+ authors = [
10
+ { name = "Andreas K", email = "totonga@gmail.com" },
11
+ ]
12
+ keywords = ["ASAM", "ODS", "measurement data", "query", "desktop"]
13
+ classifiers = [
14
+ "Development Status :: 3 - Alpha",
15
+ "Intended Audience :: Developers",
16
+ "Intended Audience :: Science/Research",
17
+ "Operating System :: OS Independent",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.14",
20
+ "Topic :: Scientific/Engineering",
21
+ "Topic :: Database :: Front-Ends",
22
+ ]
23
+ dependencies = [
24
+ "keyring>=25.7.0",
25
+ "odsbox[oidc]>=1.2.0",
26
+ "pandas>=2.0.0",
27
+ ]
28
+
29
+ [project.optional-dependencies]
30
+ gui = ["wxpython>=4.2.5"]
31
+
32
+ [project.urls]
33
+ Homepage = "https://github.com/totonga/odsbox-pilot"
34
+ Repository = "https://github.com/totonga/odsbox-pilot"
35
+ Issues = "https://github.com/totonga/odsbox-pilot/issues"
36
+ Changelog = "https://github.com/totonga/odsbox-pilot/releases"
37
+
38
+ [project.scripts]
39
+ odsbox-pilot = "odsbox_pilot.__main__:main"
40
+
41
+ [dependency-groups]
42
+ dev = [
43
+ "mypy>=1.20.2",
44
+ "pytest>=9.0.3",
45
+ "pytest-mock>=3.14.0",
46
+ "python-semantic-release>=9.0.0",
47
+ "ruff>=0.15.12",
48
+ ]
49
+
50
+ [build-system]
51
+ requires = ["uv_build>=0.6,<0.7"]
52
+ build-backend = "uv_build"
53
+
54
+ [tool.pytest.ini_options]
55
+ testpaths = ["tests"]
56
+ pythonpath = ["src"]
57
+ markers = [
58
+ "integration: tests that require a live ASAM ODS server",
59
+ ]
60
+
61
+ [tool.ruff]
62
+ line-length = 100
63
+ target-version = "py314"
64
+
65
+ [tool.ruff.lint]
66
+ select = ["E", "F", "I", "UP", "B", "SIM"]
67
+ ignore = ["E501"]
68
+
69
+ [tool.mypy]
70
+ python_version = "3.14"
71
+ strict = true
72
+ ignore_missing_imports = true
73
+
74
+ [[tool.mypy.overrides]]
75
+ # wxPython has no type stubs; disable strict checking for all GUI modules
76
+ module = [
77
+ "odsbox_pilot.app",
78
+ "odsbox_pilot.__main__",
79
+ "odsbox_pilot.query.editor_panel",
80
+ "odsbox_pilot.query.main_frame",
81
+ "odsbox_pilot.query.result_grid",
82
+ "odsbox_pilot.connection.connect_dialog",
83
+ "odsbox_pilot.connection.server_list_dialog",
84
+ ]
85
+ ignore_errors = true
86
+
87
+ [tool.semantic_release]
88
+ version_toml = ["pyproject.toml:project.version"]
89
+ version_variables = ["src/odsbox_pilot/__init__.py:__version__"]
90
+ tag_format = "v{version}"
91
+ build_command = "uv build"
92
+
93
+ [tool.semantic_release.branches.main]
94
+ match = "main"
95
+ prerelease = false
96
+
97
+ [tool.semantic_release.changelog]
98
+ exclude_commit_patterns = ["^Merge", "^chore"]
@@ -0,0 +1,3 @@
1
+ """ASAM ODS Pilot — desktop query tool for ASAM ODS servers."""
2
+
3
+ __version__ = "1.0.0"
@@ -0,0 +1,23 @@
1
+ """Entry point: python -m odsbox_pilot"""
2
+
3
+ import sys
4
+
5
+
6
+ def main() -> None:
7
+ try:
8
+ from odsbox_pilot.app import OdsPilotApp
9
+ except ImportError as exc:
10
+ print(
11
+ "wxPython is required to run odsbox-pilot.\n"
12
+ "Install it with: pip install odsbox-pilot[gui]",
13
+ file=sys.stderr,
14
+ )
15
+ raise SystemExit(1) from exc
16
+
17
+ app = OdsPilotApp()
18
+ app.MainLoop()
19
+ sys.exit(0)
20
+
21
+
22
+ if __name__ == "__main__":
23
+ main()
@@ -0,0 +1,77 @@
1
+ """OdsPilotApp: application bootstrap."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import contextlib
6
+
7
+ import wx # type: ignore[import-untyped]
8
+
9
+ from odsbox_pilot.connection.manager import ServerConfigManager
10
+ from odsbox_pilot.connection.server_list_dialog import ServerListDialog
11
+
12
+
13
+ class OdsPilotApp(wx.App):
14
+ def OnInit(self) -> bool: # noqa: N802
15
+ manager = ServerConfigManager()
16
+ dlg = ServerListDialog(None, manager)
17
+
18
+ while True:
19
+ result = dlg.ShowModal()
20
+ if result != wx.ID_OK:
21
+ dlg.Destroy()
22
+ return False # user closed the dialog — exit
23
+
24
+ config = dlg.selected_config
25
+ if config is None:
26
+ dlg.Destroy()
27
+ return False
28
+
29
+ # Try to connect (opens ConnectDialog flow via Save & Connect path,
30
+ # but here the user clicked "Connect" from the list which means the
31
+ # config already exists — we just need to open ConnectDialog in
32
+ # connect-only mode to resolve the secret and build a ConI).
33
+ con_i = self._connect(dlg, manager, config)
34
+ if con_i is None:
35
+ # Connection cancelled or failed — go back to server list
36
+ continue
37
+
38
+ dlg.Destroy()
39
+ self._open_main_frame(con_i, config.name)
40
+ return True
41
+
42
+ # ------------------------------------------------------------------
43
+ # Helpers
44
+ # ------------------------------------------------------------------
45
+
46
+ def _connect(self, parent, manager: ServerConfigManager, config): # type: ignore[return]
47
+ """Connect using saved credentials; open ConnectDialog only on failure."""
48
+ from odsbox_pilot.connection.connect_dialog import ConnectDialog, do_connect
49
+
50
+ secret = manager.load_secret(config) or ""
51
+ try:
52
+ wx.BeginBusyCursor()
53
+ con_i = do_connect(config, secret)
54
+ return con_i
55
+ except Exception as exc:
56
+ wx.MessageBox(
57
+ f"Connection failed:\n\n{exc}\n\nPlease check your settings.",
58
+ "Connection Error",
59
+ wx.OK | wx.ICON_ERROR,
60
+ parent,
61
+ )
62
+ # Fall back to edit dialog so user can fix credentials
63
+ connect_dlg = ConnectDialog(parent, manager, config=config)
64
+ result = connect_dlg.ShowModal()
65
+ con_i = connect_dlg.con_i if result == wx.ID_OK else None
66
+ connect_dlg.Destroy()
67
+ return con_i
68
+ finally:
69
+ with contextlib.suppress(Exception):
70
+ wx.EndBusyCursor()
71
+
72
+ def _open_main_frame(self, con_i, server_name: str) -> None:
73
+ from odsbox_pilot.query.main_frame import MainFrame
74
+
75
+ frame = MainFrame(con_i, server_name)
76
+ frame.Show()
77
+ self.SetTopWindow(frame)