Skip to main content

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

up2cos-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

up2cos-0.1.3-py2-none-any.whl (4.8 kB view details)

Uploaded Python 2

File details

Details for the file up2cos-0.1.3.tar.gz.

File metadata

  • Download URL: up2cos-0.1.3.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

Hashes for up2cos-0.1.3.tar.gz
Algorithm Hash digest
SHA256 193272a16e818a96123d84dc533b0a486ad082981aaedaabcabc019843680f47
MD5 c59e337d9aa754769195d2a9855aff2c
BLAKE2b-256 71010a4e44bd327f3468d86711f3651530d99b1ec9a8a04e1a22931b3930c2a4

See more details on using hashes here.

File details

Details for the file up2cos-0.1.3-py2-none-any.whl.

File metadata

  • Download URL: up2cos-0.1.3-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

Hashes for up2cos-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 6674f4b67245cad65575d38cd6522a9b5175218b85950a3f36c4df2fcc838b26
MD5 8ed8f68016445cedbbaf298d94341a75
BLAKE2b-256 d93dd2ffbb885499455781377f69d0d42e1f1a6721da2c38f8a0268440f5b36c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page