Toolkit for storing files and attachments in web applications
Project description
DEPOT - File Storage Made Easy
DEPOT is a framework for easily storing and serving files in web applications on Python2.6+ and Python3.2+.
Installing
Installing DEPOT can be done from PyPi itself by installing the filedepot distribution:
$ pip install filedepot
Getting Started
To start using Depot refer to Documentation
DEPOT was presented at PyConUK and PyConFR in 2014
Here is a simple example of using depot standalone to store files on MongoDB:
from depot.manager import DepotManager # Configure a *default* depot to store files on MongoDB GridFS DepotManager.configure('default', { 'depot.backend': 'depot.io.gridfs.GridFSStorage', 'depot.mongouri': 'mongodb://localhost/db' }) depot = DepotManager.get() # Save the file and get the fileid fileid = depot.create(open('/tmp/file.png')) # Get the file back stored_file = depot.get(fileid) print stored_file.filename print stored_file.content_type
ChangeLog
0.0.3
Work-Around for issue with wsgi.file_wrapper provided by Waitress WSGI Server
0.0.2
Official Support for AWS S3 on Python3
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
filedepot-0.0.3.tar.gz
(15.8 kB
view details)
File details
Details for the file filedepot-0.0.3.tar.gz
.
File metadata
- Download URL: filedepot-0.0.3.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad95388e25c2d26049dc549b9c1eddf8f785277d2c8529378c1f8d93d0fba7c8 |
|
MD5 | b58030154aeced2a92a26d5e5125a115 |
|
BLAKE2b-256 | a9be6cb506ce3175421e9fcfc394bfe794687d282a375d8c4dbc81dd3226dccc |