nextwheel 0.2.1a1__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.
- nextwheel-0.2.1a1/PKG-INFO +95 -0
- nextwheel-0.2.1a1/README.md +59 -0
- nextwheel-0.2.1a1/nextwheel/__init__.py +1169 -0
- nextwheel-0.2.1a1/nextwheel/monitor.py +182 -0
- nextwheel-0.2.1a1/nextwheel.egg-info/PKG-INFO +95 -0
- nextwheel-0.2.1a1/nextwheel.egg-info/SOURCES.txt +11 -0
- nextwheel-0.2.1a1/nextwheel.egg-info/dependency_links.txt +1 -0
- nextwheel-0.2.1a1/nextwheel.egg-info/requires.txt +3 -0
- nextwheel-0.2.1a1/nextwheel.egg-info/top_level.txt +1 -0
- nextwheel-0.2.1a1/pyproject.toml +23 -0
- nextwheel-0.2.1a1/setup.cfg +4 -0
- nextwheel-0.2.1a1/setup.py +43 -0
- nextwheel-0.2.1a1/tests/test_nextwheel.py +67 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nextwheel
|
|
3
|
+
Version: 0.2.1a1
|
|
4
|
+
Summary: Python module for NextWheel instrumented wheels
|
|
5
|
+
Home-page: https://github.com/LabMOSA/NextWheel
|
|
6
|
+
Author: NextWheel collaborators
|
|
7
|
+
Author-email: chenier.felix@uqam.ca
|
|
8
|
+
License: Apache
|
|
9
|
+
Project-URL: Documentation, https://github.com/LabMOSA/NextWheel/tree/master/python
|
|
10
|
+
Project-URL: Source, https://github.com/LabMOSA/NextWheel
|
|
11
|
+
Project-URL: Tracker, https://github.com/LabMOSA/NextWheel/issues
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Natural Language :: English
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
Requires-Dist: numpy
|
|
23
|
+
Requires-Dist: matplotlib
|
|
24
|
+
Requires-Dist: requests
|
|
25
|
+
Dynamic: author
|
|
26
|
+
Dynamic: author-email
|
|
27
|
+
Dynamic: classifier
|
|
28
|
+
Dynamic: description
|
|
29
|
+
Dynamic: description-content-type
|
|
30
|
+
Dynamic: home-page
|
|
31
|
+
Dynamic: license
|
|
32
|
+
Dynamic: project-url
|
|
33
|
+
Dynamic: requires-dist
|
|
34
|
+
Dynamic: requires-python
|
|
35
|
+
Dynamic: summary
|
|
36
|
+
|
|
37
|
+
# NextWheel Python module
|
|
38
|
+
|
|
39
|
+
To install the Python module:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
pip install git+https://github.com/felixchenier/NextWheel.git#subdirectory=software/python
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
To upgrade the Python module:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
pip install --upgrade git+https://github.com/felixchenier/NextWheel.git#subdirectory=software/python
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
To use the module:
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
>>> from nextwheel import NextWheel
|
|
55
|
+
|
|
56
|
+
>>> nw = NextWheel("xx.xx.xx.xx")
|
|
57
|
+
>>> nw.start_streaming()
|
|
58
|
+
|
|
59
|
+
>>> print(nw.fetch())
|
|
60
|
+
|
|
61
|
+
>>> nw.stop_streaming()
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Streamed data is sent by the wheel over UDP (by default, broadcast on port
|
|
65
|
+
12345). Make sure your firewall accepts incoming UDP datagrams on this port.
|
|
66
|
+
To change where the wheel sends its data (e.g., a different port for each
|
|
67
|
+
wheel, or this computer's IP address instead of broadcast):
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
>>> nw.start_streaming("255.255.255.255", 12346)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
To see the list of recorded data files:
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
>>> nw.file_list()
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
To download a file:
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
>>> nw.file_download(filename)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
To erase a file:
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
>>> nw.file_delete(filename)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
To read a file:
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
>>> data = NextWheel.read_dat(filename)
|
|
95
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# NextWheel Python module
|
|
2
|
+
|
|
3
|
+
To install the Python module:
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
pip install git+https://github.com/felixchenier/NextWheel.git#subdirectory=software/python
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To upgrade the Python module:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
pip install --upgrade git+https://github.com/felixchenier/NextWheel.git#subdirectory=software/python
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
To use the module:
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
>>> from nextwheel import NextWheel
|
|
19
|
+
|
|
20
|
+
>>> nw = NextWheel("xx.xx.xx.xx")
|
|
21
|
+
>>> nw.start_streaming()
|
|
22
|
+
|
|
23
|
+
>>> print(nw.fetch())
|
|
24
|
+
|
|
25
|
+
>>> nw.stop_streaming()
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Streamed data is sent by the wheel over UDP (by default, broadcast on port
|
|
29
|
+
12345). Make sure your firewall accepts incoming UDP datagrams on this port.
|
|
30
|
+
To change where the wheel sends its data (e.g., a different port for each
|
|
31
|
+
wheel, or this computer's IP address instead of broadcast):
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
>>> nw.start_streaming("255.255.255.255", 12346)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
To see the list of recorded data files:
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
>>> nw.file_list()
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
To download a file:
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
>>> nw.file_download(filename)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
To erase a file:
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
>>> nw.file_delete(filename)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
To read a file:
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
>>> data = NextWheel.read_dat(filename)
|
|
59
|
+
```
|