Flask-Store
Flask-Store is a Flask Extension designed to provide easy file upload handling in the same vien as Django-Storages, allowing developers to user custom storage backends or one of the provided storage backends.
Example Usage
from flask import Flask, request
from flask.ext.store import Store
app = Flask(__name__)
app.config['STORE_DOMAIN'] = 'http://127.0.0.1:5000'
app.config['STORE_PATH'] = '/some/path/to/somewhere'
store = Store(app)
@app.route('/upload', methods=['POST', ])
def upload():
provider = store.Provider(request.files.get('afile'))
provider.save()
return provider.absolute_url
if __name__ == "__main__":
app.run()
Included Providers
Local File System
AWS Simple Storage Service (S3)
Change Log
0.0.4.3 - Alpha
Bugfix: Python3 str error in setup
0.0.4.2 - Alpha
Minor Feature: New STORE_S3_ACL optional setting. S3 Uploads will auto be set to private unless STORE_S3_ACL specifies a different ACL.
0.0.4.1 - Alpha
Hotfix: Filename changed when saved is set on the provider instance
0.0.4 - Alpha
Changed: Minor change to API, Provider now requires file instance or path
0.0.3.1 - Alpha
Hotfix: Bug in FlaskStoreType where settings a None value would break the Provider, now checks the value is the expected instance type
0.0.3 - Alpha
Feature: SQLAlchemy Store Type
Changed: Renamed stores to providers
Removed: Removed FileStore wrapper class - it was a bad idea.
0.0.2 - Alpha
Feature: FileStore wrapper around provider files
Bugfix: S3 url generation
0.0.1 - Alpha
Feature: Local File Storage
Feature: S3 File Storage
Feature: S3 Gevented File Storage
Metadata
Release files for Flask-Store 0.0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Store-0.0.4.4.tar.gz | 11.0 kB | Without provenance | Details for Flask-Store-0.0.4.4.tar.gz |
Release files / Flask-Store-0.0.4.4.tar.gz
| Download URL | Flask-Store-0.0.4.4.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c654f0d3c60471211c57a520e04b87c72222b36fcfaf21f7097a98fc5e84550
|
|
BLAKE2b-256 checksum How to use checksums |
c2c2b93e1f5a8b4fcd8e0900635a72956c2c1d134c96625b61f3b3da7b7acfa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Store 0.0.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.