nislsc 0.1.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.
nislsc-0.1.0/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2022, National Instruments Corp.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included
12
+ in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
nislsc-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.3
2
+ Name: nislsc
3
+ Version: 0.1.0
4
+ Summary: NI-SLSC Python API
5
+ License: MIT
6
+ Keywords: nislsc,slsc
7
+ Author: NI
8
+ Author-email: opensource@ni.com
9
+ Maintainer: Jun Ying Tan
10
+ Maintainer-email: jun.ying.tan@emerson.com
11
+ Requires-Python: >=3.9,<4.0
12
+ Classifier: Development Status :: 1 - Planning
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Manufacturing
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: Implementation :: CPython
26
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
27
+ Classifier: Topic :: System :: Hardware :: Hardware Drivers
28
+ Project-URL: Repository, https://github.com/ni/nislsc-python
29
+ Description-Content-Type: text/markdown
30
+
31
+ # nislsc-python
32
+
33
+ ## About
34
+
35
+ The **nislsc** package allows you to develop instrumentation, acquisition, and control applications with NI Switch Load and Signal Conditioning (SLSC) devices in Python.
36
+ NI created and supports this package.
37
+
38
+ <!--
39
+ ### Documentation
40
+
41
+ - TODO: Add documentation here.
42
+ -->
43
+
44
+ ### Implementation
45
+
46
+ The package is implemented in Python as an object-oriented wrapper around the NI-SLSC C API using the [ctypes](https://docs.python.org/3/library/ctypes.html) Python Library.
47
+
48
+ ### Supported NI-SLSC Driver Versions
49
+
50
+ This package requires the NI-SLSC C API, which was introduced in NI-SLSC 20.0.
51
+
52
+ ### Operating System Support
53
+
54
+ **nislsc** supports Windows and Linux operating systems where the NI-SLSC driver is supported. Refer to [NI Hardware and Operating System Compatibility](https://www.ni.com/r/hw-support) for which versions of the driver support your hardware on a given operating system.
55
+
56
+ ### Python Version Support
57
+
58
+ **nislsc** supports CPython 3.9+ and PyPy3.
59
+
60
+ ## Installation
61
+
62
+ You can use [pip](http://pypi.python.org/pypi/pip>) to download **nislsc** from
63
+ [PyPI](https://pypi.org/project/nislsc/) and install it:
64
+
65
+ ```bash
66
+ $ python -m pip install nislsc
67
+ ```
68
+
69
+ <!--
70
+ ## Getting Started
71
+
72
+ - TODO: Insert getting started documentation here.
73
+ -->
74
+
75
+ ## Python Examples
76
+
77
+ You can find the examples for **NI-SLSC Python** in the [nislsc-python examples](https://github.com/ni/nislsc-python/tree/main/examples) directory. For best results, use the examples that correspond to your current **nislsc** version. For example, if you are using version 1.0.0, then check out the examples directory in the 1.0.0 tag. Newer examples may demonstrate features that are not available in previous versions of **nislsc**.
78
+
79
+ <!--
80
+ ## Usage
81
+
82
+ - TODO: Insert usage instructions here.
83
+ -->
84
+
85
+ ## Bugs / Feature Requests
86
+
87
+ To report a bug or submit a feature request, please use the [GitHub issues page](https://github.com/ni/nislsc-python/issues).
88
+
89
+ ### Information to Include When Asking for Help
90
+
91
+ Please include **all** of the following information when opening an issue:
92
+
93
+ - Detailed steps on how to reproduce the problem and full traceback, if applicable.
94
+ - The Python version used:
95
+
96
+ ```bash
97
+ python -c "import sys; print(sys.version)"
98
+ ```
99
+
100
+ - The version of the **nislsc** used:
101
+
102
+ ```bash
103
+ python -m pip list
104
+ ```
105
+
106
+ - The version of the NI-SLSC driver used. Follow [this KB article](http://digital.ni.com/express.nsf/bycode/ex8amn) to determine the version of NI-SLSC you have installed.
107
+ - The operating system and version, for example Windows 11, Ubuntu 24.04, ...
108
+
109
+ ## License
110
+
111
+ **nislsc** is licensed under an MIT-style license (see [LICENSE](https://github.com/ni/nislsc-python/blob/master/LICENSE)). Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.
112
+
nislsc-0.1.0/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # nislsc-python
2
+
3
+ ## About
4
+
5
+ The **nislsc** package allows you to develop instrumentation, acquisition, and control applications with NI Switch Load and Signal Conditioning (SLSC) devices in Python.
6
+ NI created and supports this package.
7
+
8
+ <!--
9
+ ### Documentation
10
+
11
+ - TODO: Add documentation here.
12
+ -->
13
+
14
+ ### Implementation
15
+
16
+ The package is implemented in Python as an object-oriented wrapper around the NI-SLSC C API using the [ctypes](https://docs.python.org/3/library/ctypes.html) Python Library.
17
+
18
+ ### Supported NI-SLSC Driver Versions
19
+
20
+ This package requires the NI-SLSC C API, which was introduced in NI-SLSC 20.0.
21
+
22
+ ### Operating System Support
23
+
24
+ **nislsc** supports Windows and Linux operating systems where the NI-SLSC driver is supported. Refer to [NI Hardware and Operating System Compatibility](https://www.ni.com/r/hw-support) for which versions of the driver support your hardware on a given operating system.
25
+
26
+ ### Python Version Support
27
+
28
+ **nislsc** supports CPython 3.9+ and PyPy3.
29
+
30
+ ## Installation
31
+
32
+ You can use [pip](http://pypi.python.org/pypi/pip>) to download **nislsc** from
33
+ [PyPI](https://pypi.org/project/nislsc/) and install it:
34
+
35
+ ```bash
36
+ $ python -m pip install nislsc
37
+ ```
38
+
39
+ <!--
40
+ ## Getting Started
41
+
42
+ - TODO: Insert getting started documentation here.
43
+ -->
44
+
45
+ ## Python Examples
46
+
47
+ You can find the examples for **NI-SLSC Python** in the [nislsc-python examples](https://github.com/ni/nislsc-python/tree/main/examples) directory. For best results, use the examples that correspond to your current **nislsc** version. For example, if you are using version 1.0.0, then check out the examples directory in the 1.0.0 tag. Newer examples may demonstrate features that are not available in previous versions of **nislsc**.
48
+
49
+ <!--
50
+ ## Usage
51
+
52
+ - TODO: Insert usage instructions here.
53
+ -->
54
+
55
+ ## Bugs / Feature Requests
56
+
57
+ To report a bug or submit a feature request, please use the [GitHub issues page](https://github.com/ni/nislsc-python/issues).
58
+
59
+ ### Information to Include When Asking for Help
60
+
61
+ Please include **all** of the following information when opening an issue:
62
+
63
+ - Detailed steps on how to reproduce the problem and full traceback, if applicable.
64
+ - The Python version used:
65
+
66
+ ```bash
67
+ python -c "import sys; print(sys.version)"
68
+ ```
69
+
70
+ - The version of the **nislsc** used:
71
+
72
+ ```bash
73
+ python -m pip list
74
+ ```
75
+
76
+ - The version of the NI-SLSC driver used. Follow [this KB article](http://digital.ni.com/express.nsf/bycode/ex8amn) to determine the version of NI-SLSC you have installed.
77
+ - The operating system and version, for example Windows 11, Ubuntu 24.04, ...
78
+
79
+ ## License
80
+
81
+ **nislsc** is licensed under an MIT-style license (see [LICENSE](https://github.com/ni/nislsc-python/blob/master/LICENSE)). Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.
@@ -0,0 +1,23 @@
1
+ """Control NI SLSC hardware through Python.
2
+
3
+ This package provides a Python interface for NI SLSC hardware. Import
4
+ the main classes to interact with SLSC devices, sessions, properties,
5
+ and commands.
6
+
7
+ Aliases
8
+ -------
9
+
10
+ The top-level ``nislsc`` package provides aliases for commonly used classes:
11
+
12
+ - :class:`nislsc.Command <nislsc.command.Command>`: Open and execute SLSC device and physical channel commands.
13
+ - :class:`nislsc.Library <nislsc.library.Library>`: Initialize and manage the SLSC library interface.
14
+ - :class:`nislsc.Property <nislsc.property.Property>`: Access SLSC property references and configuration settings.
15
+ - :class:`nislsc.Session <nislsc.session.Session>`: Establish sessions with SLSC devices, channels, and NVMEM areas.
16
+ """
17
+
18
+ from nislsc.command import Command
19
+ from nislsc.library import Library
20
+ from nislsc.property import Property
21
+ from nislsc.session import Session
22
+
23
+ __all__ = ["Command", "Library", "Property", "Session"]