zhinst-core 25.10.0.274__cp314-cp314-win_amd64.whl

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.

Potentially problematic release.


This version of zhinst-core might be problematic. Click here for more details.

zhinst/core/_core.pyd ADDED
Binary file
@@ -0,0 +1,85 @@
1
+ import typing as t
2
+ from typing import overload
3
+ import abc
4
+
5
+ _AttributeValue = t.Union[str, int, bool, float]
6
+ _AttributeMap = t.Dict[str, _AttributeValue]
7
+
8
+ class SpanExporter:
9
+ def __init__(self) -> None: ...
10
+
11
+ class OtlpHttpExporter(SpanExporter):
12
+ def __init__(self, url: str) -> None: ...
13
+
14
+ class OstreamExporter(SpanExporter):
15
+ def __init__(self) -> None: ...
16
+ def read_traces(self) -> str: ...
17
+ def clear_traces(self) -> None: ...
18
+
19
+ class SpanProcessor: ...
20
+
21
+ class BatchSpanProcessor(SpanProcessor):
22
+ def __init__(
23
+ self,
24
+ exporter: SpanExporter,
25
+ num_spans: int,
26
+ export_delay_millis: int,
27
+ max_batch_size: int,
28
+ ) -> None: ...
29
+
30
+ class Span(abc.ABC):
31
+ @abc.abstractclassmethod
32
+ def set_attribute(self, name: str, value: _AttributeValue) -> None: ...
33
+ @abc.abstractclassmethod
34
+ def register_error(self, message: str) -> None: ...
35
+ @overload
36
+ @abc.abstractclassmethod
37
+ def add_event(self, name: str) -> None: ...
38
+ @overload
39
+ @abc.abstractclassmethod
40
+ def add_event(self, name: str, attributes: _AttributeMap) -> None: ...
41
+ @abc.abstractclassmethod
42
+ def __enter__(self) -> Span: ...
43
+ @abc.abstractclassmethod
44
+ def __exit__(self, exception_type, exception_value, exception_traceback): ...
45
+
46
+ class TelemetrySpan(Span): ...
47
+ class NoopSpan(Span): ...
48
+
49
+ class Tracer(abc.ABC):
50
+ @overload
51
+ @abc.abstractclassmethod
52
+ def start_span(self, name: str) -> Span: ...
53
+ @overload
54
+ @abc.abstractclassmethod
55
+ def start_span(self, name: str, parent: Span) -> Span: ...
56
+ @overload
57
+ @abc.abstractclassmethod
58
+ def start_span(self, name: str, attributes: _AttributeMap) -> Span: ...
59
+ @overload
60
+ @abc.abstractclassmethod
61
+ def start_span(
62
+ self, name: str, attributes: _AttributeMap, parent: Span
63
+ ) -> Span: ...
64
+ @abc.abstractclassmethod
65
+ def get_current_span(self) -> Span: ...
66
+
67
+ class TelemetryTracer(Tracer):
68
+ @overload
69
+ def __init__(self, name: str) -> None: ...
70
+ @overload
71
+ def __init__(self, name: str, version: str) -> None: ...
72
+
73
+ class NoopTracer(Tracer):
74
+ @overload
75
+ def __init__(self, name: str) -> None: ...
76
+ @overload
77
+ def __init__(self, name: str, version: str) -> None: ...
78
+
79
+ def enable_tracing(): ...
80
+ def disable_tracing(): ...
81
+ def configure(
82
+ attributes: _AttributeMap, exporter: SpanExporter, debugMode: bool = False
83
+ ): ...
84
+ def force_flush(): ...
85
+ def shutdown(): ...
@@ -0,0 +1,28 @@
1
+ import typing as t
2
+
3
+ class CoreError(RuntimeError):
4
+ """Base error class for all zhinst.core exceptions.
5
+
6
+ All exceptions raised by this library should inherit from this class.
7
+
8
+ Args:
9
+ message: The error message
10
+ code: Optional internal LabOne error code
11
+ """
12
+
13
+ def __init__(self, message: str, code: t.Optional[int] = None): ...
14
+ @property
15
+ def code(self) -> t.Optional[int]:
16
+ """Error code reported by LabOne."""
17
+
18
+ class TimeoutError(CoreError, __builtins__.TimeoutError): ...
19
+ class ConnectionError(CoreError, __builtins__.ConnectionError): ...
20
+ class ReadOnlyError(CoreError): ...
21
+ class WriteOnlyError(CoreError): ...
22
+ class NotFoundError(CoreError): ...
23
+ class DeviceInUseError(CoreError): ...
24
+ class DeviceNotFoundError(CoreError): ...
25
+ class InvalidArgumentError(CoreError): ...
26
+ class InvalidKeywordError(CoreError): ...
27
+ class DeviceInterfaceError(CoreError): ...
28
+ class SampleLossError(CoreError, EOFError): ...
zhinst/core/py.typed ADDED
File without changes
@@ -0,0 +1,17 @@
1
+ """ziPython compatibility layer. Use `zhinst.core` instead.
2
+
3
+ .. deprecated:: 22.08
4
+ Functionality was moved to :mod:`zhinst.core`. This module is a
5
+ compatibility layer to ease migration.
6
+
7
+ """
8
+
9
+ import warnings
10
+ from zhinst.core import *
11
+ from zhinst.core import __version__
12
+
13
+ warnings.warn(
14
+ "The zhinst.ziPython package has been renamed to zhinst.core. "
15
+ "Please adjust your import statements accordingly.",
16
+ DeprecationWarning,
17
+ )
@@ -0,0 +1,8 @@
1
+ import warnings
2
+ from zhinst.core.errors import *
3
+
4
+ warnings.warn(
5
+ "The zhinst.ziPython package has been renamed to zhinst.core. "
6
+ "Please adjust your import statements accordingly.",
7
+ DeprecationWarning,
8
+ )
File without changes
@@ -0,0 +1,73 @@
1
+ Metadata-Version: 2.4
2
+ Name: zhinst-core
3
+ Version: 25.10.0.274
4
+ Summary: Python API for Zurich Instruments Devices
5
+ Project-URL: Documentation, https://docs.zhinst.com/labone_api_user_manual
6
+ Author-email: Zurich Instruments AG <info@zhinst.com>
7
+ License-Expression: MIT
8
+ License-File: LICENSE.txt
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Operating System :: MacOS :: MacOS X
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: C++
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Topic :: Scientific/Engineering
26
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
+ Requires-Python: >=3.9
28
+ Requires-Dist: typing-extensions
29
+ Requires-Dist: numpy>=1.26.0
30
+ Description-Content-Type: text/markdown
31
+
32
+ # Zurich Instruments LabOne API
33
+
34
+ The `zhinst-core` package allows communication with Zurich Instruments devices from
35
+ the Python programming language. It's the native Python API of LabOne&reg;, the
36
+ Zurich Instruments control software.
37
+
38
+ ![Zurich Instruments Arbitrary Waveform Generator and monitor showing LabOne Software](https://people.zhinst.com/~danielw/pypi/hdawg_labone_pic02.jpg)
39
+
40
+ The documentation for the `zhinst.core` binary extension can be accessed [online](https://docs.zhinst.com/labone_api/index.html) or via the built-in `help` command:
41
+
42
+ ```Python
43
+ import zhinst.core
44
+ help(zhinst.core)
45
+ ```
46
+
47
+ More information about programming with Zurich Instruments devices is available
48
+ in the [LabOne Programming
49
+ Manual](https://docs.zhinst.com/labone_programming_manual/python.html).
50
+
51
+ # Uploading wheels to PyPI
52
+
53
+ ## Requirements:
54
+ - Any Python (this can be performed using any python installation, it does not
55
+ require the installation for a particular Python build).
56
+ - twine package (pip install --upgrade twine)
57
+
58
+ ## Accounts
59
+ We have accounts at the main and test PyPI repositories:
60
+
61
+ https://pypi.org
62
+ username: zhinst
63
+
64
+ https://test.pypi.org
65
+ username: zhinst
66
+
67
+ ## Testing
68
+ To test, upload to test.pypi.org:
69
+ twine upload --repository-url https://test.pypi.org/legacy/ /home/archive/ziReleases/ci-artifacts/branches-18.05/_latest/*whl
70
+
71
+ ## Release
72
+ To release, upload to pypi.org:
73
+ twine upload /home/archive/ziReleases/ci-artifacts/branches-18.05/_latest/*whl
@@ -0,0 +1,13 @@
1
+ zhinst/core/__init__.py,sha256=OciHmsd5nN-4kJ9MRNBW_KOUIIlmuPHVbsXKyGWKVmU,185
2
+ zhinst/core/__init__.pyi,sha256=VSvw4o2m4D_IkamMaAvWelRTsqpRyffSU1JNoU_SpLA,56298
3
+ zhinst/core/_core.pyd,sha256=74ne7z2fzHAdyPAZEkU0QKtANCC-BbPRTb9tay2Dpck,24730112
4
+ zhinst/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ zhinst/core/_tracing/__init__.pyi,sha256=rqmy0eVRu3NiOf1MCXV17a5mCqHnyYZK3I_IW_zHcts,2516
6
+ zhinst/core/errors/__init__.pyi,sha256=GGNKrw8gc6K1-asKUbPH-em3n79HZwbBouqIQa_iO4g,982
7
+ zhinst/ziPython/__init__.py,sha256=Mo88Xtr6dAR0qX08RU6-4z3knlDgc_bMmIpb6Nv0cz4,460
8
+ zhinst/ziPython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ zhinst/ziPython/errors/__init__.py,sha256=0eoqb4owjVTvt4iijsAgtxZLWZaTVn3pFbB3dvhtqHg,224
10
+ zhinst_core-25.10.0.274.dist-info/METADATA,sha256=65Gh_PWSTPp5EPrhYsa6UYWUMwQ36x9pKp4jhC1QRQw,2764
11
+ zhinst_core-25.10.0.274.dist-info/WHEEL,sha256=deyYupoK0rmtadSkyNHYl0ny1z2YIDpQgWMcPqfV5RE,97
12
+ zhinst_core-25.10.0.274.dist-info/licenses/LICENSE.txt,sha256=Nfoz6AtS0j6FAswUZ9fxVxQYfhtZDiQw4hmsBk3BgMc,1084
13
+ zhinst_core-25.10.0.274.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win_amd64
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2020 Zurich Instruments AG
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.