cm_filekit
《计算概论C》文件与目录任务工具库,适合文件读写和异常处理之后使用。
pip install cm_filekit
import cm_filekit
print(cm_filekit.count_by_extension('.'))
print(cm_filekit.find_large_files('.', min_mb=20))
report = cm_filekit.make_file_report('.')
print(report)
moves = cm_filekit.organize_by_extension('.', dry_run=True)
cm_filekit.write_csv('整理预览.csv', moves, header=['原文件', '新位置'])
这个库不替代 open()、循环和路径知识,而是把真实文件夹任务做得更容易上手。
Metadata
Release files for cm-filekit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cm_filekit-1.0.0.tar.gz | 3.2 kB | Without provenance | Details for cm_filekit-1.0.0.tar.gz |
Release files / cm_filekit-1.0.0.tar.gz
| Download URL | cm_filekit-1.0.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7900cffc3dec87144a42b84e0b6a586bfcb724d618a3b461133ecc169fbd0ad4
|
|
BLAKE2b-256 checksum How to use checksums |
de3403a9a39ddeaedf58a7d0913315fcda6c1a46f00f759fded4963b2dea4ee2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for cm-filekit 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.