Skip to main content

腾讯云对象存储的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


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-0.1.2.tar.gz (1.8 kB view hashes)

Uploaded source

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