xair-api 2.4.0__tar.gz → 2.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.
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 Peter Dikant
4
- Copyright (c) 2022 Onyx and Iris
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Peter Dikant
4
+ Copyright (c) 2022 Onyx and Iris
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -1,25 +1,26 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: xair-api
3
- Version: 2.4.0
3
+ Version: 2.4.2
4
4
  Summary: Remote control Behringer X-Air | Midas MR mixers through OSC
5
- Home-page: https://github.com/onyx-and-iris/xair-api-python
6
5
  License: MIT
7
- Author: onyx-and-iris
6
+ License-File: LICENSE
7
+ Author: Onyx and Iris
8
8
  Author-email: code@onyxandiris.online
9
- Requires-Python: >=3.10,<4.0
9
+ Requires-Python: >=3.10
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
- Requires-Dist: python-osc (>=1.8.0,<2.0.0)
17
- Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
18
- Project-URL: Repository, https://github.com/onyx-and-iris/xair-api-python
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Requires-Dist: python-osc (>=1.9.3,<2.0.0)
18
+ Requires-Dist: tomli (>=2.0.1,<3.0) ; python_version < "3.11"
19
19
  Description-Content-Type: text/markdown
20
20
 
21
21
  [![PyPI version](https://badge.fury.io/py/xair-api.svg)](https://badge.fury.io/py/xair-api)
22
22
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/onyx-and-iris/xair-api-python/blob/dev/LICENSE)
23
+ [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
23
24
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
24
25
  ![Tests Status](./tests/xair/MR18.svg?dummy=8484744)
25
26
 
@@ -59,18 +60,18 @@ import xair_api
59
60
 
60
61
 
61
62
  def main():
62
- kind_id = "XR18"
63
- ip = "<ip address>"
63
+ kind_id = 'XR18'
64
+ ip = '<ip address>'
64
65
 
65
66
  with xair_api.connect(kind_id, ip=ip) as mixer:
66
- mixer.strip[8].config.name = "sm7b"
67
+ mixer.strip[8].config.name = 'sm7b'
67
68
  mixer.strip[8].mix.on = True
68
69
  print(
69
- f"strip 09 ({mixer.strip[8].config.name}) on has been set to {mixer.strip[8].mix.on}"
70
+ f'strip 09 ({mixer.strip[8].config.name}) on has been set to {mixer.strip[8].mix.on}'
70
71
  )
71
72
 
72
73
 
73
- if __name__ == "__main__":
74
+ if __name__ == '__main__':
74
75
  main()
75
76
  ```
76
77
 
@@ -334,8 +335,8 @@ Send an OSC command directly to the mixer
334
335
  for example:
335
336
 
336
337
  ```python
337
- mixer.send("/ch/01/mix/on", 1)
338
- mixer.send("/bus/2/config/name", "somename")
338
+ mixer.send('/ch/01/mix/on', 1)
339
+ mixer.send('/bus/2/config/name', 'somename')
339
340
  ```
340
341
 
341
342
  Query the value of a command:
@@ -345,7 +346,7 @@ Query the value of a command:
345
346
  for example:
346
347
 
347
348
  ```python
348
- print(mixer.query("/ch/01/mix/on"))
349
+ print(mixer.query('/ch/01/mix/on'))
349
350
  ```
350
351
 
351
352
  ### Errors
@@ -358,14 +359,14 @@ print(mixer.query("/ch/01/mix/on"))
358
359
 
359
360
  ### `Tests`
360
361
 
361
- Unplug any expensive equipment before running tests.
362
- Save your current settings to a snapshot first.
362
+ Install [poetry](https://python-poetry.org/docs/#installation) and then:
363
363
 
364
- First make sure you installed the [development dependencies](https://github.com/onyx-and-iris/xair-api-python#installation)
365
-
366
- To run all tests:
364
+ ```powershell
365
+ poetry poe test-xair
366
+ poetry poe test-x32
367
+ ```
367
368
 
368
- `pytest -v`.
369
+ Unplug any expensive equipment and save your current settings to a snapshot first.
369
370
 
370
371
  ## License
371
372