Repository navigation
Add gRPC command interface #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
638c299
Initial implementation of the gRPC command interface
GabyUnalaq 8672749
Rename and fix code regarding the control and command interfaces
GabyUnalaq 0a3fd9c
Bump-up ankaios version
GabyUnalaq 2f380c7
Fetch also the grpc_api proto
GabyUnalaq 02293f5
Fix the shadow of connection from __all__
GabyUnalaq d1db99b
Fix docs grpc import issue
GabyUnalaq 1d52de3
Fix sonar found issues
GabyUnalaq fc2dd0e
Rename grpc to command
GabyUnalaq e9051f1
Fix findings
GabyUnalaq 3fd2cde
Fix race conditions in the command interface and improve overall stat…
GabyUnalaq 677ded9
Reorder command interface methods
GabyUnalaq ea11424
Fix spacing
GabyUnalaq 3d8173f
Merge branch 'main' into grpc_interface
GabyUnalaq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Copyright (c) 2026 Elektrobit Automotive GmbH | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License, Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0. | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
| # License for the specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """ | ||
| This module initializes the connection package by importing the | ||
| Connection abstraction and its interface implementations. | ||
|
|
||
| Imports | ||
| ------- | ||
|
|
||
| - Connection component: | ||
| the abstract base class for a connection to Ankaios. | ||
| - ControlInterfaceConnection component: | ||
| the control interface (named pipes) implementation of Connection. | ||
| - CommandInterfaceConnection component: | ||
| the command interface (gRPC server interface) implementation of | ||
| Connection. Only available if the 'grpc' extra is installed. | ||
| """ | ||
|
|
||
| import types | ||
|
|
||
| from .connection import * | ||
| from .control_interface import * | ||
|
|
||
| try: | ||
| from .command_interface import * | ||
| except ImportError: | ||
| # The 'grpc' extra is not installed; CommandInterfaceConnection | ||
| # stays unavailable, but the rest of the SDK must still work. | ||
| pass | ||
|
|
||
| # A submodule sharing its name with this package (connection/connection.py) | ||
| # gets bound as an attribute of the package itself by Python's import | ||
| # system. This is not desired, so we remove it from the package's namespace. | ||
| __all__ = [ | ||
| name | ||
| for name, value in globals().items() | ||
| if not name.startswith("_") and not isinstance(value, types.ModuleType) | ||
| ] | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.