腾讯云对象存储的Flask扩展
Project description
腾讯云对象存储的Flask扩展
安装
通过pip安装:
pip install Flask-COS
使用
from flask_cos import COS
cos = COS()
cos.init_app(app)
cos.upload(content, cos_path)
配置项
配置项 |
说明 |
---|---|
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.0.tar.gz
(1.8 kB
view hashes)