Skip to main content

Save uploaded pictures in Backblaze B2.

Project description

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

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

up2b2-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

up2b2-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file up2b2-0.1.0.tar.gz.

File metadata

  • Download URL: up2b2-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for up2b2-0.1.0.tar.gz
Algorithm Hash digest
SHA256 26c8031a3ce0126e1d21d757e299e9cd04ea5de4724693fee8d45869a19f2a36
MD5 8ab84d2abe5ec21177429a7a37cd241f
BLAKE2b-256 7b8faf2a9535efdfeea8f2bc46274a1efe7747bdc36efb2f5c6f35ea282cf961

See more details on using hashes here.

File details

Details for the file up2b2-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: up2b2-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for up2b2-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af488716ac79a946074d00b917aa05fdc7ebcaa048d6aa2e8a028dfbc722ffb5
MD5 7a4de9dc9c154ffd5317f47c54f0b4b2
BLAKE2b-256 1961233a044542d42610f2fae97082ad05a28856d0f831463d4fa186a3480f8b

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