up2b2
这是基于 sapic 的一个小的扩展模块,用来将上传的图片保存到 BackBlaze B2
安装
正式版本
$ pip install -U up2b2
开发版本
$ pip install -U git+https://github.com/sapicd/up2b2.git@master
开始使用
此扩展请在部署 sapic 图床后使用,需要 其管理员进行添加扩展、设置钩子等操作。
添加:
请在 站点管理-钩子扩展 中添加第三方钩子,输入模块名称:up2b2, 确认后提交即可加载这个模块(请在服务器先手动安装或Web上安装第三方包)。
配置:
在 站点管理-网站设置 底部的钩子配置区域配置 BackBlaze B2 相关信息。
Bucket即桶名称,要求公开可读。
在账户-应用密钥中,可以看到KeyID,生成新的主应用程序密钥即可获取应用密钥。
访问域名请浏览档案,在桶中任意上传文件可获取友好URL或S3 URL,任选一种前缀即可:
友好URL:https://f005.backblazeb2.com/file/<Bucket>/
S3 URL:https://<Bucket>.s3.us-east-005.backblazeb2.com/
使用:
同样在 站点管理-网站设置 上传区域中选择存储后端为 up2b2 即可, 后续图片上传时将保存到B2。
上传图片的sender名称是:up2b2
Metadata
Release files for up2b2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| up2b2-0.1.0.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| up2b2-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 kB
Release files / up2b2-0.1.0.tar.gz
| Download URL | up2b2-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26c8031a3ce0126e1d21d757e299e9cd04ea5de4724693fee8d45869a19f2a36
|
|
BLAKE2b-256 checksum How to use checksums |
7b8faf2a9535efdfeea8f2bc46274a1efe7747bdc36efb2f5c6f35ea282cf961
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / up2b2-0.1.0-py3-none-any.whl
| Download URL | up2b2-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af488716ac79a946074d00b917aa05fdc7ebcaa048d6aa2e8a028dfbc722ffb5
|
|
BLAKE2b-256 checksum How to use checksums |
1961233a044542d42610f2fae97082ad05a28856d0f831463d4fa186a3480f8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|