Skip to main content

面向开发者的命令行工具包:数据格式转换 + 环境诊断

Project description

devkit-tools

CI

面向开发者的命令行工具包。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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devkit_tools-0.1.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devkit_tools-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

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

Hashes for devkit_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 07bbafe718b4b16aa0a8d3a4cae195d329e20a55a1b4f2f4495ccebb07d54cd9
MD5 465a63cba17dda08cdc4eec6c28ab52f
BLAKE2b-256 7628fb9083b8f383beb5634ad542203dc0507e89b60bbfff59933f3189075634

See more details on using hashes here.

Provenance

The following attestation bundles were made for devkit_tools-0.1.0.tar.gz:

Publisher: release.yml on yukinpost/devkit-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for devkit_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8ccff5cf82447ad6c3ab93c7327c3332c0456f8fd2b0fa41e099d4ccc6d72cc
MD5 62b37f5b15d3017218b1af824eddc7cb
BLAKE2b-256 e74748b16c2538d987e1c04182e7d8cf39c8801661396ea2ef5edbad0efc1fa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for devkit_tools-0.1.0-py3-none-any.whl:

Publisher: release.yml on yukinpost/devkit-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page