EZOutlet SDK
Overview
API and command line tools to interface with EZOutlets.
- EZ-73a (2 outlet)
- EZ-72b (1 outlet)
- EZ-62b (1 outlet)
Installation
Install EZOutlet SDK:
python3 -m pip install ezoutlet-sdk
Usage
You can use it by importing:
from ezoutlet import EzOutletAPI
ezoutlet = EzOutletAPI("192.168.1.100", "user", "pass")
# Turn outlet on/off
ezoutlet.turn_on_outlet(1)
ezoutlet.turn_off_outlet(1)
# Switch outlet (i.e. from On → Off, or from Off → On)
ezoutlet.switch_outlet(1)
# Reset outlet (turn off/on) - only if on
ezoutlet.reset_outlet(1)
# Enable/Disable auto reset
ezoutlet.enable_auto_reset()
ezoutlet.disable_auto_reset()
# Get status
status = ezoutlet.get_status()
print(status)
Or as a command line app:
# Turn on outlet #1
ezoutlet-sdk --ip 192.168.1.100 --user admin --password pass --outlet 1 --mode 1
# Turn off outlet #1
ezoutlet-sdk --ip 192.168.1.100 --user admin --password pass --outlet 1 --mode 0
# Enable auto-reset
ezoutlet-sdk --ip 192.168.1.100 --user admin --password pass --outlet 0 --mode 1
# Disable auto-reset
ezoutlet-sdk --ip 192.168.1.100 --user admin --password pass --outlet 0 --mode 0
NOTE: For all CLI options run
ezoutlet-sdk --help.
Development
To get a list of all commands with descriptions simply run make.
make env
make pip_install
make pip_install_editable
Testing
make pytest
make coverage
make open_coverage
Issues
If you experience any issues, please create an issue on Github.
History
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.1.0 (2024-05-02)
- First release
Metadata
Release files for ezoutlet-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ezoutlet_sdk-0.1.0.tar.gz | 9.7 kB | Without provenance | Details for ezoutlet_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ezoutlet_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ezoutlet_sdk-0.1.0-py3-none-any.whl |
Total release size: 17.5 kB
Release files / ezoutlet_sdk-0.1.0.tar.gz
| Download URL | ezoutlet_sdk-0.1.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00b0e0efddad6321dec694695d2f2677a92bc2b5036ff57f37395d2c1c1b3e9b
|
|
BLAKE2b-256 checksum How to use checksums |
637ec8085f853e3b80fcd1a2e283dee966ad71a54809b6a1f6e6b0baf00b6bea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.11
|
Release files / ezoutlet_sdk-0.1.0-py3-none-any.whl
| Download URL | ezoutlet_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
752765b4aef1060509dcbdb4c1f0f6b9341ef9405fb415922414c4284b09f4f9
|
|
BLAKE2b-256 checksum How to use checksums |
11ba846d8fc2620ef76d002c29f40236283294068f54548824f983f200e3c56d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.11
|
Security for ezoutlet-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.