The CLI Tool for SM.MS, based on API v2.
Project description
PYSMMS
基于 sm.ms 图床的命令行工具,sm.ms 文档见此链接。
借鉴 n0vad3v/smv2,在其基础上添加了上传成功后自动拷贝图片链接到剪贴板,多账号随机上传等功能。
安装
pip install pysmms
使用
查看帮助
➜ ~ pysmms help
pysmms {arg}
profile 查看用户资料(需要配置 Authorization)
ip_history 基于 IP 的临时上传历史记录
history 获取用户上传记录(需要配置 Authorization)
/path/to/picture 上传图片(需要配置 Authorization)
上传图片不需要配置 Authorization,但不保证图片的使用时效。
配置 Authorization 需要在用户根目录创建 .pysmms 文件,文件写入以下内容:
[sm.ms]
auth=['wKSlYH******z8eb8qSr']
注意:auth 以列表存放,支持多个 auth 随机上传。
上传图片
pysmms /path/to/picture
上传图片不强制需要 Authorization,但无 Authorization 的图片不保证时效。
例如:
查看用户资料
pysmms profile
查询临时上传历史
pysmms ip_history
此历史记录基于 IP,不需要配置 Authorization。
查询用户上传历史记录
pysmms history
此历史记录需要配置 Authorization,只可查询最近五条数据。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysmms-0.1.1.tar.gz
(7.0 kB
view details)
Built Distribution
pysmms-0.1.1-py3-none-any.whl
(21.6 kB
view details)
File details
Details for the file pysmms-0.1.1.tar.gz
.
File metadata
- Download URL: pysmms-0.1.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a57adb562d323f70d8c47b4f15e6e5d3d50a9e61fc7016a827b504d0f4abbc2 |
|
MD5 | 451acb8e2c26d08414eda0b5a996b2b1 |
|
BLAKE2b-256 | 61af20d698be9683dfd199e286eb23dc60183f767481aba9ee21003d7dd7564c |
File details
Details for the file pysmms-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pysmms-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64605962faaef1d031804b2c8a602bd192b633a2312ebe059b132fb3af073f15 |
|
MD5 | a0983a56d8fbfc6f83845ba296688cd1 |
|
BLAKE2b-256 | 9a6210af5fe99656d4b6093eb36a2949dfe6e2b8293b6fff2f4bece95b4dd4de |