A python3 module for reading and changing status of pindora devices through API.
Project description
Pindora Python Client
A python3 module for reading and changing status of Pindora devices through their API. This package provides both a library and a command-line interface (CLI) for interacting with the Pindora API.
Installation
You can install the package from PyPI:
pip install pdora_ampujl
Usage
As a Library
To use the library, import the Pindora class and initialize it with your API key.
from pindora import Pindora
# Replace 'YOUR_API_KEY' with your actual Pindora API key
api_key = 'YOUR_API_KEY'
pindora_client = Pindora(api_key)
# Example: List all Pindora devices
pindoras = pindora_client.list_pindoras()
print(pindoras)
# Example: Read a specific Pindora device
pindora_device = pindora_client.read_pindora('DEVICE_ID')
print(pindora_device)
As a Command-Line Tool
The package also provides a command-line interface for managing Pindora devices and PIN codes.
First, you need to provide your API key as an argument.
python -m pindora <YOUR_API_KEY> [COMMAND]
Here are the available commands:
Pindora Devices
pindora list: List all Pindora devices.pindora read <ID>: Read a specific Pindora device.pindora update <ID> --name <NAME> [--partymode]: Update a Pindora device's name and party mode.pindora open --url1 <URL1> [--url2 <URL2>] --code <CODE>: Open a Pindora lock.
PIN Codes
pin list: List all PIN codes.pin create <CODE> --name <NAME>: Create a new PIN code.pin update <CODE> --name <NAME>: Update a PIN code's name.pin delete <CODE>: Delete a PIN code.
Piccolo Devices
piccolo list: List all Piccolo devices.piccolo read <ID>: Read a specific Piccolo device.
API Key
You need a Pindora API key to use this library. You can obtain one by contacting Pindora.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pindora_python-0.0.1.tar.gz.
File metadata
- Download URL: pindora_python-0.0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd2d437fdd4591222fe5a40480f9b6383db12bef8c3013e924dc02e763f1ad91
|
|
| MD5 |
f70162d7e24996f7183d52067b557fb3
|
|
| BLAKE2b-256 |
4778cb2169ab75228e83391751f42b86f1a13950079aa4ec11e1168789a88751
|
File details
Details for the file pindora_python-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pindora_python-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96c98cd6cc72e39472881c49b747ac98ea17ea6b34274334528b7fb67d33b761
|
|
| MD5 |
89ffa006d426529ccaa7ea0067d85552
|
|
| BLAKE2b-256 |
eff67efcb4290d702482896d440dcc7f38f7f42253f5b121d88d5601404547f8
|