Skip to main content

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

Go to http://localhost:8000/api/

Project details


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)

Uploaded Source

Built Distribution

djassr-0.2.5-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for djassr-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b64580a29f101a1694cbde2d66a5e9e24273ecfc1986a737dacb167651f43e65
MD5 6995d42e43a007971ab06424bb56e665
BLAKE2b-256 6f166197d0ae5ec359441b648600d8bff5c9db23de1b529e58fb69e63fdd55cf

See more details on using hashes here.

File details

Details for the file djassr-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for djassr-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7a4b2e0d7dc0a5b969c40d5c16cbbcbc44c4ec14836f23b1bc5447e7b8821624
MD5 17bfc5d0996b2b16d060da3602810921
BLAKE2b-256 bf130dec7ac23d23a0e6d81e23f41f99f059a5254cb067493e29e67f1fd41e50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page