用于在https://sm.ms上管理图像的命令行工具包
smms.p的Python项目详细描述
smms.py
简介
python包smms.py
是用于在https://sm.ms管理图像的命令行工具包。它提供简单快捷的实用程序,供您上传、删除和搜索个人图像。
用法
安装
只需使用一行命令pip install smms.py
安装即可。
删除
从https://sm.ms中删除图像有点令人沮丧。但是由于官方的api,我们可以从服务器上删除图像。
smms delete --help # Usage: smms d [OPTIONS] [FILENAMES]...# delete images from remote server & clean local history# Options:# -c, --comment TEXT wildcard statement for matching commentations# -d, --date TEXT one or more date strings like "yyyy-mm-dd" to specify# search scope# -y, --yes delete without confirmation# --help Show this message and exit. smms delete "*t*" -d 2001-01-01 # Delete all images with a letter "t" in filename uploaded on 2001-01-01
您可以使用filename
、comment
&;date
缩小范围。出于安全考虑,您还需要确认删除。
上传
使用smms.py
时,将图像上载到https://sm.ms非常简单。例如:
smms upload --help # Usage: smms upload [OPTIONS] FILENAME# upload images & insert new records into local history# Options:# -c, --comment TEXT commentation string for images# --help Show this message and exit. smms upload $HOME/images/*.jpg -c 'example upload'# upload all jpg-format images in ~/images/ and comment them
搜索
命令search
允许您搜索和查看本地历史记录。又一个例子:
smms search --help # Usage: smms s [OPTIONS] [FILENAMES]...# search for matched records in local history# Options:# -c, --comment TEXT wildcard statement for matching commentations# -d, --date TEXT one or more date strings like "yyyy-mm-dd" to specify# search scope# --help Show this message and exit. smms search "*.jpg" -c "*backup*"# Search for all jpg-format images commented with 'backup'
迁移
smms migrate --help # Usage: smms migrate [OPTIONS]# migrate local history from version 0.0.2 to 1.0.0# Options:# --help Show this message and exit.
帮助迁移旧版本的本地历史记录。
更改日志
- 版本
1.0.0
项目重构,默认注释字符串已从'--- NO COMMENT ---'
更改为''
- 版本
0.0.1
在Windows平台下修复颜色问题 - 版本
0.0.0
初始版本
关于
如果您有任何建议,请发邮件给我,地址是queensferry.me@gmail.com。我们也欢迎您的请求。