Skip to main content

腾讯云对象存储的Flask扩展

Project description

腾讯云对象存储的Flask扩展, 基于 codeif/qcos

安装

通过pip安装:

pip install flask-cos

使用

from flask_cos import COS
cos = COS()
cos.init_app(app)

key = "test.txt"
data = "content"
cos.put_object(key, data)

配置项

配置项

说明

COS_SECRET_ID

COS_SECRET_KEY

COS_REGION

COS_APPID

COS_BUCKET

COS_SCHEME

选填,https或者http,默认https,访问api的协议

COS_HOST

选填,可以通过cos.host设置的值,组成文件静态文件url

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

flask_cos-2.1.7.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

flask_cos-2.1.7-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file flask_cos-2.1.7.tar.gz.

File metadata

  • Download URL: flask_cos-2.1.7.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Darwin/22.3.0

File hashes

Hashes for flask_cos-2.1.7.tar.gz
Algorithm Hash digest
SHA256 f8fe1657c1e41c59e0f024ea1d37f2840cd3580fb5963c82f6b7cb56437314b5
MD5 d79bdc58b83ea7791fd7322aefdef22e
BLAKE2b-256 df2a12910e7b9d359d2aa3d1182c4cab1a24c2c40417be87e26f0cdcff0d06c0

See more details on using hashes here.

File details

Details for the file flask_cos-2.1.7-py3-none-any.whl.

File metadata

  • Download URL: flask_cos-2.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Darwin/22.3.0

File hashes

Hashes for flask_cos-2.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2bb693afdee119e22cc04052379e5be5a3940765f67209eb03ce38724920cf07
MD5 c8414d9147a44a82e92ec7b34d0b7cfb
BLAKE2b-256 eb5ee70c580f4326d1747154da7ccffb2b873a59c021ed795fd115121f5b2955

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