fcmd 0.1.0__py3-none-any.whl

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.
fcmd/__init__.py ADDED
@@ -0,0 +1,7 @@
1
+ """fcmd - 极速 python 工具集。."""
2
+
3
+ from __future__ import annotations
4
+
5
+ __all__ = ["__version__"]
6
+
7
+ __version__ = "0.1.0"
fcmd/cli.py ADDED
@@ -0,0 +1,25 @@
1
+ """fcmd CLI 入口."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+
7
+ from fcmd import __version__
8
+
9
+ __all__ = ["main"]
10
+
11
+
12
+ def _build_parser() -> argparse.ArgumentParser:
13
+ """构建参数解析器."""
14
+ parser = argparse.ArgumentParser(prog="fcmd", description="极速 python 工具集。")
15
+ parser.add_argument("-V", "--version", action="version", version=f"%(prog)s {__version__}")
16
+ return parser
17
+
18
+
19
+ def main() -> None:
20
+ """主入口,解析参数并执行."""
21
+ _build_parser().parse_args()
22
+
23
+
24
+ if __name__ == "__main__":
25
+ main()
fcmd/py.typed ADDED
File without changes
@@ -0,0 +1,135 @@
1
+ Metadata-Version: 2.4
2
+ Name: fcmd
3
+ Version: 0.1.0
4
+ Summary: 极速 python 工具集。
5
+ Author-email: gooker_young <gooker_young@qq.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.8
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Requires-Python: >=3.8
18
+ Provides-Extra: dev
19
+ Requires-Dist: prek>=0.4.5; extra == 'dev'
20
+ Requires-Dist: pyrefly>=1.1.1; extra == 'dev'
21
+ Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
22
+ Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
23
+ Requires-Dist: pytest-html>=4.1.1; extra == 'dev'
24
+ Requires-Dist: pytest-xdist>=3.6.1; extra == 'dev'
25
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
26
+ Requires-Dist: ruff>=0.8.0; extra == 'dev'
27
+ Requires-Dist: tox-uv>=1.13.1; extra == 'dev'
28
+ Requires-Dist: tox>=4.25.0; extra == 'dev'
29
+ Provides-Extra: docs
30
+ Requires-Dist: myst-parser>=3.0; extra == 'docs'
31
+ Requires-Dist: sphinx-rtd-theme>=2.0; extra == 'docs'
32
+ Requires-Dist: sphinx>=7.0; extra == 'docs'
33
+ Provides-Extra: lint
34
+ Requires-Dist: pyrefly>=1.1.1; extra == 'lint'
35
+ Requires-Dist: ruff>=0.8.0; extra == 'lint'
36
+ Provides-Extra: test
37
+ Requires-Dist: pytest-asyncio>=0.24.0; extra == 'test'
38
+ Requires-Dist: pytest-cov>=5.0.0; extra == 'test'
39
+ Requires-Dist: pytest-html>=4.1.1; extra == 'test'
40
+ Requires-Dist: pytest-xdist>=3.6.1; extra == 'test'
41
+ Requires-Dist: pytest>=8.0.0; extra == 'test'
42
+ Description-Content-Type: text/markdown
43
+
44
+ # fcmd
45
+
46
+ > 极速 python 工具集。
47
+
48
+ [![PyPI](https://img.shields.io/pypi/v/fcmd)](https://pypi.org/project/fcmd/)
49
+ [![CI](https://github.com/gooker_young/fcmd/actions/workflows/ci.yml/badge.svg)](https://github.com/gooker_young/fcmd/actions/workflows/ci.yml)
50
+ ![Python](https://img.shields.io/badge/python-3.8%2B-blue.svg)
51
+ ![License](https://img.shields.io/badge/license-MIT-green.svg)
52
+ ![Coverage](https://img.shields.io/badge/coverage-%E2%89%A595%25-brightgreen.svg)
53
+
54
+ ## 特性
55
+
56
+ - **构建工具链**:hatchling + uv + ruff + pyrefly + pytest + coverage
57
+ - **Python 版本**:3.8 ~ 3.14
58
+ - **代码质量**:pre-commit 钩子 + ruff lint/format,覆盖率阈值 95%
59
+ - **CI/CD**:GitHub Actions(lint + typecheck + 多版本测试 + 自动发布到 PyPI)
60
+ - **文档**:Sphinx + ReadTheDocs(中文 zh_CN)
61
+ - **多版本测试**:tox + tox-uv(py38, py39, py310, py311, py312, py313, py314)
62
+ - **CLI 入口**:argparse + [project.scripts]
63
+ - **项目结构**:src layout + py.typed 类型标记
64
+
65
+ ## 安装
66
+
67
+ ```bash
68
+ pip install fcmd
69
+ ```
70
+
71
+ 或使用 [uv](https://docs.astral.sh/uv/):
72
+
73
+ ```bash
74
+ uv add fcmd
75
+ ```
76
+
77
+ ## 快速上手
78
+
79
+ ```python
80
+ import fcmd
81
+
82
+ print(fcmd.__version__)
83
+ ```
84
+
85
+ ## 开发
86
+
87
+ ```bash
88
+ # 安装开发依赖
89
+ uv sync --extra dev
90
+
91
+ # 运行测试(含覆盖率,阈值 95%)
92
+ uv run pytest -m "not slow" --cov=fcmd --cov-fail-under=95
93
+
94
+ # 类型检查
95
+ uv run pyrefly check .
96
+
97
+ # 代码风格
98
+ uv run ruff check src tests
99
+ uv run ruff format --check src tests
100
+ ```
101
+
102
+ ### Make 快捷命令
103
+
104
+ 项目提供 Makefile 封装常用操作,运行 `make help` 查看全部命令:
105
+
106
+ ```bash
107
+ make sync # 安装开发依赖
108
+ make check # 全套门禁 (lint + typecheck + cov)
109
+ make build # 构建分发包
110
+ make clean # 清理构建产物
111
+ make bump PART=patch # 版本号 bump
112
+ ```
113
+
114
+
115
+ ## 文档
116
+
117
+ 文档由 Sphinx 构建,托管在 ReadTheDocs:
118
+
119
+ ```bash
120
+ # 本地构建文档
121
+ make doc
122
+ ```
123
+
124
+
125
+ ## 多版本测试
126
+
127
+ 使用 tox 在多个 Python 版本(py38, py39, py310, py311, py312, py313, py314)下运行测试:
128
+
129
+ ```bash
130
+ make tox
131
+ ```
132
+
133
+ ## 许可证
134
+
135
+ MIT
@@ -0,0 +1,8 @@
1
+ fcmd/__init__.py,sha256=FMDBZXgRBbr7FFaT2ns5LG0QqgAWaswG1rDAypsCge0,127
2
+ fcmd/cli.py,sha256=u2fCNn_PFgyA0nORwwE0dy20BwnI_8eb7RdRkD56eNU,555
3
+ fcmd/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ fcmd-0.1.0.dist-info/METADATA,sha256=6pnP_UEHKUVfgJ3KYxhiXiOUbKFoRGOvFWbxYcOeghs,3834
5
+ fcmd-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
6
+ fcmd-0.1.0.dist-info/entry_points.txt,sha256=2cDG2hclR7g_9St_2ZDhwDdcL-G2ZhcA58MISY5K4ls,39
7
+ fcmd-0.1.0.dist-info/licenses/LICENSE,sha256=TPWFvKEsDvHD0Qow9-dutgWZ2vS5BD0e94IZhrcbw44,1069
8
+ fcmd-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ fcmd = fcmd.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gooker_young
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.