腾讯云对象存储的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_HOST |
选填,可以通过cos.host访问设置的值,用于组成文件url |
Project details
Release history Release notifications | RSS feed
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.0.3.tar.gz
(1.9 kB
view hashes)