Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

Files for Flask-COS, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size Flask-COS-2.0.0.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page