Skip to main content

KeyRT

Project description

KeyRT

Не знаю, зачем тебе может понадобиться автоматизация открытия дверей и выдачи кодов, но это твоё право, я даю тебе удобный инструмент для его реализации. Да здравствует питон.

Установка

python -m pip install -U keyrt

Использование

Открытие двери

from keyrt import KeyRT

async def main():
    keyrt_client = KeyRT(access_token='YOUR_ACCESS_TOKEN')
    
    # Список устройств: домофон, шлагбаум, ворота
    devices = await keyrt_client.get_devices()
    
    for i, device in enumerate(devices):
        example = devices[i]
        assert example is device
        
        example = devices[device.]
    
    assert await keyrt_client.open_device(devices[0].id)
    
    # Камеры 
    cameras = await keyrt_client.get_cameras()
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keyrt-0.0.4a2.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

keyrt-0.0.4a2-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page