← Winnitude! Search  ·  Reader Mode (1565 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 54 LINKS

GitHub - ryanhz/osdp-python: A Python control panel implementation of the Open Supervised Device Protocol (OSDP)

Repository navigation

osdp-python
Public

About

A Python control panel implementation of the Open Supervised Device Protocol (OSDP)

Topics

access-control osdp osdp-python protocol python-framework

Resources

Readme Apache-2.0 license Activity

Stars

40 stars

Watchers

9 watching

Forks

11 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


52 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
osdp osdp    
tests tests    
.gitignore .gitignore    
LICENSE.txt LICENSE.txt    
MANIFEST MANIFEST    
README.rst README.rst    
requirements.txt requirements.txt    
setup.cfg setup.cfg    
setup.py setup.py    
tox.ini tox.ini    

Repository files navigation

OSDP Python

OSDP Python is a python framework implementation of the Open Supervised Device Protocol (OSDP). This protocol has been adopted by the Security Industry Association(SIA) to standardize communication to access control hardware. Further information can be found at http://www.osdp-connect.com .

This project is highly inspired by @bytedreamer's OSDP.Net <https://github.com/bytedreamer/OSDP.Net >

License

  • Apache

Quick Start

Installation

To install OSDP, use pip3 or pipenv :

$ pip3 install -U osdp

This module depends on

  • pycryptodome
  • pyserial

Example Usage

>>> from osdp import *
>>> conn = SerialPortOsdpConnection(port='/dev/tty.wchusbserial1420', baud_rate=9600)
>>> cp = ControlPanel()
>>> bus_id = cp.start_connection(conn)
>>> cp.add_device(connection_id=bus_id, address=0x7F, use_crc=True, use_secure_channel=False)
>>> id_report = cp.id_report(connection_id=bus_id, address=0x7F)
>>> device_capabilities = cp.device_capabilities(connection_id=bus_id, address=0x7F)
>>> local_status = cp.local_status(connection_id=bus_id, address=0x7F)
>>> input_status = cp.input_status(connection_id=bus_id, address=0x7F)
>>> output_status = cp.output_status(connection_id=bus_id, address=0x7F)
>>> cp.shutdown()

About

A Python control panel implementation of the Open Supervised Device Protocol (OSDP)

Topics

access-control osdp osdp-python protocol python-framework

Resources

Readme Apache-2.0 license Activity

Stars

40 stars

Watchers

9 watching

Forks

11 forks Report repository

Releases

Packages

Used by

Contributors

Languages