aioepisode 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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 shr00mie
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.4
2
+ Name: aioepisode
3
+ Version: 0.1.0
4
+ Summary: Async TCP JSON client for Episode EA-RSP multi-zone amplifiers
5
+ Author: shr00mie
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/shr00mie/aioepisode
8
+ Project-URL: Issues, https://github.com/shr00mie/aioepisode/issues
9
+ Project-URL: Repository, https://github.com/shr00mie/aioepisode
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Framework :: AsyncIO
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Topic :: Home Automation
15
+ Requires-Python: >=3.13
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: license-file
19
+
20
+ # aioepisode
21
+
22
+ Asyncio TCP JSON client for **Episode EA-RSP** multi-zone amplifiers (2D / 8D / 12D / 16D).
23
+
24
+ Used by the [Episode Amplifier](https://github.com/shr00mie/episode_rsp) Home Assistant integration.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ pip install aioepisode
30
+ ```
31
+
32
+ ## Quick start
33
+
34
+ ```python
35
+ import asyncio
36
+ from aioepisode import EpisodeClient
37
+
38
+ async def main() -> None:
39
+ client = EpisodeClient("192.168.1.50", 8080, "admin", "secret")
40
+ await client.async_connect()
41
+ try:
42
+ state = await client.async_poll()
43
+ print(state.name, "power_on=", state.power_on)
44
+ for zone in state.zones:
45
+ print(zone.index, zone.name, zone.volume, zone.muted)
46
+ finally:
47
+ await client.async_disconnect()
48
+
49
+ asyncio.run(main())
50
+ ```
51
+
52
+ ## Protocol
53
+
54
+ - Default TCP port `8080`
55
+ - UTF-8 JSON frames (send JSON + LF; receive brace-balanced JSON)
56
+ - Login required on every socket; status `402` triggers re-login
57
+ - Status `403`: change the default web UI password first
58
+ - Status `701`: amplifier is in Voltage Trigger mode
59
+ - Zone and input counts come from GET indexed arrays; model SKU is inferred by the caller when needed
60
+
61
+ ## Development
62
+
63
+ ```bash
64
+ uv pip install -e .
65
+ uv run pytest tests -q
66
+ ```
67
+
68
+ ## License
69
+
70
+ MIT
@@ -0,0 +1,51 @@
1
+ # aioepisode
2
+
3
+ Asyncio TCP JSON client for **Episode EA-RSP** multi-zone amplifiers (2D / 8D / 12D / 16D).
4
+
5
+ Used by the [Episode Amplifier](https://github.com/shr00mie/episode_rsp) Home Assistant integration.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pip install aioepisode
11
+ ```
12
+
13
+ ## Quick start
14
+
15
+ ```python
16
+ import asyncio
17
+ from aioepisode import EpisodeClient
18
+
19
+ async def main() -> None:
20
+ client = EpisodeClient("192.168.1.50", 8080, "admin", "secret")
21
+ await client.async_connect()
22
+ try:
23
+ state = await client.async_poll()
24
+ print(state.name, "power_on=", state.power_on)
25
+ for zone in state.zones:
26
+ print(zone.index, zone.name, zone.volume, zone.muted)
27
+ finally:
28
+ await client.async_disconnect()
29
+
30
+ asyncio.run(main())
31
+ ```
32
+
33
+ ## Protocol
34
+
35
+ - Default TCP port `8080`
36
+ - UTF-8 JSON frames (send JSON + LF; receive brace-balanced JSON)
37
+ - Login required on every socket; status `402` triggers re-login
38
+ - Status `403`: change the default web UI password first
39
+ - Status `701`: amplifier is in Voltage Trigger mode
40
+ - Zone and input counts come from GET indexed arrays; model SKU is inferred by the caller when needed
41
+
42
+ ## Development
43
+
44
+ ```bash
45
+ uv pip install -e .
46
+ uv run pytest tests -q
47
+ ```
48
+
49
+ ## License
50
+
51
+ MIT
@@ -0,0 +1,32 @@
1
+ [build-system]
2
+ requires = ["setuptools>=69", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "aioepisode"
7
+ version = "0.1.0"
8
+ description = "Async TCP JSON client for Episode EA-RSP multi-zone amplifiers"
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.13"
12
+ authors = [{ name = "shr00mie" }]
13
+ classifiers = [
14
+ "Development Status :: 3 - Alpha",
15
+ "Framework :: AsyncIO",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Programming Language :: Python :: 3.13",
18
+ "Topic :: Home Automation",
19
+ ]
20
+ dependencies = []
21
+
22
+ [project.urls]
23
+ Homepage = "https://github.com/shr00mie/aioepisode"
24
+ Issues = "https://github.com/shr00mie/aioepisode/issues"
25
+ Repository = "https://github.com/shr00mie/aioepisode"
26
+
27
+ [tool.setuptools.packages.find]
28
+ where = ["src"]
29
+
30
+ [tool.pytest.ini_options]
31
+ pythonpath = ["src", "tests"]
32
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,68 @@
1
+ """Async TCP JSON client for Episode EA-RSP amplifiers."""
2
+
3
+ from .client import (
4
+ EpisodeClient,
5
+ async_discover,
6
+ async_validate_login,
7
+ extract_json_objects,
8
+ parse_bool01,
9
+ parse_indexed_map,
10
+ parse_stereo_mono,
11
+ volume_from_ha,
12
+ volume_to_ha,
13
+ )
14
+ from .const import (
15
+ INPUT_COUNT_BY_MODEL,
16
+ KNOWN_MODELS,
17
+ MODEL_12D,
18
+ MODEL_16D,
19
+ MODEL_2D,
20
+ MODEL_8D,
21
+ MODEL_BY_ZONE_COUNT,
22
+ MODEL_GENERIC,
23
+ ZONE_COUNT_BY_MODEL,
24
+ model_for_zone_count,
25
+ topology_for_model,
26
+ )
27
+ from .exceptions import (
28
+ EpisodeAuthError,
29
+ EpisodeCommandError,
30
+ EpisodeDefaultPasswordError,
31
+ EpisodeError,
32
+ EpisodeVoltageTriggerError,
33
+ )
34
+ from .models import AmpIdentity, AmpState, InputState, ZoneState
35
+
36
+ __all__ = [
37
+ "AmpIdentity",
38
+ "AmpState",
39
+ "EpisodeAuthError",
40
+ "EpisodeClient",
41
+ "EpisodeCommandError",
42
+ "EpisodeDefaultPasswordError",
43
+ "EpisodeError",
44
+ "EpisodeVoltageTriggerError",
45
+ "INPUT_COUNT_BY_MODEL",
46
+ "InputState",
47
+ "KNOWN_MODELS",
48
+ "MODEL_12D",
49
+ "MODEL_16D",
50
+ "MODEL_2D",
51
+ "MODEL_8D",
52
+ "MODEL_BY_ZONE_COUNT",
53
+ "MODEL_GENERIC",
54
+ "ZONE_COUNT_BY_MODEL",
55
+ "ZoneState",
56
+ "async_discover",
57
+ "async_validate_login",
58
+ "extract_json_objects",
59
+ "model_for_zone_count",
60
+ "parse_bool01",
61
+ "parse_indexed_map",
62
+ "parse_stereo_mono",
63
+ "topology_for_model",
64
+ "volume_from_ha",
65
+ "volume_to_ha",
66
+ ]
67
+
68
+ __version__ = "0.1.0"