pypck 0.8.10__py3-none-any.whl → 0.9.1__py3-none-any.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.
pypck/py.typed ADDED
File without changes
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: pypck
3
+ Version: 0.9.1
4
+ Summary: LCN-PCK library
5
+ Home-page: https://github.com/alengwenus/pypck
6
+ Author-email: Andre Lengwenus <alengwenus@gmail.com>
7
+ License: MIT
8
+ Project-URL: Source Code, https://github.com/alengwenus/pypck
9
+ Project-URL: Bug Reports, https://github.com/alengwenus/pypck/issues
10
+ Keywords: lcn,pck
11
+ Platform: any
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Development Status :: 5 - Production/Stable
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Home Automation
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ # pypck - Asynchronous LCN-PCK library written in Python
24
+
25
+ ![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/alengwenus/pypck?color=success)
26
+ ![GitHub Workflow Status (dev branch)](https://github.com/alengwenus/pypck/actions/workflows/ci.yaml/badge.svg?branch=dev)
27
+ ![Codecov branch](https://img.shields.io/codecov/c/github/alengwenus/pypck/dev)
28
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/pypck)](https://pypi.org/project/pypck/)
29
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
30
+
31
+ <a href="https://www.buymeacoffee.com/alengwenus" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/white_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
32
+
33
+ ## Overview
34
+
35
+ **pypck** is an open source library written in Python which allows the connection to the [LCN (local control network) system](https://www.lcn.eu). It uses the vendor protocol LCN-PCK.
36
+ To get started an unused license of the coupling software LCN-PCHK and a hardware coupler is necessary.
37
+
38
+ **pypck** is used by the LCN integration of the [Home Assistant](https://home-assistant.io/) project.
39
+
40
+ ## Example
41
+
42
+ ```python
43
+ """Example for switching an output port of module 10 on and off."""
44
+ import asyncio
45
+
46
+ from pypck.connection import PchkConnectionManager
47
+ from pypck.lcn_addr import LcnAddr
48
+
49
+ async def main():
50
+ """Connect to PCK host, get module object and switch output port on and off."""
51
+ async with PchkConnectionManager(
52
+ "192.168.2.41",
53
+ 4114,
54
+ username="lcn",
55
+ password="lcn",
56
+ settings={"SK_NUM_TRIES": 0},
57
+ ) as pck_client:
58
+ module = pck_client.get_address_conn(LcnAddr(0, 10, False))
59
+
60
+ await module.dim_output(0, 100, 0)
61
+ await asyncio.sleep(1)
62
+ await module.dim_output(0, 0, 0)
63
+
64
+ asyncio.run(main())
65
+ ```
@@ -0,0 +1,14 @@
1
+ pypck/__init__.py,sha256=_40HMoShQbAlJT0ZdOjQagqn2NRTrvUGOmoS3cYBuIA,277
2
+ pypck/connection.py,sha256=CrcvSnTn3Pbd9rwP_CBDagocJVG2DEE9KKN95ljdOVY,23839
3
+ pypck/helpers.py,sha256=_5doqIsSRpqdQNPIUsjFh813xKGuMuEFY6sNGobJGIk,1280
4
+ pypck/inputs.py,sha256=cjhvYKPr5QHw7Rjfkkg8LPbP8ohq_-z_Tvk51Rkx0aY,45828
5
+ pypck/lcn_addr.py,sha256=N2Od8KuANOglqKjf596hJVH1SRcG7MhESKA5YYlDnbw,1946
6
+ pypck/lcn_defs.py,sha256=hB4fxcjz7zkO3qkgBpWmdg8z17ZLAkZmRCyaucp70eM,42850
7
+ pypck/module.py,sha256=gNkLn4UK99Qs0x0apOgytCgPIUZoq6mBLjco0AgXad4,45091
8
+ pypck/pck_commands.py,sha256=bkb3q49s4PVY6UNR0B6S31oU7aSaEbpPl3rj0eGxTQU,50380
9
+ pypck/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ pypck-0.9.1.dist-info/licenses/LICENSE,sha256=iYB6zyMJvShfAzQE7nhYFgLzzZuBmhasLw5fYP9KRz4,1023
11
+ pypck-0.9.1.dist-info/METADATA,sha256=ZSoV0COOX-ilQrm-S0Xg8gPuiGzqEWm9RPdksfl8E2s,2677
12
+ pypck-0.9.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
+ pypck-0.9.1.dist-info/top_level.txt,sha256=59ried49iFueDa5mQ_5BGVZcESjjzi4MZZKLcganvQA,6
14
+ pypck-0.9.1.dist-info/RECORD,,