zectrixAPI
极趣云平台 CLI 工具,通过命令行控制与管理极趣云平台服务。
安装
从 PyPI 安装:
pip install zectrixAPI -U
从源码安装依赖:
pip install git+https://github.com/lclichen/ZectrixAPI.git
快速开始
1. 配置 API Key
zectrix config set <your_api_key>
API Key 在极趣云平台获取。配置后存储在 ~/.zectrix/config.json。
查看或管理 API Key:
zectrix config show # 查看当前 Key(部分遮蔽)
zectrix config remove # 删除当前 Key
2. 查看设备列表
zectrix devices list
3. 管理待办事项
# 查看待办列表
zectrix todos list
zectrix todos list --status 0 # 仅待完成
zectrix todos list --device-id AA:BB:CC:DD:EE:FF
# 创建待办
zectrix todos create --title "买牛奶" --due-date 2026-03-20 --due-time 09:00 --priority 1
# 更新待办
zectrix todos update 1 --title "买牛奶和面包"
# 标记完成(再次调用则取消)
zectrix todos complete 1
# 删除待办
zectrix todos delete 1
4. 推送内容到设备
# 推送文本
zectrix display text AA:BB:CC:DD:EE:FF "今日天气:晴\n温度:25°C" --font-size 24
# 推送图片(支持多张,最多5张)
zectrix display image AA:BB:CC:DD:EE:FF /path/to/image1.png /path/to/image2.png
# 推送标题+正文
zectrix display structured-text AA:BB:CC:DD:EE:FF -t "会议提醒" -b "15:00 三楼会议室"
命令参考
zectrix config set <key> 设置 API Key
zectrix config show 查看当前 API Key
zectrix config remove 删除 API Key
zectrix devices list 获取设备列表
zectrix todos list 获取待办列表
zectrix todos create 创建待办
zectrix todos update <id> 更新待办
zectrix todos complete <id> 标记完成/取消完成
zectrix todos delete <id> 删除待办
zectrix display image <dev> <imgs...> 推送图片
zectrix display text <dev> <text> 推送文本
zectrix display structured-text <dev> [-t] [-b] 推送标题+正文
作为 Python 库使用
from zectrixAPI.client import ZectrixClient, APIError
client = ZectrixClient("your_api_key")
# 获取设备列表
devices = client.list_devices()
# 创建待办
todo = client.create_todo(title="买牛奶", priority=1)
# 推送文本到设备
client.push_text("AA:BB:CC:DD:EE:FF", "Hello World", font_size=24)
依赖
- Python >= 3.9
- requests >= 2.28
- click >= 8.0
License
MIT
Metadata
Release files for zectrixAPI 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 | |
|---|---|---|---|---|
| zectrixapi-0.1.0.tar.gz | 8.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zectrixapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / zectrixapi-0.1.0.tar.gz
| Download URL | zectrixapi-0.1.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbffb0ff057abab3195b27c9274c4e47e81c4a748de18815d3b7f1ac2b2a5fcd
|
|
BLAKE2b-256 checksum How to use checksums |
15bbd529c22be1315f5a68f9f03550566185e76a8665aed6eeea5c8fc942f51e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logRelease files / zectrixapi-0.1.0-py3-none-any.whl
| Download URL | zectrixapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0682fb21833eb3def62bd66d7c06476261372378a6397d9d0b6a26e92eca045d
|
|
BLAKE2b-256 checksum How to use checksums |
e8f563a726bfabfbbfb40d9ab06a7a8799f7ba1a7e62d2074620a0d9f196a9fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logSecurity for zectrixAPI 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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for zectrixapi-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logA 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.