Save uploaded pictures in Tencent COS.
Project description
这是基于 picbed 的一个小的扩展模块,用来将上传的图片保存到腾讯云 对象存储(COS)
安装
正式版本
$ pip install -U up2cos
开发版本
$ pip install -U git+https://github.com/staugur/picbed-up2cos.git@master
开始使用
此扩展请在部署 picbed 图床后使用,需要 其管理员进行添加扩展、设置钩子等操作。
添加:
请在 站点管理-钩子扩展 中添加第三方钩子,输入模块名称:up2cos, 确认后提交即可加载这个模块(请在服务器先手动安装或Web上安装第三方包)。
配置:
在 站点管理-网站设置 底部的钩子配置区域配置腾讯云相关信息, 如加速域名、Bucket、SecretID及KEY等(请在腾讯云创建一个对象存储服务,并在 访问管理-访问密钥-API密钥管理中拿到SecretId、SecretKey;允许使用子用户 的密钥,要求拥有COS管理权限)。
使用:
同样在 站点管理-网站设置 上传区域中选择存储后端为up2cos即可, 后续图片上传时将保存到腾讯云。
上传图片的sender名称是:up2cos
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file up2cos-0.1.4.tar.gz.
File metadata
- Download URL: up2cos-0.1.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.22.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d33da6048f0ae3eb6a6b0f1c004d9e80d31942adb2d0ed119e33e8535aadca1
|
|
| MD5 |
7b2e3d78664cb8b8f0d19dcb184b2af0
|
|
| BLAKE2b-256 |
08ab43b6687812d44bf31b2064740fcdc60c13406ea91254d8ee60a64724134f
|
File details
Details for the file up2cos-0.1.4-py2-none-any.whl.
File metadata
- Download URL: up2cos-0.1.4-py2-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.22.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d7fb53cf1e7a8d887ee22cb52ccb7a40c51573ae961f70f07e127fb100be53e
|
|
| MD5 |
7a4b4f41677c3753d8c7dfb4497c7167
|
|
| BLAKE2b-256 |
3778306d31c99782a2509ac0d2c1aa3503910cb32c0d7671af8a4d0eb89010fa
|