harp-python 0.4.0__tar.gz → 0.4.2__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.
Files changed (33) hide show
  1. {harp_python-0.4.0 → harp_python-0.4.2}/.github/workflows/build.yml +1 -1
  2. {harp_python-0.4.0 → harp_python-0.4.2}/PKG-INFO +12 -5
  3. {harp_python-0.4.0 → harp_python-0.4.2}/README.md +6 -0
  4. {harp_python-0.4.0 → harp_python-0.4.2}/harp/io.py +1 -1
  5. {harp_python-0.4.0 → harp_python-0.4.2}/harp/reader.py +2 -2
  6. {harp_python-0.4.0 → harp_python-0.4.2}/harp_python.egg-info/PKG-INFO +12 -5
  7. {harp_python-0.4.0 → harp_python-0.4.2}/harp_python.egg-info/SOURCES.txt +2 -0
  8. harp_python-0.4.2/harp_python.egg-info/scm_file_list.json +28 -0
  9. harp_python-0.4.2/harp_python.egg-info/scm_version.json +8 -0
  10. {harp_python-0.4.0 → harp_python-0.4.2}/pyproject.toml +6 -5
  11. {harp_python-0.4.0 → harp_python-0.4.2}/tests/data/device.yml +16 -0
  12. {harp_python-0.4.0 → harp_python-0.4.2}/tests/test_reader.py +5 -0
  13. {harp_python-0.4.0 → harp_python-0.4.2}/.gitignore +0 -0
  14. {harp_python-0.4.0 → harp_python-0.4.2}/.gitmodules +0 -0
  15. {harp_python-0.4.0 → harp_python-0.4.2}/LICENSE +0 -0
  16. {harp_python-0.4.0 → harp_python-0.4.2}/MANIFEST.in +0 -0
  17. {harp_python-0.4.0 → harp_python-0.4.2}/harp/__init__.py +0 -0
  18. {harp_python-0.4.0 → harp_python-0.4.2}/harp/common.yml +0 -0
  19. {harp_python-0.4.0 → harp_python-0.4.2}/harp/model.py +0 -0
  20. {harp_python-0.4.0 → harp_python-0.4.2}/harp/schema.py +0 -0
  21. {harp_python-0.4.0 → harp_python-0.4.2}/harp/typing.py +0 -0
  22. {harp_python-0.4.0 → harp_python-0.4.2}/harp_python.egg-info/dependency_links.txt +0 -0
  23. {harp_python-0.4.0 → harp_python-0.4.2}/harp_python.egg-info/requires.txt +0 -0
  24. {harp_python-0.4.0 → harp_python-0.4.2}/harp_python.egg-info/top_level.txt +0 -0
  25. {harp_python-0.4.0 → harp_python-0.4.2}/setup.cfg +0 -0
  26. {harp_python-0.4.0 → harp_python-0.4.2}/tests/__init__.py +0 -0
  27. {harp_python-0.4.0 → harp_python-0.4.2}/tests/data/device_0.bin +0 -0
  28. {harp_python-0.4.0 → harp_python-0.4.2}/tests/data/device_44.bin +0 -0
  29. {harp_python-0.4.0 → harp_python-0.4.2}/tests/data/empty_0.bin +0 -0
  30. {harp_python-0.4.0 → harp_python-0.4.2}/tests/data/write_0.bin +0 -0
  31. {harp_python-0.4.0 → harp_python-0.4.2}/tests/params.py +0 -0
  32. {harp_python-0.4.0 → harp_python-0.4.2}/tests/test_io.py +0 -0
  33. {harp_python-0.4.0 → harp_python-0.4.2}/tests/test_schema.py +0 -0
@@ -15,7 +15,7 @@ jobs:
15
15
  if: github.event.pull_request.draft == false
16
16
  strategy:
17
17
  matrix:
18
- os: [ubuntu-latest, windows-latest, macos-latest]
18
+ os: [ubuntu-24.04, windows-latest, macos-latest]
19
19
  python-version: [3.9, 3.12]
20
20
  fail-fast: false
21
21
  steps:
