gpt-ping-cn 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: gpt-ping-cn
3
+ Version: 1.0.0
4
+ Summary: 2026 OpenAI API Latency & Model Diagnostics CLI (o1/o3/GPT-5/6)
5
+ Home-page: https://ruandawa-ux.github.io/ai-tools-hub/
6
+ Author: dawa
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.8
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+ Dynamic: author
14
+ Dynamic: classifier
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: home-page
18
+ Dynamic: requires-dist
19
+ Dynamic: requires-python
20
+ Dynamic: summary
21
+
22
+ # gpt-ping-cn
23
+
24
+ ⚡ 2026 前沿 OpenAI API Key 连通性、延迟测速与多代次模型权限诊断 CLI 工具。
25
+
26
+ ## 安装
27
+
28
+ ```bash
29
+ pip install gpt-ping-cn
30
+ ```
31
+
32
+ ## 使用
33
+
34
+ ```bash
35
+ gpt-ping
36
+ ```
37
+
38
+ ## 官方渠道与技术支持
39
+
40
+ * 🛒 **24小时官方自主发卡小店 (ChatGPT Plus 原卡代充 / Cursor Pro / 商业 API Key)**: https://wzyp.cn/shop/dawa
41
+ * 💬 **官方技术与防封交流 QQ 群**: 545064986
42
+ * 🌐 **开源导航站与避坑手册**: https://ruandawa-ux.github.io/ai-tools-hub/
@@ -0,0 +1,21 @@
1
+ # gpt-ping-cn
2
+
3
+ ⚡ 2026 前沿 OpenAI API Key 连通性、延迟测速与多代次模型权限诊断 CLI 工具。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pip install gpt-ping-cn
9
+ ```
10
+
11
+ ## 使用
12
+
13
+ ```bash
14
+ gpt-ping
15
+ ```
16
+
17
+ ## 官方渠道与技术支持
18
+
19
+ * 🛒 **24小时官方自主发卡小店 (ChatGPT Plus 原卡代充 / Cursor Pro / 商业 API Key)**: https://wzyp.cn/shop/dawa
20
+ * 💬 **官方技术与防封交流 QQ 群**: 545064986
21
+ * 🌐 **开源导航站与避坑手册**: https://ruandawa-ux.github.io/ai-tools-hub/
@@ -0,0 +1 @@
1
+ __version__ = "1.0.0"
@@ -0,0 +1,46 @@
1
+ import sys
2
+ import time
3
+ import requests
4
+
5
+ SHOP_URL = "https://wzyp.cn/shop/dawa"
6
+ QQ_GROUP = "545064986"
7
+ HUB_URL = "https://ruandawa-ux.github.io/ai-tools-hub/"
8
+
9
+ def main():
10
+ print("=" * 60)
11
+ print("⚡ 2026 OpenAI API Key 健康体检与全模型延迟测速 (gpt-ping)")
12
+ print("=" * 60)
13
+
14
+ key = input("请输入 OpenAI API Key (sk-...): ").strip()
15
+ if not key or not key.startswith("sk-"):
16
+ print("⚠️ Key 格式不正确,必须以 sk- 开头")
17
+ sys.exit(1)
18
+
19
+ print("\n[1/2] 正在连接 OpenAI 官方节点...")
20
+ headers = {"Authorization": f"Bearer {key}"}
21
+ start = time.time()
22
+ try:
23
+ resp = requests.get("https://api.openai.com/v1/models", headers=headers, timeout=10)
24
+ latency = int((time.time() - start) * 1000)
25
+ if resp.status_code == 200:
26
+ data = resp.json()
27
+ models = [m["id"] for m in data.get("data", []) if any(k in m["id"] for k in ["o1", "o3", "gpt"])][:8]
28
+ models_list = ", ".join(models)
29
+ print(f"✅ API Key 状态正常!响应延迟: {latency} ms")
30
+ print(f"🔑 支持的核心模型: {models_list}")
31
+ print("\n🎉 该 Key 可直接配置到 Cursor / NextChat / 生产系统!")
32
+ else:
33
+ err = resp.json().get("error", {}).get("message", f"HTTP {resp.status_code}")
34
+ print(f"❌ 接口返回异常: {err}")
35
+ print("\n💡 提示:如遇风控拒付或额度耗尽,可换用官方正规商业 Key / 原卡代充:")
36
+ print(f"🛒 24小时官方自主小店: {SHOP_URL}")
37
+ print(f"💬 官方技术防封 QQ 群: {QQ_GROUP}")
38
+ except Exception as e:
39
+ print(f"❌ 连接失败/网络阻断: {e}")
40
+ print("\n💡 国内免翻官方通道与环境配置:")
41
+ print(f"🛒 官方发卡小店: {SHOP_URL}")
42
+ print(f"🌐 开源技术主站: {HUB_URL}")
43
+ print("=" * 60)
44
+
45
+ if __name__ == "__main__":
46
+ main()
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: gpt-ping-cn
3
+ Version: 1.0.0
4
+ Summary: 2026 OpenAI API Latency & Model Diagnostics CLI (o1/o3/GPT-5/6)
5
+ Home-page: https://ruandawa-ux.github.io/ai-tools-hub/
6
+ Author: dawa
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.8
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+ Dynamic: author
14
+ Dynamic: classifier
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: home-page
18
+ Dynamic: requires-dist
19
+ Dynamic: requires-python
20
+ Dynamic: summary
21
+
22
+ # gpt-ping-cn
23
+
24
+ ⚡ 2026 前沿 OpenAI API Key 连通性、延迟测速与多代次模型权限诊断 CLI 工具。
25
+
26
+ ## 安装
27
+
28
+ ```bash
29
+ pip install gpt-ping-cn
30
+ ```
31
+
32
+ ## 使用
33
+
34
+ ```bash
35
+ gpt-ping
36
+ ```
37
+
38
+ ## 官方渠道与技术支持
39
+
40
+ * 🛒 **24小时官方自主发卡小店 (ChatGPT Plus 原卡代充 / Cursor Pro / 商业 API Key)**: https://wzyp.cn/shop/dawa
41
+ * 💬 **官方技术与防封交流 QQ 群**: 545064986
42
+ * 🌐 **开源导航站与避坑手册**: https://ruandawa-ux.github.io/ai-tools-hub/
@@ -0,0 +1,10 @@
1
+ README.md
2
+ setup.py
3
+ gpt_ping/__init__.py
4
+ gpt_ping/cli.py
5
+ gpt_ping_cn.egg-info/PKG-INFO
6
+ gpt_ping_cn.egg-info/SOURCES.txt
7
+ gpt_ping_cn.egg-info/dependency_links.txt
8
+ gpt_ping_cn.egg-info/entry_points.txt
9
+ gpt_ping_cn.egg-info/requires.txt
10
+ gpt_ping_cn.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ gpt-ping = gpt_ping.cli:main
@@ -0,0 +1 @@
1
+ requests
@@ -0,0 +1 @@
1
+ gpt_ping
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,24 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="gpt-ping-cn",
5
+ version="1.0.0",
6
+ description="2026 OpenAI API Latency & Model Diagnostics CLI (o1/o3/GPT-5/6)",
7
+ long_description=open("README.md", encoding="utf-8").read(),
8
+ long_description_content_type="text/markdown",
9
+ author="dawa",
10
+ url="https://ruandawa-ux.github.io/ai-tools-hub/",
11
+ packages=find_packages(),
12
+ install_requires=["requests"],
13
+ entry_points={
14
+ "console_scripts": [
15
+ "gpt-ping=gpt_ping.cli:main",
16
+ ],
17
+ },
18
+ classifiers=[
19
+ "Programming Language :: Python :: 3",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ ],
23
+ python_requires=">=3.8",
24
+ )