hello-world-pro-max 0.1.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.
- hello_world_pro_max-0.1.0/LICENSE +21 -0
- hello_world_pro_max-0.1.0/PKG-INFO +184 -0
- hello_world_pro_max-0.1.0/README.md +93 -0
- hello_world_pro_max-0.1.0/pyproject.toml +122 -0
- hello_world_pro_max-0.1.0/setup.cfg +4 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max/__init__.py +17 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max/__main__.py +5 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max.egg-info/PKG-INFO +184 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max.egg-info/SOURCES.txt +12 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max.egg-info/dependency_links.txt +1 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max.egg-info/entry_points.txt +2 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max.egg-info/requires.txt +76 -0
- hello_world_pro_max-0.1.0/src/hello_world_pro_max.egg-info/top_level.txt +1 -0
- hello_world_pro_max-0.1.0/tests/test_hello.py +14 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 hello-world-pro-max contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hello-world-pro-max
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Hello, world package with the dependency tree of a small operating system.
|
|
5
|
+
Author: hello-world-pro-max contributors
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://example.invalid/hello-world-pro-max
|
|
8
|
+
Keywords: hello,world,overengineering,dependencies,enterprise
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: numpy
|
|
16
|
+
Requires-Dist: pandas
|
|
17
|
+
Requires-Dist: scipy
|
|
18
|
+
Requires-Dist: sympy
|
|
19
|
+
Requires-Dist: mpmath
|
|
20
|
+
Requires-Dist: networkx
|
|
21
|
+
Requires-Dist: joblib
|
|
22
|
+
Requires-Dist: cloudpickle
|
|
23
|
+
Requires-Dist: matplotlib
|
|
24
|
+
Requires-Dist: seaborn
|
|
25
|
+
Requires-Dist: plotly
|
|
26
|
+
Requires-Dist: plotext
|
|
27
|
+
Requires-Dist: termplotlib
|
|
28
|
+
Requires-Dist: pillow
|
|
29
|
+
Requires-Dist: qrcode
|
|
30
|
+
Requires-Dist: pyfiglet
|
|
31
|
+
Requires-Dist: requests
|
|
32
|
+
Requires-Dist: httpx
|
|
33
|
+
Requires-Dist: aiohttp
|
|
34
|
+
Requires-Dist: fastapi
|
|
35
|
+
Requires-Dist: uvicorn
|
|
36
|
+
Requires-Dist: flask
|
|
37
|
+
Requires-Dist: flask-login
|
|
38
|
+
Requires-Dist: flask-migrate
|
|
39
|
+
Requires-Dist: flask-sqlalchemy
|
|
40
|
+
Requires-Dist: django
|
|
41
|
+
Requires-Dist: jinja2
|
|
42
|
+
Requires-Dist: wtforms
|
|
43
|
+
Requires-Dist: marshmallow
|
|
44
|
+
Requires-Dist: pydantic
|
|
45
|
+
Requires-Dist: sqlalchemy
|
|
46
|
+
Requires-Dist: alembic
|
|
47
|
+
Requires-Dist: lxml
|
|
48
|
+
Requires-Dist: beautifulsoup4
|
|
49
|
+
Requires-Dist: pyyaml
|
|
50
|
+
Requires-Dist: python-docx
|
|
51
|
+
Requires-Dist: python-pptx
|
|
52
|
+
Requires-Dist: openpyxl
|
|
53
|
+
Requires-Dist: pypdf
|
|
54
|
+
Requires-Dist: pypinyin
|
|
55
|
+
Requires-Dist: emoji
|
|
56
|
+
Requires-Dist: humanize
|
|
57
|
+
Requires-Dist: tabulate
|
|
58
|
+
Requires-Dist: prettytable
|
|
59
|
+
Requires-Dist: click
|
|
60
|
+
Requires-Dist: typer
|
|
61
|
+
Requires-Dist: rich
|
|
62
|
+
Requires-Dist: loguru
|
|
63
|
+
Requires-Dist: tqdm
|
|
64
|
+
Requires-Dist: tenacity
|
|
65
|
+
Requires-Dist: schedule
|
|
66
|
+
Requires-Dist: diskcache
|
|
67
|
+
Requires-Dist: python-dotenv
|
|
68
|
+
Requires-Dist: ipython
|
|
69
|
+
Requires-Dist: jupyter
|
|
70
|
+
Requires-Dist: notebook
|
|
71
|
+
Requires-Dist: pygame
|
|
72
|
+
Requires-Dist: kivy
|
|
73
|
+
Requires-Dist: manim
|
|
74
|
+
Requires-Dist: soundfile
|
|
75
|
+
Requires-Dist: pydub
|
|
76
|
+
Requires-Dist: openai
|
|
77
|
+
Requires-Dist: g4f
|
|
78
|
+
Requires-Dist: yt-dlp
|
|
79
|
+
Requires-Dist: hypothesis
|
|
80
|
+
Provides-Extra: extras
|
|
81
|
+
Requires-Dist: black; extra == "extras"
|
|
82
|
+
Requires-Dist: flake8; extra == "extras"
|
|
83
|
+
Requires-Dist: isort; extra == "extras"
|
|
84
|
+
Requires-Dist: pytest; extra == "extras"
|
|
85
|
+
Requires-Dist: pytest-asyncio; extra == "extras"
|
|
86
|
+
Requires-Dist: pytest-cov; extra == "extras"
|
|
87
|
+
Requires-Dist: pytest-mock; extra == "extras"
|
|
88
|
+
Requires-Dist: pytest-xdist; extra == "extras"
|
|
89
|
+
Requires-Dist: coverage; extra == "extras"
|
|
90
|
+
Dynamic: license-file
|
|
91
|
+
|
|
92
|
+
# hello-world-pro-max 😈
|
|
93
|
+
|
|
94
|
+
> 一个只会打印 `Hello, world` 的包,却带着 65 个依赖的行李。
|
|
95
|
+
|
|
96
|
+
## 这是什么
|
|
97
|
+
|
|
98
|
+
这是世界上最诚实的"大型"项目:
|
|
99
|
+
|
|
100
|
+
- **代码**:5 行。
|
|
101
|
+
- **功能**:1 个。
|
|
102
|
+
- **依赖**:65 个(不含 `[extras]` 里的 9 个开发工具)。
|
|
103
|
+
- **数据库迁移**:有 `alembic`,但没有数据库。
|
|
104
|
+
- **Web 框架**:有 `fastapi`、`flask`、`django`,但没有 Web 服务。
|
|
105
|
+
- **动画引擎**:有 `manim`,但没有动画。
|
|
106
|
+
- **AI**:有 `openai` 和 `g4f`,但没有智能。
|
|
107
|
+
- **Jupyter 全家桶**:有,但没人知道为什么。
|
|
108
|
+
|
|
109
|
+
## 安装
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
pip install hello-world-pro-max
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
如果你的机器上还没有这 65 个依赖,pip 会非常热情地帮你把半个 PyPI 搬回家。
|
|
116
|
+
如果你只是想看看这个包,而不想真的下载半个互联网:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
pip install --no-deps hello-world-pro-max
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
(装完之后你会发现,`--no-deps` 才是这个包的正确打开方式。)
|
|
123
|
+
|
|
124
|
+
想要更多依赖?还有一层可选依赖:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
pip install "hello-world-pro-max[extras]"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## 使用
|
|
131
|
+
|
|
132
|
+
```python
|
|
133
|
+
import hello_world_pro_max
|
|
134
|
+
|
|
135
|
+
hello_world_pro_max.hello()
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
或者:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
python -m hello_world_pro_max
|
|
142
|
+
hello-world-pro-max
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
输出:
|
|
146
|
+
|
|
147
|
+
```text
|
|
148
|
+
Hello, world
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## 全部源代码
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
MESSAGE = "Hello, world"
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def hello() -> None:
|
|
158
|
+
print(MESSAGE)
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
真的,就这些。`pyproject.toml` 比源代码长 20 倍。
|
|
162
|
+
|
|
163
|
+
## 依赖用途说明(声称)
|
|
164
|
+
|
|
165
|
+
| 依赖 | 用途 |
|
|
166
|
+
| --- | --- |
|
|
167
|
+
| `numpy` | 为 "Hello" 和 ", world" 之间的空格提供数值稳定性 |
|
|
168
|
+
| `pandas` | 将单行输出组织为 DataFrame,以便不查看它 |
|
|
169
|
+
| `manim` | 如果 hello world 需要 3D 动画,我们已就绪 |
|
|
170
|
+
| `django` | 为未来可能出现的第 2 个函数预留的 Web 框架 |
|
|
171
|
+
| `openai` | 自动生成 "Hello, world" 的替代文案(暂未启用) |
|
|
172
|
+
| `hypothesis` | 对 `MESSAGE == "Hello, world"` 做属性测试,以防它哪天变了 |
|
|
173
|
+
| `yt-dlp` | 下载关于 Hello, world 的教程视频(暂未启用) |
|
|
174
|
+
| `kivy` | 为移动端 Hello, world 布局做好准备 |
|
|
175
|
+
|
|
176
|
+
(以上用途均为虚构。真实的用途是:让 `pip install` 的进度条显得物超所值。)
|
|
177
|
+
|
|
178
|
+
## 为什么?
|
|
179
|
+
|
|
180
|
+
因为可以。
|
|
181
|
+
|
|
182
|
+
## License
|
|
183
|
+
|
|
184
|
+
MIT
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# hello-world-pro-max 😈
|
|
2
|
+
|
|
3
|
+
> 一个只会打印 `Hello, world` 的包,却带着 65 个依赖的行李。
|
|
4
|
+
|
|
5
|
+
## 这是什么
|
|
6
|
+
|
|
7
|
+
这是世界上最诚实的"大型"项目:
|
|
8
|
+
|
|
9
|
+
- **代码**:5 行。
|
|
10
|
+
- **功能**:1 个。
|
|
11
|
+
- **依赖**:65 个(不含 `[extras]` 里的 9 个开发工具)。
|
|
12
|
+
- **数据库迁移**:有 `alembic`,但没有数据库。
|
|
13
|
+
- **Web 框架**:有 `fastapi`、`flask`、`django`,但没有 Web 服务。
|
|
14
|
+
- **动画引擎**:有 `manim`,但没有动画。
|
|
15
|
+
- **AI**:有 `openai` 和 `g4f`,但没有智能。
|
|
16
|
+
- **Jupyter 全家桶**:有,但没人知道为什么。
|
|
17
|
+
|
|
18
|
+
## 安装
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install hello-world-pro-max
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
如果你的机器上还没有这 65 个依赖,pip 会非常热情地帮你把半个 PyPI 搬回家。
|
|
25
|
+
如果你只是想看看这个包,而不想真的下载半个互联网:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install --no-deps hello-world-pro-max
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
(装完之后你会发现,`--no-deps` 才是这个包的正确打开方式。)
|
|
32
|
+
|
|
33
|
+
想要更多依赖?还有一层可选依赖:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install "hello-world-pro-max[extras]"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 使用
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
import hello_world_pro_max
|
|
43
|
+
|
|
44
|
+
hello_world_pro_max.hello()
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
或者:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
python -m hello_world_pro_max
|
|
51
|
+
hello-world-pro-max
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
输出:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
Hello, world
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 全部源代码
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
MESSAGE = "Hello, world"
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def hello() -> None:
|
|
67
|
+
print(MESSAGE)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
真的,就这些。`pyproject.toml` 比源代码长 20 倍。
|
|
71
|
+
|
|
72
|
+
## 依赖用途说明(声称)
|
|
73
|
+
|
|
74
|
+
| 依赖 | 用途 |
|
|
75
|
+
| --- | --- |
|
|
76
|
+
| `numpy` | 为 "Hello" 和 ", world" 之间的空格提供数值稳定性 |
|
|
77
|
+
| `pandas` | 将单行输出组织为 DataFrame,以便不查看它 |
|
|
78
|
+
| `manim` | 如果 hello world 需要 3D 动画,我们已就绪 |
|
|
79
|
+
| `django` | 为未来可能出现的第 2 个函数预留的 Web 框架 |
|
|
80
|
+
| `openai` | 自动生成 "Hello, world" 的替代文案(暂未启用) |
|
|
81
|
+
| `hypothesis` | 对 `MESSAGE == "Hello, world"` 做属性测试,以防它哪天变了 |
|
|
82
|
+
| `yt-dlp` | 下载关于 Hello, world 的教程视频(暂未启用) |
|
|
83
|
+
| `kivy` | 为移动端 Hello, world 布局做好准备 |
|
|
84
|
+
|
|
85
|
+
(以上用途均为虚构。真实的用途是:让 `pip install` 的进度条显得物超所值。)
|
|
86
|
+
|
|
87
|
+
## 为什么?
|
|
88
|
+
|
|
89
|
+
因为可以。
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
MIT
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "hello-world-pro-max"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A Hello, world package with the dependency tree of a small operating system."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "hello-world-pro-max contributors" }]
|
|
14
|
+
keywords = ["hello", "world", "overengineering", "dependencies", "enterprise"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
# 数据与科学计算
|
|
22
|
+
"numpy",
|
|
23
|
+
"pandas",
|
|
24
|
+
"scipy",
|
|
25
|
+
"sympy",
|
|
26
|
+
"mpmath",
|
|
27
|
+
"networkx",
|
|
28
|
+
"joblib",
|
|
29
|
+
"cloudpickle",
|
|
30
|
+
# 可视化
|
|
31
|
+
"matplotlib",
|
|
32
|
+
"seaborn",
|
|
33
|
+
"plotly",
|
|
34
|
+
"plotext",
|
|
35
|
+
"termplotlib",
|
|
36
|
+
"pillow",
|
|
37
|
+
"qrcode",
|
|
38
|
+
"pyfiglet",
|
|
39
|
+
# Web / API
|
|
40
|
+
"requests",
|
|
41
|
+
"httpx",
|
|
42
|
+
"aiohttp",
|
|
43
|
+
"fastapi",
|
|
44
|
+
"uvicorn",
|
|
45
|
+
"flask",
|
|
46
|
+
"flask-login",
|
|
47
|
+
"flask-migrate",
|
|
48
|
+
"flask-sqlalchemy",
|
|
49
|
+
"django",
|
|
50
|
+
"jinja2",
|
|
51
|
+
"wtforms",
|
|
52
|
+
"marshmallow",
|
|
53
|
+
"pydantic",
|
|
54
|
+
# 数据库
|
|
55
|
+
"sqlalchemy",
|
|
56
|
+
"alembic",
|
|
57
|
+
# 文本 / 文件
|
|
58
|
+
"lxml",
|
|
59
|
+
"beautifulsoup4",
|
|
60
|
+
"pyyaml",
|
|
61
|
+
"python-docx",
|
|
62
|
+
"python-pptx",
|
|
63
|
+
"openpyxl",
|
|
64
|
+
"pypdf",
|
|
65
|
+
"pypinyin",
|
|
66
|
+
"emoji",
|
|
67
|
+
"humanize",
|
|
68
|
+
"tabulate",
|
|
69
|
+
"prettytable",
|
|
70
|
+
# 工具与运行时
|
|
71
|
+
"click",
|
|
72
|
+
"typer",
|
|
73
|
+
"rich",
|
|
74
|
+
"loguru",
|
|
75
|
+
"tqdm",
|
|
76
|
+
"tenacity",
|
|
77
|
+
"schedule",
|
|
78
|
+
"diskcache",
|
|
79
|
+
"python-dotenv",
|
|
80
|
+
"ipython",
|
|
81
|
+
"jupyter",
|
|
82
|
+
"notebook",
|
|
83
|
+
# 多媒体 / 游戏 / 动画
|
|
84
|
+
"pygame",
|
|
85
|
+
"kivy",
|
|
86
|
+
"manim",
|
|
87
|
+
"soundfile",
|
|
88
|
+
"pydub",
|
|
89
|
+
# 互联网上的一切
|
|
90
|
+
"openai",
|
|
91
|
+
"g4f",
|
|
92
|
+
"yt-dlp",
|
|
93
|
+
# 质量保证(依赖也是依赖)
|
|
94
|
+
"hypothesis",
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
[project.optional-dependencies]
|
|
98
|
+
# 如果你觉得上面的依赖还不够多,可以再来一层。
|
|
99
|
+
extras = [
|
|
100
|
+
"black",
|
|
101
|
+
"flake8",
|
|
102
|
+
"isort",
|
|
103
|
+
"pytest",
|
|
104
|
+
"pytest-asyncio",
|
|
105
|
+
"pytest-cov",
|
|
106
|
+
"pytest-mock",
|
|
107
|
+
"pytest-xdist",
|
|
108
|
+
"coverage",
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
[project.scripts]
|
|
112
|
+
hello-world-pro-max = "hello_world_pro_max:hello"
|
|
113
|
+
|
|
114
|
+
[project.urls]
|
|
115
|
+
Homepage = "https://example.invalid/hello-world-pro-max"
|
|
116
|
+
|
|
117
|
+
[tool.setuptools.packages.find]
|
|
118
|
+
where = ["src"]
|
|
119
|
+
|
|
120
|
+
[tool.pytest.ini_options]
|
|
121
|
+
testpaths = ["tests"]
|
|
122
|
+
pythonpath = ["src"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""hello_world_pro_max — 全世界依赖最多的 Hello, world。
|
|
2
|
+
|
|
3
|
+
整个包的全部功能就是下面这一个函数:打印 "Hello, world"。
|
|
4
|
+
为了这 12 个字符,pyproject.toml 里申请了 60 多个依赖。
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
__version__ = "0.1.0"
|
|
10
|
+
__all__ = ["MESSAGE", "hello"]
|
|
11
|
+
|
|
12
|
+
MESSAGE = "Hello, world"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def hello() -> None:
|
|
16
|
+
"""打印那句唯一的话。"""
|
|
17
|
+
print(MESSAGE)
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hello-world-pro-max
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Hello, world package with the dependency tree of a small operating system.
|
|
5
|
+
Author: hello-world-pro-max contributors
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://example.invalid/hello-world-pro-max
|
|
8
|
+
Keywords: hello,world,overengineering,dependencies,enterprise
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: numpy
|
|
16
|
+
Requires-Dist: pandas
|
|
17
|
+
Requires-Dist: scipy
|
|
18
|
+
Requires-Dist: sympy
|
|
19
|
+
Requires-Dist: mpmath
|
|
20
|
+
Requires-Dist: networkx
|
|
21
|
+
Requires-Dist: joblib
|
|
22
|
+
Requires-Dist: cloudpickle
|
|
23
|
+
Requires-Dist: matplotlib
|
|
24
|
+
Requires-Dist: seaborn
|
|
25
|
+
Requires-Dist: plotly
|
|
26
|
+
Requires-Dist: plotext
|
|
27
|
+
Requires-Dist: termplotlib
|
|
28
|
+
Requires-Dist: pillow
|
|
29
|
+
Requires-Dist: qrcode
|
|
30
|
+
Requires-Dist: pyfiglet
|
|
31
|
+
Requires-Dist: requests
|
|
32
|
+
Requires-Dist: httpx
|
|
33
|
+
Requires-Dist: aiohttp
|
|
34
|
+
Requires-Dist: fastapi
|
|
35
|
+
Requires-Dist: uvicorn
|
|
36
|
+
Requires-Dist: flask
|
|
37
|
+
Requires-Dist: flask-login
|
|
38
|
+
Requires-Dist: flask-migrate
|
|
39
|
+
Requires-Dist: flask-sqlalchemy
|
|
40
|
+
Requires-Dist: django
|
|
41
|
+
Requires-Dist: jinja2
|
|
42
|
+
Requires-Dist: wtforms
|
|
43
|
+
Requires-Dist: marshmallow
|
|
44
|
+
Requires-Dist: pydantic
|
|
45
|
+
Requires-Dist: sqlalchemy
|
|
46
|
+
Requires-Dist: alembic
|
|
47
|
+
Requires-Dist: lxml
|
|
48
|
+
Requires-Dist: beautifulsoup4
|
|
49
|
+
Requires-Dist: pyyaml
|
|
50
|
+
Requires-Dist: python-docx
|
|
51
|
+
Requires-Dist: python-pptx
|
|
52
|
+
Requires-Dist: openpyxl
|
|
53
|
+
Requires-Dist: pypdf
|
|
54
|
+
Requires-Dist: pypinyin
|
|
55
|
+
Requires-Dist: emoji
|
|
56
|
+
Requires-Dist: humanize
|
|
57
|
+
Requires-Dist: tabulate
|
|
58
|
+
Requires-Dist: prettytable
|
|
59
|
+
Requires-Dist: click
|
|
60
|
+
Requires-Dist: typer
|
|
61
|
+
Requires-Dist: rich
|
|
62
|
+
Requires-Dist: loguru
|
|
63
|
+
Requires-Dist: tqdm
|
|
64
|
+
Requires-Dist: tenacity
|
|
65
|
+
Requires-Dist: schedule
|
|
66
|
+
Requires-Dist: diskcache
|
|
67
|
+
Requires-Dist: python-dotenv
|
|
68
|
+
Requires-Dist: ipython
|
|
69
|
+
Requires-Dist: jupyter
|
|
70
|
+
Requires-Dist: notebook
|
|
71
|
+
Requires-Dist: pygame
|
|
72
|
+
Requires-Dist: kivy
|
|
73
|
+
Requires-Dist: manim
|
|
74
|
+
Requires-Dist: soundfile
|
|
75
|
+
Requires-Dist: pydub
|
|
76
|
+
Requires-Dist: openai
|
|
77
|
+
Requires-Dist: g4f
|
|
78
|
+
Requires-Dist: yt-dlp
|
|
79
|
+
Requires-Dist: hypothesis
|
|
80
|
+
Provides-Extra: extras
|
|
81
|
+
Requires-Dist: black; extra == "extras"
|
|
82
|
+
Requires-Dist: flake8; extra == "extras"
|
|
83
|
+
Requires-Dist: isort; extra == "extras"
|
|
84
|
+
Requires-Dist: pytest; extra == "extras"
|
|
85
|
+
Requires-Dist: pytest-asyncio; extra == "extras"
|
|
86
|
+
Requires-Dist: pytest-cov; extra == "extras"
|
|
87
|
+
Requires-Dist: pytest-mock; extra == "extras"
|
|
88
|
+
Requires-Dist: pytest-xdist; extra == "extras"
|
|
89
|
+
Requires-Dist: coverage; extra == "extras"
|
|
90
|
+
Dynamic: license-file
|
|
91
|
+
|
|
92
|
+
# hello-world-pro-max 😈
|
|
93
|
+
|
|
94
|
+
> 一个只会打印 `Hello, world` 的包,却带着 65 个依赖的行李。
|
|
95
|
+
|
|
96
|
+
## 这是什么
|
|
97
|
+
|
|
98
|
+
这是世界上最诚实的"大型"项目:
|
|
99
|
+
|
|
100
|
+
- **代码**:5 行。
|
|
101
|
+
- **功能**:1 个。
|
|
102
|
+
- **依赖**:65 个(不含 `[extras]` 里的 9 个开发工具)。
|
|
103
|
+
- **数据库迁移**:有 `alembic`,但没有数据库。
|
|
104
|
+
- **Web 框架**:有 `fastapi`、`flask`、`django`,但没有 Web 服务。
|
|
105
|
+
- **动画引擎**:有 `manim`,但没有动画。
|
|
106
|
+
- **AI**:有 `openai` 和 `g4f`,但没有智能。
|
|
107
|
+
- **Jupyter 全家桶**:有,但没人知道为什么。
|
|
108
|
+
|
|
109
|
+
## 安装
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
pip install hello-world-pro-max
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
如果你的机器上还没有这 65 个依赖,pip 会非常热情地帮你把半个 PyPI 搬回家。
|
|
116
|
+
如果你只是想看看这个包,而不想真的下载半个互联网:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
pip install --no-deps hello-world-pro-max
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
(装完之后你会发现,`--no-deps` 才是这个包的正确打开方式。)
|
|
123
|
+
|
|
124
|
+
想要更多依赖?还有一层可选依赖:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
pip install "hello-world-pro-max[extras]"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## 使用
|
|
131
|
+
|
|
132
|
+
```python
|
|
133
|
+
import hello_world_pro_max
|
|
134
|
+
|
|
135
|
+
hello_world_pro_max.hello()
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
或者:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
python -m hello_world_pro_max
|
|
142
|
+
hello-world-pro-max
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
输出:
|
|
146
|
+
|
|
147
|
+
```text
|
|
148
|
+
Hello, world
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## 全部源代码
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
MESSAGE = "Hello, world"
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def hello() -> None:
|
|
158
|
+
print(MESSAGE)
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
真的,就这些。`pyproject.toml` 比源代码长 20 倍。
|
|
162
|
+
|
|
163
|
+
## 依赖用途说明(声称)
|
|
164
|
+
|
|
165
|
+
| 依赖 | 用途 |
|
|
166
|
+
| --- | --- |
|
|
167
|
+
| `numpy` | 为 "Hello" 和 ", world" 之间的空格提供数值稳定性 |
|
|
168
|
+
| `pandas` | 将单行输出组织为 DataFrame,以便不查看它 |
|
|
169
|
+
| `manim` | 如果 hello world 需要 3D 动画,我们已就绪 |
|
|
170
|
+
| `django` | 为未来可能出现的第 2 个函数预留的 Web 框架 |
|
|
171
|
+
| `openai` | 自动生成 "Hello, world" 的替代文案(暂未启用) |
|
|
172
|
+
| `hypothesis` | 对 `MESSAGE == "Hello, world"` 做属性测试,以防它哪天变了 |
|
|
173
|
+
| `yt-dlp` | 下载关于 Hello, world 的教程视频(暂未启用) |
|
|
174
|
+
| `kivy` | 为移动端 Hello, world 布局做好准备 |
|
|
175
|
+
|
|
176
|
+
(以上用途均为虚构。真实的用途是:让 `pip install` 的进度条显得物超所值。)
|
|
177
|
+
|
|
178
|
+
## 为什么?
|
|
179
|
+
|
|
180
|
+
因为可以。
|
|
181
|
+
|
|
182
|
+
## License
|
|
183
|
+
|
|
184
|
+
MIT
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/hello_world_pro_max/__init__.py
|
|
5
|
+
src/hello_world_pro_max/__main__.py
|
|
6
|
+
src/hello_world_pro_max.egg-info/PKG-INFO
|
|
7
|
+
src/hello_world_pro_max.egg-info/SOURCES.txt
|
|
8
|
+
src/hello_world_pro_max.egg-info/dependency_links.txt
|
|
9
|
+
src/hello_world_pro_max.egg-info/entry_points.txt
|
|
10
|
+
src/hello_world_pro_max.egg-info/requires.txt
|
|
11
|
+
src/hello_world_pro_max.egg-info/top_level.txt
|
|
12
|
+
tests/test_hello.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
numpy
|
|
2
|
+
pandas
|
|
3
|
+
scipy
|
|
4
|
+
sympy
|
|
5
|
+
mpmath
|
|
6
|
+
networkx
|
|
7
|
+
joblib
|
|
8
|
+
cloudpickle
|
|
9
|
+
matplotlib
|
|
10
|
+
seaborn
|
|
11
|
+
plotly
|
|
12
|
+
plotext
|
|
13
|
+
termplotlib
|
|
14
|
+
pillow
|
|
15
|
+
qrcode
|
|
16
|
+
pyfiglet
|
|
17
|
+
requests
|
|
18
|
+
httpx
|
|
19
|
+
aiohttp
|
|
20
|
+
fastapi
|
|
21
|
+
uvicorn
|
|
22
|
+
flask
|
|
23
|
+
flask-login
|
|
24
|
+
flask-migrate
|
|
25
|
+
flask-sqlalchemy
|
|
26
|
+
django
|
|
27
|
+
jinja2
|
|
28
|
+
wtforms
|
|
29
|
+
marshmallow
|
|
30
|
+
pydantic
|
|
31
|
+
sqlalchemy
|
|
32
|
+
alembic
|
|
33
|
+
lxml
|
|
34
|
+
beautifulsoup4
|
|
35
|
+
pyyaml
|
|
36
|
+
python-docx
|
|
37
|
+
python-pptx
|
|
38
|
+
openpyxl
|
|
39
|
+
pypdf
|
|
40
|
+
pypinyin
|
|
41
|
+
emoji
|
|
42
|
+
humanize
|
|
43
|
+
tabulate
|
|
44
|
+
prettytable
|
|
45
|
+
click
|
|
46
|
+
typer
|
|
47
|
+
rich
|
|
48
|
+
loguru
|
|
49
|
+
tqdm
|
|
50
|
+
tenacity
|
|
51
|
+
schedule
|
|
52
|
+
diskcache
|
|
53
|
+
python-dotenv
|
|
54
|
+
ipython
|
|
55
|
+
jupyter
|
|
56
|
+
notebook
|
|
57
|
+
pygame
|
|
58
|
+
kivy
|
|
59
|
+
manim
|
|
60
|
+
soundfile
|
|
61
|
+
pydub
|
|
62
|
+
openai
|
|
63
|
+
g4f
|
|
64
|
+
yt-dlp
|
|
65
|
+
hypothesis
|
|
66
|
+
|
|
67
|
+
[extras]
|
|
68
|
+
black
|
|
69
|
+
flake8
|
|
70
|
+
isort
|
|
71
|
+
pytest
|
|
72
|
+
pytest-asyncio
|
|
73
|
+
pytest-cov
|
|
74
|
+
pytest-mock
|
|
75
|
+
pytest-xdist
|
|
76
|
+
coverage
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hello_world_pro_max
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""测试一个仅有一行输出、零行逻辑的包。"""
|
|
2
|
+
|
|
3
|
+
from hello_world_pro_max import MESSAGE, hello
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_message_is_hello_world() -> None:
|
|
7
|
+
assert MESSAGE == "Hello, world"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def test_hello_prints_once(capsys) -> None:
|
|
11
|
+
hello()
|
|
12
|
+
captured = capsys.readouterr()
|
|
13
|
+
assert captured.out == "Hello, world\n"
|
|
14
|
+
assert captured.err == ""
|