up2oss
这是基于 picbed 的一个小的扩展模块,用来将上传的图片保存到阿里云 对象存储(OSS)
安装
正式版本
$ pip install -U up2oss
开发版本
$ pip install -U git+https://github.com/staugur/picbed-up2oss.git@master
开始使用
此扩展请在部署 picbed 图床后使用,需要 其管理员进行添加扩展、设置钩子等操作。
添加:
请在 站点管理-钩子扩展 中添加第三方钩子,输入模块名称:up2oss, 确认后提交即可加载这个模块(请在服务器先手动安装或Web上安装第三方包)。
配置:
在 站点管理-网站设置 底部的钩子配置区域配置阿里云相关信息, 如用户域名、Bucket、AK及SK等(请在阿里云创建一个对象存储服务,并在 AccessKey密钥管理中拿到AK、SK;允许使用RAM子用户的密钥(允许编程访问), 要求拥有OSS管理权限)。
使用:
同样在 站点管理-网站设置 上传区域中选择存储后端为up2oss即可, 后续图片上传时将保存到阿里云。
上传图片的sender名称是:up2oss
Metadata
Release files for up2oss 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| up2oss-0.1.5.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| up2oss-0.1.5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 8.4 kB
Release files / up2oss-0.1.5.tar.gz
| Download URL | up2oss-0.1.5.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f2a0ff361d68c69c7687a45900ceb5f5cdf1e31bbef9152ddd00a4a9d557d7d
|
|
BLAKE2b-256 checksum How to use checksums |
eff71b30ad47eaaa3d66099d028f0afd9367e95e77ffaf87ac846f5e2a2beff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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+
|
Release files / up2oss-0.1.5-py2-none-any.whl
| Download URL | up2oss-0.1.5-py2-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
921eb35563baf2e0f155025a8470421ba4ca8c2703d2270f7b2f4ee495e4312d
|
|
BLAKE2b-256 checksum How to use checksums |
2047813a0a27932bcf59209a34b4e03abd4143632036d47c72745b304817eacc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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+
|