xiaoya-kits
小雅 alist 部署和维护。
❤️ 赞助
xiaoya-kits 完全免费获取及使用,但是您的赞赏可以鼓励作者维护,万分谢谢!
🌟 GitHub Star
请点击 GitHub 右上角的 ⭐ Star 增加人气,以便更多的人发现此工具。
💽 转存阿里云盘文件
点击链接保存,或者复制本段内容,打开「阿里云盘」APP 。
https://www.alipan.com/s/dn6J8Gg4FUC
这是一个非常小的文件(仅占用您几KB空间),您的转存可以使作者获得更多的存储空间。
💰 打赏
欢迎直接通过打赏来支持作者!
🗑️ xiaoya clear-aliyundrive
一个清理
阿里云盘中xiaoya转存文件的工具。
为什么选择 xiaoya clear-aliyundrive
相比于其他(使用 Shell 开发)的清理脚本,xiaoya clear-aliyundrive 的清理更加灵活。
由于 xiaoya-kits 基于 Python 开发,并且使用了 xarg-python 模块,因此 xiaoya clear-aliyundrive 命令行更为友好,可同时进行多维度的清理过滤,维护也相对来说更加简单。
过滤条件
xiaoya clear-aliyundrive 会对小雅转存文件夹下的所有文件(包括文件夹)按照 updated_at 时间进行排序,所有最新的转存文件会被优先保留。
强制条件
- 为避免清理正在转存或者刚刚转存的文件,会强制保留
60秒内的文件(和文件夹)。 - 由于当前文件夹没有
size属性,还无法统计文件夹的占用空间,并且小雅一般转存的都是文件而非文件夹,所以文件夹会被强制清理。 - 虽然可以根据文件大小来过滤文件,但是(大于空间约束条件的)超大文件总是会被清理,所以必须强制保留一些(没有过时的)文件。
清理过多的文件
--file,十进制数,指定最大保留的文件数(默认值为:100)。
按照 updated_at 时间进行排序,超过指定数量后的文件会被强制清理。
默认值 100 应该够保持一部电视连续剧了,如果你转存了非常多的小文件,可适当增大此值。
清理较大的文件
--byte,十进制数,最大保留的空间量(默认值为:50.0GB),单位为字节数。
按照 updated_at 时间进行排序并计算空间,超过指定空间后的文件会被清理。
默认值 50.0GB 即一半的 阿里云盘 永久免费空间,如果您有更多可用空间或可用空间不足,可适当调整此值。
清理较早的文件
--minute,十进制数,最大保留的分钟值(默认值为:24h),单位为分钟。
按照 updated_at 时间,和当前时间的差值超过指定分钟数强制清理。
⏩ 快速清理(一次性)
使用 Python>=3.8 环境,在小雅数据目录下执行以下命令:
pip3 install --upgrade xiaoya && xiaoya --version
xiaoya clear-aliyundrive --stdout --format
⏱️ 定时清理
您可以将 xiaoya clear-aliyundrive 命令添加到 crontab 中,实现定时清理。
🪐 持续清理(守护模式)
在小雅数据目录下执行以下命令,使用守护模式持续清理,按 ctrl+c 退出:
pip3 install --upgrade xiaoya && xiaoya --version
xiaoya clear-aliyundrive --stdout --format --daemon
docker 部署
docker run -v <xiaoya_config_path>:/etc/xiaoya --name xiaoya-clear ghcr.io/podboy/xiaoya-clear:latest
Metadata
Release files for xiaoya 0.1.6
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 | |
|---|---|---|---|---|
| xiaoya-0.1.6.tar.gz | 11.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xiaoya-0.1.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 22.2 kB
Release files / xiaoya-0.1.6.tar.gz
| Download URL | xiaoya-0.1.6.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a8968d9dbe59db69576759e8531be93588f4b4616168fa48e5b6e05dbf2a39e
|
|
BLAKE2b-256 checksum How to use checksums |
c14472380ca2069d7a953f32929e8f4aa98dce1f56303b000d00c1c740f91377
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / xiaoya-0.1.6-py2.py3-none-any.whl
| Download URL | xiaoya-0.1.6-py2.py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5bc688f18dea9c02ef2b3f2827b172dcabcab80554d6131d198f0a3d6de580ac
|
|
BLAKE2b-256 checksum How to use checksums |
8559c99e25e2dd575fce8350703a8169bfbb1d1644b7cc42439839da5241f543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for xiaoya 0.1.6
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.