Skip to main content

Minimal Python wrapper for Keymitt webhooks

Project description

pymitt

A minimal Python wrapper for Keymitt webhooks

Usage is super simple. Import the script, and initialize as many Keymitt locks or push buttons as you like by providing the device's ID and token. Needs an event loop to run.

Minimal example to lock and unlock a Keymitt lock from a simple script:

import asyncio

from pymitt import pymitt

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

k = pymitt.KeymittLock("YOUR_LOCK_ID", "YOUR_TOKEN")

# Lock the lock
loop.run_until_complete(k.lock())

# Unlock the lock
loop.run_until_complete(k.unlock())

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

pymitt-1.0.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

pymitt-1.0.0-py3-none-any.whl (3.2 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