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 details)

Uploaded Source

Built Distribution

pymitt-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pymitt-1.0.0.tar.gz.

File metadata

  • Download URL: pymitt-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pymitt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 733cf7eae2db4e67d81920817ea2fb753c9ef9639f57f667bfedc476d3a24c85
MD5 a732d6120c5704ad2a717cffbe4b4fc2
BLAKE2b-256 57f4f27f39cea61958105c6df6dec0ee38412f00605a2ecd88543f73ec0bedba

See more details on using hashes here.

File details

Details for the file pymitt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pymitt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pymitt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2255358a113b8c9f4151781a79f002adffff05b8e364b6f8762d98a8cb7b941c
MD5 ca4421e1c71521d05f59e99817cf787d
BLAKE2b-256 62a68c8eb5ac413f307dc18c51b60a80b7b64dcfb7ebaa51f2ffd400aec5aded

See more details on using hashes here.

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