面向开发者的命令行工具包:数据格式转换 + 环境诊断
Project description
devkit-tools
面向开发者的命令行工具包。v0.1 提供两个开箱即用的子命令:
convert— 在 JSON / YAML / TOML / CSV 之间互相转换envcheck— 诊断开发环境中必备工具的安装与版本
路线图模块(
templater/watch/gitstats)见 docs/requirements.md,将在 v0.2+ 实现。
安装
pip install devkit-tools
需要 Python 3.10+。
convert
# 文件互转(输出格式由扩展名推断)
devkit convert config.json config.yaml
# 显式指定格式
devkit convert data.txt --from json --to toml
# 管道模式
cat data.json | devkit convert --to yaml
# 美化输出
devkit convert data.json --to json --pretty
支持矩阵与边界(如 CSV 仅支持二维表)见 docs/requirements.md 2.2.1。
envcheck
# 用预置检查项诊断环境
devkit envcheck
# 自定义检查项 + 输出修复建议
devkit envcheck --config examples/config/dev-toolkit.yml --suggest-fix
# JSON 报告(便于 CI 消费)
devkit envcheck --format json
任一检查未通过时返回非零退出码。--suggest-fix 只输出建议,不会修改你的系统。
开发
pip install -e ".[dev]"
pytest # 测试 + 覆盖率
ruff check . # lint
mypy # 类型检查
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devkit_tools-0.1.0.tar.gz.
File metadata
- Download URL: devkit_tools-0.1.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07bbafe718b4b16aa0a8d3a4cae195d329e20a55a1b4f2f4495ccebb07d54cd9
|
|
| MD5 |
465a63cba17dda08cdc4eec6c28ab52f
|
|
| BLAKE2b-256 |
7628fb9083b8f383beb5634ad542203dc0507e89b60bbfff59933f3189075634
|
Provenance
The following attestation bundles were made for devkit_tools-0.1.0.tar.gz:
Publisher:
release.yml on yukinpost/devkit-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devkit_tools-0.1.0.tar.gz -
Subject digest:
07bbafe718b4b16aa0a8d3a4cae195d329e20a55a1b4f2f4495ccebb07d54cd9 - Sigstore transparency entry: 1934062294
- Sigstore integration time:
-
Permalink:
yukinpost/devkit-cli@85dff0202d5d28764a390ce4a499e3dcca121df9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/yukinpost
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@85dff0202d5d28764a390ce4a499e3dcca121df9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devkit_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: devkit_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8ccff5cf82447ad6c3ab93c7327c3332c0456f8fd2b0fa41e099d4ccc6d72cc
|
|
| MD5 |
62b37f5b15d3017218b1af824eddc7cb
|
|
| BLAKE2b-256 |
e74748b16c2538d987e1c04182e7d8cf39c8801661396ea2ef5edbad0efc1fa3
|
Provenance
The following attestation bundles were made for devkit_tools-0.1.0-py3-none-any.whl:
Publisher:
release.yml on yukinpost/devkit-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devkit_tools-0.1.0-py3-none-any.whl -
Subject digest:
e8ccff5cf82447ad6c3ab93c7327c3332c0456f8fd2b0fa41e099d4ccc6d72cc - Sigstore transparency entry: 1934062383
- Sigstore integration time:
-
Permalink:
yukinpost/devkit-cli@85dff0202d5d28764a390ce4a499e3dcca121df9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/yukinpost
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@85dff0202d5d28764a390ce4a499e3dcca121df9 -
Trigger Event:
push
-
Statement type: