Skip to main content

proj-janitor Python CLI

扫描、备份、恢复和清理本地项目的命令行工具。Python 版要求 Python >=3.10;除 Python 3.10 自动安装 tomli(3.11+ 用标准库 tomllib)外无第三方运行时依赖。

安装

CLI 应用推荐用 pipx 安装到隔离环境:

pipx install proj-janitor

也可以安装到当前 Python 环境:

python -m pip install proj-janitor

安装后运行 projjan --help。也可以运行 python -m proj_janitor --help。

功能

  • scan:盘点项目目录与 Git 状态。
  • backup:按项目情况选择 Git 元数据、Git bundle 或归档;备份目录可使用 BACKUP_DEST 或 --backup-dest 指定。
  • restore:校验 manifest 和归档摘要后恢复,不覆盖已存在的目标目录。
  • verify:验证归档或 Git bundle 的 SHA-256。
  • prune:默认预览过期备份;删除需要 --apply 和确认。
  • clean:默认预览可清理的构建产物;删除需要 --apply 和确认。

完整说明、示例与安全边界见 GitHub README。如需免 Python 的独立 CLI,可用 Rust 安装:cargo install --locked proj-janitor。

Metadata

Release files for proj-janitor 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proj-janitor 0.1.7
File Size Uploaded Provenance Actions
proj_janitor-0.1.7.tar.gz 91.1 kB With provenance Details for proj_janitor-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proj-janitor 0.1.7
File Interpreter ABI Platform Actions
proj_janitor-0.1.7-py3-none-any.whl Python 3 none any Details for proj_janitor-0.1.7-py3-none-any.whl

Total release size: 143.1 kB

Release files / proj_janitor-0.1.7.tar.gz

Download URL proj_janitor-0.1.7.tar.gz
Size 91.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7bf80f2f4d662fcf6e8d36ad7a6a22ff16adf12982adcfff3c67f5d34d57cc1c
BLAKE2b-256 checksum
How to use checksums
0d95a5f6d8e29a5cc6a7dce2b723219c4d60a271c10fa18d605362a20cf76710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / proj_janitor-0.1.7-py3-none-any.whl

Download URL proj_janitor-0.1.7-py3-none-any.whl
Size 52.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9a4f0c2d08f6e6b7ddbdbbbc632f6e9f802775ee2502d8783dd72db95e4229b
BLAKE2b-256 checksum
How to use checksums
827e443587e35dd7175d4f99da170581a3e71f2333e4ef78e7e5086ad8913a3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for proj-janitor 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for proj_janitor-0.1.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page