File: README.md

package info (click to toggle)
pynuki 1.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 164 kB
  • sloc: python: 477; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 668 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# pynuki

![PyPI](https://img.shields.io/pypi/v/pynuki)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pynuki)
![PyPI - License](https://img.shields.io/pypi/l/pynuki)
[![CI](https://github.com/pschmitt/pynuki/workflows/CI/badge.svg)](https://github.com/pschmitt/pynuki/actions?query=workflow%3A%22CI%22)

Python library for interacting with Nuki locks and openers

## Installation

```bash
pip install -U pynuki
```

## Usage

```python
from pynuki import NukiBridge

bridges = NukiBridge.discover()
br = bridges[0]
br.token = "YOUR_TOKEN"

# Locks
br.locks[0].lock()
br.locks[0].unlock()

# Openers
br.openers[0].activate_rto()
br.openers[0].deactivate_rto()
```