Skip to content

Commit 3da9aed

Browse files
authored
Add redirects for modules and classes that were moved to ni-apis-python (#1228)
* Add redirects for modules and classes that were moved to ni-apis-python * Fix linter errors * Add more constants to session_management. * Restore more redirects and constants * Fix linter errors * Remove ServiceInfo export from discovery module * Mostly updating doc strings * Update doc string * Change loggers and channelpool back to submodules not subpackages * Fix typo
1 parent c1954e4 commit 3da9aed

17 files changed

Lines changed: 161 additions & 9 deletions

File tree

examples/nidaqmx_analog_input/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mypy = ">=1.0"
1717
types-grpcio = ">=1.0"
1818
# Uncomment to use prerelease dependencies.
1919
# nidaqmx = { git = "https://github.com/ni/nidaqmx-python.git", branch = "master", extras = ["grpc"] }
20-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
20+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2121

2222
[build-system]
2323
requires = ["poetry-core>=1.0.0"]

examples/nidcpower_source_dc_voltage/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mypy = ">=1.0"
1818
types-grpcio = ">=1.0"
1919
# Uncomment to use prerelease dependencies.
2020
# nidcpower = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/nidcpower", extras = ["grpc"] }
21-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
21+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2222

2323
[build-system]
2424
requires = ["poetry-core>=1.0.0"]

examples/nidcpower_source_dc_voltage_with_multiplexer/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ types-grpcio = ">=1.0"
2020
# Uncomment to use prerelease dependencies.
2121
# nidcpower = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/nidcpower", extras = ["grpc"] }
2222
# niswitch = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/niswitch", extras = ["grpc"] }
23-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
23+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2424

2525
[build-system]
2626
requires = ["poetry-core>=1.0.0"]

examples/nidigital_spi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mypy = ">=1.0"
1818
types-grpcio = ">=1.0"
1919
# Uncomment to use prerelease dependencies.
2020
# nidigital = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/nidigital", extras = ["grpc"] }
21-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
21+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2222

2323
[build-system]
2424
requires = ["poetry-core>=1.0.0"]

examples/nidmm_measurement/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mypy = ">=1.0"
1818
types-grpcio = ">=1.0"
1919
# Uncomment to use prerelease dependencies.
2020
# nidmm = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/nidmm", extras = ["grpc"] }
21-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
21+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2222

2323
[build-system]
2424
requires = ["poetry-core>=1.0.0"]

examples/nifgen_standard_function/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mypy = ">=1.0"
1818
types-grpcio = ">=1.0"
1919
# Uncomment to use prerelease dependencies.
2020
# nifgen = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/nifgen", extras = ["grpc"] }
21-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
21+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2222

2323
[build-system]
2424
requires = ["poetry-core>=1.0.0"]

examples/niscope_acquire_waveform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mypy = ">=1.0"
1818
types-grpcio = ">=1.0"
1919
# Uncomment to use prerelease dependencies.
2020
# niscope = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/niscope", extras = ["grpc"] }
21-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
21+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2222

2323
[build-system]
2424
requires = ["poetry-core>=1.0.0"]

examples/niswitch_control_relays/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mypy = ">=1.0"
1818
types-grpcio = ">=1.0"
1919
# Uncomment to use prerelease dependencies.
2020
# niswitch = { git = "https://github.com/ni/nimi-python.git", subdirectory = "generated/niswitch", extras = ["grpc"] }
21-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
21+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2222

2323
[build-system]
2424
requires = ["poetry-core>=1.0.0"]

examples/sample_measurement/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ grpcio-tools = "1.49.1"
1919
mypy-protobuf = "^3.6.0"
2020
types-protobuf = ">=4.21"
2121
# Uncomment to use prerelease dependencies.
22-
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
22+
ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}
2323

2424
[build-system]
2525
requires = ["poetry-core>=1.0.0"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Compatibility API for accessing the NI Discovery Service.
2+
3+
The public API for accessing the NI Discovery Service has moved to the
4+
:mod:`ni.measurementlink.discovery.v1.client` package.
5+
6+
The :mod:`ni_measurement_plugin_sdk_service.discovery` subpackage provides
7+
compatibility with existing applications and will be deprecated in a future
8+
release.
9+
"""
10+
11+
from ni.measurementlink.discovery.v1.client import DiscoveryClient, ServiceLocation
12+
13+
__all__ = ["DiscoveryClient", "ServiceLocation"]

0 commit comments

Comments
 (0)