Skip to main content

Save uploaded pictures in Aliyun OSS.

Project description

这是基于 picbed 的一个小的扩展模块,用来将上传的图片保存到阿里云 对象存储(OSS)

安装

  • 正式版本

    $ pip install -U up2oss

  • 开发版本

    $ pip install -U git+https://github.com/staugur/picbed-up2oss.git@master

开始使用

此扩展请在部署 picbed 图床后使用,需要 其管理员进行添加扩展、设置钩子等操作。

添加:

请在 站点管理-钩子扩展 中添加第三方钩子,输入名称:up2oss, 确认后提交即可加载这个模块(请先手动安装好此模块)。

配置:

站点管理-网站设置 底部的钩子配置区域配置阿里云相关信息, 如用户域名、Bucket、AK及SK等(请在阿里云创建一个对象存储服务,并在 AccessKey密钥管理中拿到AK、SK;允许使用RAM子用户的密钥(允许编程访问), 要求拥有OSS管理权限)。

使用:

同样在 站点管理-网站设置 上传区域中选择存储后端为up2oss即可, 后续图片上传时将保存到阿里云。

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

up2oss-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

up2oss-0.1.1-py2-none-any.whl (4.8 kB view details)

Uploaded Python 2

File details

Details for the file up2oss-0.1.1.tar.gz.

File metadata

  • Download URL: up2oss-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15+

File hashes

Hashes for up2oss-0.1.1.tar.gz
Algorithm Hash digest
SHA256 21997f341877a38a827bba655652c263e0aacc6131f5a4c78b4544b17aedf8c1
MD5 755751da0f2b5a4d1cad5d7a8d4404cd
BLAKE2b-256 0536aa25def5918c9a452de129b1f809e40f2354cab69e7c927ff0d95e6c5cab

See more details on using hashes here.

File details

Details for the file up2oss-0.1.1-py2-none-any.whl.

File metadata

  • Download URL: up2oss-0.1.1-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.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15+

File hashes

Hashes for up2oss-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 fe9994f52de4dae629a3a84fd4dd91233b7aeebf23fbf5a409609e6e2bdf224e
MD5 d030c3413e4519e1cb06e05ce0ab9171
BLAKE2b-256 592d5101e950d9231da4a066bb88a9766b5963cbea33aba4f9b95bd27b769220

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