Django AWS S3 Signed Requests API with Django Rest Framework
Project description
Django rest framework views to get a S3 signed url to PUT or GET to AWS S3
Example views.py
import djassr class MyS3PUTSignatureAPIView(djassr.GetPUTSignature): authentication_classes = (TokenAuthentication, ) permission_classes = (IsAuthenticated,)
Install
$ pip install djassr
Usage
In urls.py
... url('^put_signed_url/$', djassr.views.GetPUTSignature.as_view()), ...
Demo
You can look at and run the demo project.
pip install -r requirements-dev.txt pip install -e ../ cd demop python manage.py migrate python manage.py runserver
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
djassr-0.1.1.tar.gz
(2.4 kB
view details)
File details
Details for the file djassr-0.1.1.tar.gz
.
File metadata
- Download URL: djassr-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a8b7448f1053ea34eab8dced4bdb8b907c4c9dc20bbceba69df4b5005125df9 |
|
MD5 | 10af0a1ccd63b8af598e7c30fea7a6de |
|
BLAKE2b-256 | aba6420ccfdac56c562e1fc17c4ca42db7c08af5d64fe49c47499f09a0634d4c |