-
Notifications
You must be signed in to change notification settings - Fork 19
Add redirects for modules and classes that were moved to ni-apis-python #1228
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
10 commits
Select commit
Hold shift + click to select a range
3522190
Add redirects for modules and classes that were moved to ni-apis-python
dixonjoel 597ec3d
Fix linter errors
dixonjoel 85f788b
Add more constants to session_management.
dixonjoel f1ce548
Restore more redirects and constants
dixonjoel 0b87e95
Fix linter errors
dixonjoel 3cb3045
Remove ServiceInfo export from discovery module
dixonjoel b4f5e8e
Mostly updating doc strings
dixonjoel d38a248
Update doc string
dixonjoel 2472fb1
Change loggers and channelpool back to submodules not subpackages
dixonjoel d1436d2
Fix typo
dixonjoel 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
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
13 changes: 13 additions & 0 deletions
13
packages/service/ni_measurement_plugin_sdk_service/discovery/__init__.py
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,13 @@ | ||
| """Compatibility API for accessing the NI Discovery Service. | ||
|
|
||
| The public API for accessing the NI Discovery Service has moved to the | ||
| :mod:`ni.measurementlink.discovery.v1.client` package. | ||
|
|
||
| The :mod:`ni_measurement_plugin_sdk_service.discovery` subpackage provides | ||
| compatibility with existing applications and will be deprecated in a future | ||
| release. | ||
| """ | ||
|
|
||
| from ni.measurementlink.discovery.v1.client import DiscoveryClient, ServiceLocation | ||
|
|
||
| __all__ = ["DiscoveryClient", "ServiceLocation"] |
9 changes: 9 additions & 0 deletions
9
packages/service/ni_measurement_plugin_sdk_service/grpc/__init__.py
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,9 @@ | ||
| """Compatibility API for gRPC extensions. | ||
|
|
||
| The public gRPC extensions API has moved to the :mod:`ni_grpc_extensions` | ||
| package. | ||
|
|
||
| The :mod:`ni_measurement_plugin_sdk_service.grpc` subpackage provides | ||
| compatibility with existing applications and will be deprecated in a future | ||
| release. | ||
| """ |
13 changes: 13 additions & 0 deletions
13
packages/service/ni_measurement_plugin_sdk_service/grpc/channelpool.py
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,13 @@ | ||
| """Compatibility API for gRPC channel pool. | ||
|
|
||
| The :obj:`GrpcChannelPool` class has moved to the :mod:`ni_grpc_extensions` | ||
| package. | ||
|
|
||
| The :mod:`ni_measurement_plugin_sdk_service.grpc.channelpool` submodule provides | ||
| compatibility with existing applications and will be deprecated in a future | ||
| release. | ||
| """ | ||
|
|
||
| from ni_grpc_extensions.channelpool import GrpcChannelPool | ||
|
|
||
| __all__ = ["GrpcChannelPool"] |
13 changes: 13 additions & 0 deletions
13
packages/service/ni_measurement_plugin_sdk_service/grpc/loggers.py
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,13 @@ | ||
| """Compatibility API for gRPC logging interceptors. | ||
|
|
||
| The gRPC logging interceptor classes have moved to the :mod:`ni_grpc_extensions` | ||
| package. | ||
|
|
||
| The :mod:`ni_measurement_plugin_sdk_service.grpc.loggers` submodule provides | ||
| compatibility with existing applications and will be deprecated in a future | ||
| release. | ||
| """ | ||
|
|
||
| from ni_grpc_extensions.loggers import ClientLogger, ServerLogger | ||
|
|
||
| __all__ = ["ClientLogger", "ServerLogger"] |
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
13 changes: 13 additions & 0 deletions
13
packages/service/ni_measurement_plugin_sdk_service/pin_map/__init__.py
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,13 @@ | ||
| """Compatibility API for accessing the NI Pin Map Service. | ||
|
|
||
| The public API for accessing the NI Pin Map Service has moved to the | ||
| :mod:`ni.measurementlink.pinmap.v1.client` package. | ||
|
|
||
| The :mod:`ni_measurement_plugin_sdk_service.pin_map` subpackage provides | ||
| compatibility with existing applications and will be deprecated in a future | ||
| release. | ||
| """ | ||
|
|
||
| from ni.measurementlink.pinmap.v1.client import PinMapClient | ||
|
|
||
| __all__ = ["PinMapClient"] |
84 changes: 84 additions & 0 deletions
84
packages/service/ni_measurement_plugin_sdk_service/session_management/__init__.py
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,84 @@ | ||
| """Compatibility API for accessing the NI Session Management Service. | ||
|
|
||
| The public API for accessing the NI Session Management Service has moved to the | ||
| :mod:`ni.measurementlink.sessionmanagement.v1.client` package. | ||
|
|
||
| The :mod:`ni_measurement_plugin_sdk_service.session_management` subpackage | ||
| provides compatibility with existing applications and will be deprecated in a | ||
| future release. | ||
| """ | ||
|
|
||
| from ni.measurementlink.sessionmanagement.v1.client import ( | ||
| GRPC_SERVICE_CLASS, | ||
| GRPC_SERVICE_INTERFACE_NAME, | ||
| INSTRUMENT_TYPE_NI_DAQMX, | ||
| INSTRUMENT_TYPE_NI_DCPOWER, | ||
| INSTRUMENT_TYPE_NI_DIGITAL_PATTERN, | ||
| INSTRUMENT_TYPE_NI_DMM, | ||
| INSTRUMENT_TYPE_NI_FGEN, | ||
| INSTRUMENT_TYPE_NI_HSDIO, | ||
| INSTRUMENT_TYPE_NI_MODEL_BASED_INSTRUMENT, | ||
| INSTRUMENT_TYPE_NI_RELAY_DRIVER, | ||
| INSTRUMENT_TYPE_NI_RFMX, | ||
| INSTRUMENT_TYPE_NI_RFPM, | ||
| INSTRUMENT_TYPE_NI_RFSA, | ||
| INSTRUMENT_TYPE_NI_RFSG, | ||
| INSTRUMENT_TYPE_NI_SCOPE, | ||
| INSTRUMENT_TYPE_NI_SWITCH_EXECUTIVE_VIRTUAL_DEVICE, | ||
| INSTRUMENT_TYPE_NONE, | ||
| SITE_SYSTEM_PINS, | ||
| BaseReservation, | ||
| ChannelMapping, | ||
| Connection, | ||
| MultiplexerSessionContainer, | ||
| MultiplexerSessionInformation, | ||
| MultiSessionReservation, | ||
| PinMapContext, | ||
| SessionInformation, | ||
| SessionInitializationBehavior, | ||
| SessionManagementClient, | ||
| SingleSessionReservation, | ||
| TypedConnection, | ||
| TypedConnectionWithMultiplexer, | ||
| TypedMultiplexerSessionInformation, | ||
| TypedSessionInformation, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "GRPC_SERVICE_CLASS", | ||
| "GRPC_SERVICE_INTERFACE_NAME", | ||
| "INSTRUMENT_TYPE_NONE", | ||
| "INSTRUMENT_TYPE_NI_DCPOWER", | ||
| "INSTRUMENT_TYPE_NI_HSDIO", | ||
| "INSTRUMENT_TYPE_NI_RFSA", | ||
| "INSTRUMENT_TYPE_NI_RFMX", | ||
| "INSTRUMENT_TYPE_NI_RFSG", | ||
| "INSTRUMENT_TYPE_NI_RFPM", | ||
| "INSTRUMENT_TYPE_NI_DMM", | ||
| "INSTRUMENT_TYPE_NI_DIGITAL_PATTERN", | ||
| "INSTRUMENT_TYPE_NI_SCOPE", | ||
| "INSTRUMENT_TYPE_NI_FGEN", | ||
| "INSTRUMENT_TYPE_NI_DAQMX", | ||
| "INSTRUMENT_TYPE_NI_RELAY_DRIVER", | ||
| "INSTRUMENT_TYPE_NI_MODEL_BASED_INSTRUMENT", | ||
| "INSTRUMENT_TYPE_NI_SWITCH_EXECUTIVE_VIRTUAL_DEVICE", | ||
| "SITE_SYSTEM_PINS", | ||
| "BaseReservation", | ||
| "ChannelMapping", | ||
| "Connection", | ||
| "MultiplexerSessionInformation", | ||
| "MultiplexerSessionContainer", | ||
| "MultiSessionReservation", | ||
| "PinMapContext", | ||
| "SessionInformation", | ||
| "SessionInitializationBehavior", | ||
| "SessionManagementClient", | ||
| "SingleSessionReservation", | ||
| "TypedConnection", | ||
| "TypedConnectionWithMultiplexer", | ||
| "TypedMultiplexerSessionInformation", | ||
| "TypedSessionInformation", | ||
| ] | ||
|
|
||
| Client = SessionManagementClient | ||
| """Alias for compatibility with code that uses session_management.Client.""" |
3 changes: 3 additions & 0 deletions
3
packages/service/ni_measurement_plugin_sdk_service/session_management/_reservation.py
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,3 @@ | ||
| from ni.measurementlink.sessionmanagement.v1.client import MultiSessionReservation | ||
|
|
||
| __all__ = ["MultiSessionReservation"] |
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.