Compare commits
2 Commits
8945073ec6
...
91f52941d6
| Author | SHA1 | Date | |
|---|---|---|---|
| 91f52941d6 | |||
| 187f37f8e7 |
@@ -10,6 +10,8 @@ Palladium Z1 Monitor — LD逻辑板使用监控系统
|
|||||||
2. API 推送 — 在 Palladium 主机运行 collect.py 远程推送
|
2. API 推送 — 在 Palladium 主机运行 collect.py 远程推送
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import annotations # PEP 563: 兼容 Python 3.7+ (避免 PEP 585 泛型语法)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import io
|
import io
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ mailer.py — Palladium Z1 每日报告邮件发送
|
|||||||
所有配置都从环境变量读 (生产建议用 systemd EnvironmentFile 或 .env)。
|
所有配置都从环境变量读 (生产建议用 systemd EnvironmentFile 或 .env)。
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import annotations # PEP 563: 让所有 type hint 变字符串, 兼容 Python 3.7+
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import smtplib
|
import smtplib
|
||||||
import socket
|
import socket
|
||||||
|
|||||||
Reference in New Issue
Block a user