Skip to main content

这是基于 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

Metadata

Release files for up2cos 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for up2cos 0.1.4
File Size Uploaded
up2cos-0.1.4.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for up2cos 0.1.4
File Interpreter ABI Platform
up2cos-0.1.4-py2-none-any.whl Python 2 none any Details

Total release size: 8.6 kB

Release files / up2cos-0.1.4.tar.gz

Download URL up2cos-0.1.4.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7d33da6048f0ae3eb6a6b0f1c004d9e80d31942adb2d0ed119e33e8535aadca1
BLAKE2b-256 checksum
How to use checksums
08ab43b6687812d44bf31b2064740fcdc60c13406ea91254d8ee60a64724134f
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 / up2cos-0.1.4-py2-none-any.whl

Download URL up2cos-0.1.4-py2-none-any.whl
Size 4.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
1d7fb53cf1e7a8d887ee22cb52ccb7a40c51573ae961f70f07e127fb100be53e
BLAKE2b-256 checksum
How to use checksums
3778306d31c99782a2509ac0d2c1aa3503910cb32c0d7671af8a4d0eb89010fa
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 history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page