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.2.5.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file djassr-0.2.5.tar.gz
.
File metadata
- Download URL: djassr-0.2.5.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b64580a29f101a1694cbde2d66a5e9e24273ecfc1986a737dacb167651f43e65 |
|
MD5 | 6995d42e43a007971ab06424bb56e665 |
|
BLAKE2b-256 | 6f166197d0ae5ec359441b648600d8bff5c9db23de1b529e58fb69e63fdd55cf |
File details
Details for the file djassr-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: djassr-0.2.5-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4b2e0d7dc0a5b969c40d5c16cbbcbc44c4ec14836f23b1bc5447e7b8821624 |
|
MD5 | 17bfc5d0996b2b16d060da3602810921 |
|
BLAKE2b-256 | bf130dec7ac23d23a0e6d81e23f41f99f059a5254cb067493e29e67f1fd41e50 |