-
Couldn't load subscription status.
- Fork 0
Add support for builtin sequences #51
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
jfriedri-ni
merged 10 commits into
main
from
users/jfriedri/lofi-support-for-builtin-sequences
May 30, 2025
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7370b6a
Use a string to detect the Python type that a converter handles
jfriedri-ni d3bb400
Add support for converting collections of builtin types
jfriedri-ni f142a07
Merge remote-tracking branch 'origin/main' into users/jfriedri/lofi-s…
jfriedri-ni 185b9cb
Add float arrays to streamlit sample
jfriedri-ni ae373d9
Address the formatter
jfriedri-ni 620a3cd
(fixup) Suppress docstring too long errors 🙄
jfriedri-ni ca34529
Refactor converters as a submodule
jfriedri-ni 9f6c80a
Use a list of floats in the simple sample
jfriedri-ni 823b224
Shorten docstrings until they fit
jfriedri-ni 526aca9
Merge remote-tracking branch 'origin/main' into users/jfriedri/lofi-s…
jfriedri-ni 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
jfriedri-ni marked this conversation as resolved.
Show resolved
Hide resolved
|
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,33 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package ni.pythonpanel.v1; | ||
|
|
||
| option cc_enable_arenas = true; | ||
| option csharp_namespace = "NationalInstruments.PythonPanel.V1"; | ||
| option go_package = "pythonpanelv1"; | ||
| option java_multiple_files = true; | ||
| option java_outer_classname = "PythonPanelServiceProto"; | ||
| option java_package = "com.ni.pythonpanel.v1"; | ||
| option objc_class_prefix = "NIPP"; | ||
| option php_namespace = "NI\\PythonPanel\\V1"; | ||
| option ruby_package = "NI::PythonPanel::V1"; | ||
|
|
||
| message BoolCollection { | ||
| repeated bool values = 1; | ||
| } | ||
|
|
||
| message ByteStringCollection { | ||
| repeated bytes values = 1; | ||
| } | ||
|
|
||
| message FloatCollection { | ||
| repeated double values = 1; | ||
| } | ||
|
|
||
| message IntCollection { | ||
| repeated sint64 values = 1; | ||
| } | ||
|
|
||
| message StringCollection { | ||
| repeated string values = 1; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,93 @@ | ||
| """ | ||
| @generated by mypy-protobuf. Do not edit manually! | ||
| isort:skip_file | ||
| """ | ||
|
|
||
| import builtins | ||
| import collections.abc | ||
| import google.protobuf.descriptor | ||
| import google.protobuf.internal.containers | ||
| import google.protobuf.message | ||
| import typing | ||
|
|
||
| DESCRIPTOR: google.protobuf.descriptor.FileDescriptor | ||
|
|
||
| @typing.final | ||
| class BoolCollection(google.protobuf.message.Message): | ||
| DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
|
||
| VALUES_FIELD_NUMBER: builtins.int | ||
| @property | ||
| def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... | ||
| def __init__( | ||
| self, | ||
| *, | ||
| values: collections.abc.Iterable[builtins.bool] | None = ..., | ||
| ) -> None: ... | ||
| def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... | ||
|
|
||
| global___BoolCollection = BoolCollection | ||
|
|
||
| @typing.final | ||
| class ByteStringCollection(google.protobuf.message.Message): | ||
| DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
|
||
| VALUES_FIELD_NUMBER: builtins.int | ||
| @property | ||
| def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... | ||
| def __init__( | ||
| self, | ||
| *, | ||
| values: collections.abc.Iterable[builtins.bytes] | None = ..., | ||
| ) -> None: ... | ||
| def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... | ||
|
|
||
| global___ByteStringCollection = ByteStringCollection | ||
|
|
||
| @typing.final | ||
| class FloatCollection(google.protobuf.message.Message): | ||
| DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
|
||
| VALUES_FIELD_NUMBER: builtins.int | ||
| @property | ||
| def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... | ||
| def __init__( | ||
| self, | ||
| *, | ||
| values: collections.abc.Iterable[builtins.float] | None = ..., | ||
| ) -> None: ... | ||
| def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... | ||
|
|
||
| global___FloatCollection = FloatCollection | ||
|
|
||
| @typing.final | ||
| class IntCollection(google.protobuf.message.Message): | ||
| DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
|
||
| VALUES_FIELD_NUMBER: builtins.int | ||
| @property | ||
| def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... | ||
| def __init__( | ||
| self, | ||
| *, | ||
| values: collections.abc.Iterable[builtins.int] | None = ..., | ||
| ) -> None: ... | ||
| def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... | ||
|
|
||
| global___IntCollection = IntCollection | ||
|
|
||
| @typing.final | ||
| class StringCollection(google.protobuf.message.Message): | ||
| DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
|
||
| VALUES_FIELD_NUMBER: builtins.int | ||
| @property | ||
| def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... | ||
| def __init__( | ||
| self, | ||
| *, | ||
| values: collections.abc.Iterable[builtins.str] | None = ..., | ||
| ) -> None: ... | ||
| def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... | ||
|
|
||
| global___StringCollection = StringCollection |
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,4 @@ | ||
| # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
| """Client and server classes corresponding to protobuf-defined services.""" | ||
| import grpc | ||
|
|
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,17 @@ | ||
| """ | ||
| @generated by mypy-protobuf. Do not edit manually! | ||
| isort:skip_file | ||
| """ | ||
|
|
||
| import abc | ||
| import collections.abc | ||
| import grpc | ||
| import grpc.aio | ||
| import typing | ||
|
|
||
| _T = typing.TypeVar("_T") | ||
|
|
||
| class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... | ||
|
|
||
| class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] | ||
| ... |
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.