@@ -1,18 +1,19 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: harp-python
3
- Version: 0.4.0
4
- Summary: A low-level interface for loading binary Harp protocol data
3
+ Version: 0.4.2
4
+ Summary: [DEPRECATED] Superseded by harp-data (https://harp-tech.org/python/). A low-level interface for loading binary Harp protocol data
5
5
  Author-email: Goncalo Lopes <g.lopes@neurogears.org>
6
- License: MIT License
6
+ License-Expression: MIT
7
7
  Project-URL: Bug Tracker, https://github.com/harp-tech/harp-python/issues
8
8
  Project-URL: Source Code, https://github.com/harp-tech/harp-python
9
- Classifier: Development Status :: 4 - Beta
9
+ Project-URL: Replacement, https://harp-tech.org/python/
10
+ Project-URL: Migration Guide, https://harp-tech.org/python/articles/harp-python-migration/
11
+ Classifier: Development Status :: 7 - Inactive
10
12
  Classifier: Programming Language :: Python
11
13
  Classifier: Programming Language :: Python :: 3
12
14
  Classifier: Programming Language :: Python :: 3.9
13
15
  Classifier: Programming Language :: Python :: 3.10
14
16
  Classifier: Operating System :: OS Independent
15
- Classifier: License :: OSI Approved :: MIT License
16
17
  Requires-Python: >=3.9.0
17
18
  Description-Content-Type: text/markdown
18
19
  License-File: LICENSE
@@ -33,6 +34,12 @@ Dynamic: license-file
33
34
 
34
35
  # harp-python
35
36
 
37
+ > [!WARNING]
38
+ > **This package is deprecated and will no longer receive updates.**
39
+ >
40
+ > Please migrate to the new `harp-data` package from [Harp Python](https://harp-tech.org/python/), which supersedes this one with an improved API and continued support.
41
+ > A [migration guide](https://harp-tech.org/python/articles/harp-python-migration/) covers the transition.
42
+
36
43
  A low-level interface to data collected with the [Harp binary protocol](https://harp-tech.org/protocol/BinaryProtocol-8bit.html).
37
44
 
38
45
  ## How to install
@@ -1,5 +1,11 @@
1
1
  # harp-python
2
2
 
3
+ > [!WARNING]
4
+ > **This package is deprecated and will no longer receive updates.**
5
+ >
6
+ > Please migrate to the new `harp-data` package from [Harp Python](https://harp-tech.org/python/), which supersedes this one with an improved API and continued support.
7
+ > A [migration guide](https://harp-tech.org/python/articles/harp-python-migration/) covers the transition.
8
+
3
9
  A low-level interface to data collected with the [Harp binary protocol](https://harp-tech.org/protocol/BinaryProtocol-8bit.html).
4
10
 
5
11
  ## How to install
@@ -6,7 +6,7 @@ from typing import Any, BinaryIO, Optional, Union
6
6
  import numpy as np
7
7
  import numpy.typing as npt
8
8
  import pandas as pd
9
- from pandas._typing import Axes
9
+ from pandas._typing import Axes # pyright: ignore[reportPrivateImportUsage]
10
10
 
11
11
  from harp.typing import _BufferLike, _FileLike
12
12
 
@@ -10,7 +10,7 @@ from typing import Callable, Iterable, Mapping, Optional, Protocol, Union
10
10
 
11
11
  from numpy import dtype
12
12
  from pandas import DataFrame, Series
13
- from pandas._typing import Axes
13
+ from pandas._typing import Axes # pyright: ignore[reportPrivateImportUsage]
14
14
 
15
15
  from harp.io import MessageType, read
16
16
  from harp.model import BitMask, GroupMask, Model, PayloadMember, Register
@@ -82,7 +82,7 @@ def _compose_parser(
82
82
  params: _ReaderParams,
83
83
  ) -> Callable[..., DataFrame]:
84
84
  def parser(
85
- data,
85
+ data: Optional[Union[_FileLike, _BufferLike]] = None,
86
86
  columns: Optional[Axes] = None,
87
87
  epoch: Optional[datetime] = params.epoch,
88
88
  keep_type: bool = params.keep_type,
@@ -1,18 +1,19 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: harp-python
3
- Version: 0.4.0
4
- Summary: A low-level interface for loading binary Harp protocol data
3
+ Version: 0.4.2
4
+ Summary: [DEPRECATED] Superseded by harp-data (https://harp-tech.org/python/). A low-level interface for loading binary Harp protocol data
5
5
  Author-email: Goncalo Lopes <g.lopes@neurogears.org>
6
- License: MIT License
6
+ License-Expression: MIT
7
7
  Project-URL: Bug Tracker, https://github.com/harp-tech/harp-python/issues
8
8
  Project-URL: Source Code, https://github.com/harp-tech/harp-python
9
- Classifier: Development Status :: 4 - Beta
9
+ Project-URL: Replacement, https://harp-tech.org/python/
10
+ Project-URL: Migration Guide, https://harp-tech.org/python/articles/harp-python-migration/
11
+ Classifier: Development Status :: 7 - Inactive
10
12
  Classifier: Programming Language :: Python
11
13
  Classifier: Programming Language :: Python :: 3
12
14
  Classifier: Programming Language :: Python :: 3.9
13
15
  Classifier: Programming Language :: Python :: 3.10
14
16
  Classifier: Operating System :: OS Independent
15
- Classifier: License :: OSI Approved :: MIT License
16
17
  Requires-Python: >=3.9.0
17
18
  Description-Content-Type: text/markdown
18
19
  License-File: LICENSE
@@ -33,6 +34,12 @@ Dynamic: license-file
33
34
 
34
35
  # harp-python
35
36
 
37
+ > [!WARNING]
38
+ > **This package is deprecated and will no longer receive updates.**
39
+ >
40
+ > Please migrate to the new `harp-data` package from [Harp Python](https://harp-tech.org/python/), which supersedes this one with an improved API and continued support.
41
+ > A [migration guide](https://harp-tech.org/python/articles/harp-python-migration/) covers the transition.
42
+
36
43
  A low-level interface to data collected with the [Harp binary protocol](https://harp-tech.org/protocol/BinaryProtocol-8bit.html).
37
44
 
38
45
  ## How to install
@@ -16,6 +16,8 @@ harp_python.egg-info/PKG-INFO
16
16
  harp_python.egg-info/SOURCES.txt
17
17
  harp_python.egg-info/dependency_links.txt
18
18
  harp_python.egg-info/requires.txt
19
+ harp_python.egg-info/scm_file_list.json
20
+ harp_python.egg-info/scm_version.json
19
21
  harp_python.egg-info/top_level.txt
20
22
  tests/__init__.py
21
23
  tests/params.py
@@ -0,0 +1,28 @@
1
+ {
2
+ "files": [
3
+ ".github\\workflows\\build.yml",
4
+ ".gitignore",
5
+ ".gitmodules",
6
+ "LICENSE",
7
+ "MANIFEST.in",
8
+ "README.md",
9
+ "harp\\__init__.py",
10
+ "harp\\common.yml",
11
+ "harp\\io.py",
12
+ "harp\\model.py",
13
+ "harp\\reader.py",
14
+ "harp\\schema.py",
15
+ "harp\\typing.py",
16
+ "pyproject.toml",
17
+ "tests\\__init__.py",
18
+ "tests\\data\\device.yml",
19
+ "tests\\data\\device_0.bin",
20
+ "tests\\data\\device_44.bin",
21
+ "tests\\data\\empty_0.bin",
22
+ "tests\\data\\write_0.bin",
23
+ "tests\\params.py",
24
+ "tests\\test_io.py",
25
+ "tests\\test_reader.py",
26
+ "tests\\test_schema.py"
27
+ ]
28
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.4.2",
3
+ "distance": 0,
4
+ "node": "g5991d543c3a46ec9a80f2021b3510358f66b4e50",
5
+ "dirty": false,
6
+ "branch": "main",
7
+ "node_date": "2026-10-21"
8
+ }
@@ -3,11 +3,11 @@ name = "harp-python"
3
3
  authors = [
4
4
  {name = "Goncalo Lopes", email = "g.lopes@neurogears.org"}
5
5
  ]
6
- description = "A low-level interface for loading binary Harp protocol data"
6
+ description = "[DEPRECATED] Superseded by harp-data (https://harp-tech.org/python/). A low-level interface for loading binary Harp protocol data"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.9.0"
9
9
  dynamic = ["version"]
10
- license = {text = "MIT License"}
10
+ license = "MIT"
11
11
 
12
12
  dependencies = [
13
13
  "pydantic-yaml",
@@ -15,18 +15,19 @@ dependencies = [
15
15
  ]
16
16
 
17
17
  classifiers = [
18
- "Development Status :: 4 - Beta",
18
+ "Development Status :: 7 - Inactive",
19
19
  "Programming Language :: Python",
20
20
  "Programming Language :: Python :: 3",
21
21
  "Programming Language :: Python :: 3.9",
22
22
  "Programming Language :: Python :: 3.10",
23
- "Operating System :: OS Independent",
24
- "License :: OSI Approved :: MIT License",
23
+ "Operating System :: OS Independent"
25
24
  ]
26
25
 
27
26
  [project.urls]
28
27
  "Bug Tracker" = "https://github.com/harp-tech/harp-python/issues"
29
28
  "Source Code" = "https://github.com/harp-tech/harp-python"
29
+ "Replacement" = "https://harp-tech.org/python/"
30
+ "Migration Guide" = "https://harp-tech.org/python/articles/harp-python-migration/"
30
31
 
31
32
  [project.optional-dependencies]
32
33
  dev = [
@@ -24,6 +24,22 @@ registers:
24
24
  length: 3
25
25
  access: Event
26
26
  description: Reports the current values of the analog input lines.
27
+ AnalogDataPayloadSpec:
28
+ address: 44
29
+ type: S16
30
+ length: 3
31
+ access: Event
32
+ description: Reports the current values of the analog input lines.
33
+ payloadSpec:
34
+ AnalogInput0:
35
+ offset: 0
36
+ description: The voltage at the output of the ADC channel 0.
37
+ Encoder:
38
+ offset: 1
39
+ description: The quadrature counter value on Port 2
40
+ AnalogInput1:
41
+ offset: 2
42
+ description: The voltage at the output of the ADC channel 1.
27
43
  bitMasks:
28
44
  DigitalInputs:
29
45
  description: Specifies the state of the digital input lines.
@@ -16,6 +16,11 @@ testdata = [
16
16
  expected_whoAmI=0,
17
17
  expected_registers=["AnalogData"],
18
18
  ),
19
+ DeviceSchemaParam(
20
+ path="data/device.yml",
21
+ expected_whoAmI=0,
22
+ expected_registers=["AnalogDataPayloadSpec"],
23
+ ),
19
24
  ]
20
25
 
21
26
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes