🍞mctoast
一个基于tkinter的,用于显示minecraft风格的toast的库
目前被CamMoitor使用
📦安装
# 从PyPI上安装
$ pip install mctoast
# 安装快照 (请将后面的路径换为实际的)
$ pip install /path/to/mctoast-wheel.whl
# 从github仓库安装 (有时候未经测试,也有可能无法运行)
$ pip install git+https://github.com/SystemFileB/mctoast.git@main
推荐你额外安装requests,这样你就可以在-i=参数中使用URL了
$ pip install requests
🖼️画廊
原版效果:
mctoast模仿的效果:
⚙️使用方法
见wiki
⚠️版权信息
- 这个库与Mojang,Microsoft没有任何关系,且在正式的库中(我在示范中使用了红色床的图片)不使用client.jar,.minecraft/assets文件夹下的任何文件
- Toast纹理来自VanillaXBR,基于CC-BY-NC-4.0许可证
- 字体使用了GNU Unifont,基于GPLv2许可证
- 若遇到了相关的许可证问题,请第一时间提交issue并加上 版权或许可证问题 标签
📰更新日志
1.21
- 修复:new_toast参数错误后程序就会一直阻塞
1.20.2
- 修改CLI彩蛋
1.20.1
- 紧急修复:CLI工具的版本号不对
- 把版本号定义加在了
__init__.py里
1.20
- 命令行工具的修改
- 如果你安装了requests,你就可以在
-i=参数中使用网络图片
- 如果你安装了requests,你就可以在
- 库的修改
- 放宽了
generate_imageimage参数的类型,现在只要是Pillow支持的都可以,如果Pillow不支持Pillow就会报错,命令行工具也是 - 所以遇到
PIL.UnidentifiedImageError: cannot identify image file你也不必上传issue,否则我就会把它标为 不予理会
- 放宽了
1.12
- 紧急修复:setup.py并没有包含
__init__.py和__main__.py文件,导致无法使用 - 重新加入1.11的更改
- 修复:python -m mctoast无法弹出参数自定义的toast
1.11.1
- 紧急修复:撤回1.11的更改
1.11
- 允许你直接运行mctoast,而非python -m mctoast
1.10.2
- 因为PyPI无法上传同一个版本的库,我又更改了这个库的README,所以我改了版本号
1.10.1
- 紧急修复:mctoast.init()报错
1.10
- 库的修改
- 为
generate_image添加了默认值 generate_image(return_mode=RETURN_BYTE)修复,现在返回的就是正常的图片字节- 加入
generate_image(return_mode=RETURN_SAVETIFILE,filename="awasome.png")语法,可以将图片保存为文件了 - 加入
generate_image(resize=False),在new_toast里使用的时候这个值为True,你一般不用修改,除非你也要把它缩放到320x64
- 为
- 允许你使用
python -m mctoast生成toast图片或弹出toast -
据说执行 python -m mctoast --moo 有彩蛋,你要不要试试
- 移除了Herobrine (
1.01
- 修复:进度图片显示不正常
1.00
- 第一次发布
Metadata
Release files for mctoast 1.21
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 |
|---|---|---|---|---|
| mctoast-1.21.tar.gz | 1.3 MB | Without provenance | Details for mctoast-1.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mctoast-1.21-py3-none-any.whl | Python 3 | none | any | Details for mctoast-1.21-py3-none-any.whl |
Total release size: 2.7 MB
Release files / mctoast-1.21.tar.gz
| Download URL | mctoast-1.21.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39e0e3dc3881ea7af2fb95185c23f69a803ed1dc78069b0b392472c1ea77b464
|
|
BLAKE2b-256 checksum How to use checksums |
7f201200870564ff9d7afaab0a108a6c3e44805ed90446e209c81505b0cb8672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / mctoast-1.21-py3-none-any.whl
| Download URL | mctoast-1.21-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e0fe67c021f42cd3f45a9529611630c55cfde52e314b38fdf03a7d83068ee69
|
|
BLAKE2b-256 checksum How to use checksums |
caf426283bce8c69c65551c3917f3f1ec20d27ad44101b4e4d228648aae81513
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for mctoast 1.21
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.