Skip to main content

flask-saved

flask-saved是一个flask的存储扩展

使用方式

pip install Flask-Saved

from flask_saved import Storage

storage = Storage(app) or storage = Storage.init_app(app)

storage.save(file)

目前实现了local(本地) oss(阿里云)的存储方式

local 配置项

STORAGE_LOCAL_BASE_PATH

说明:

本地存储基本的路径

比如 upload 目录

STORAGE_LOCAL_BASE_PATH = 'upload'

相对路径。。相对与当前应用的目录

STORAGE_LOCAL_BASE_PATH = '../upload'

相对路径。。相对与当前应用目录的上层目录

STORAGE_LOCAL_BASE_URL

说明:

本地存储基本url

STORAGE_LOCAL_BASE_URL = 'http://picture.domain.com'

oss 配置项

STORAGE_OSS_ACCESS_KEY

STORAGE_OSS_SECRET_KEY

STORAGE_OSS_ENDPOINT

STORAGE_OSS_BUCKET

STORAGE_OSS_CNAME

STORAGE_OSS_DOMIAN

STORAGE_OSS_BASE_PATH

Metadata

Release files for Flask-Saved 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Saved 1.0.6
File Size Uploaded
Flask-Saved-1.0.6.tar.gz 4.1 kB Details

Release files / Flask-Saved-1.0.6.tar.gz

Download URL Flask-Saved-1.0.6.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72a58006ba282f1a394a0195e29666ac08d69217e06898273167579aa249ac00
BLAKE2b-256 checksum
How to use checksums
aac7fadceb25ff403990e8798efa968cd7b3e3dcc33c3ec37ba90011c67229c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.6 This release

1 release file

1.0.5

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page