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.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file djassr-0.2.2.tar.gz.

File metadata

  • Download URL: djassr-0.2.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for djassr-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a98488faae7a78b77cd0e0e95269b0525588bf15b84f341b542be6bd34f485ad
MD5 07e6c50099088c6453bd3648bc4d4f11
BLAKE2b-256 ebc5b62cfca308cd7e5d67fad7d26dcf2f050b0c974115a41e7fca333f394769

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