Skip to main content

Generate presigned urls for django

Project description

django-presigned-url

Generate presigned urls for django.

Getting started

Installation

Requirements

  • poetry

Usage

Install django-presigned-urls in your django project and import the relevant functions.

poetry add django_presigned_urls
from django_presigned_url.presign_urls import (
    make_presigned_url,
    verify_presigned_request,
)

make_presigned_url(reverse("file-download"), request)
verify_presigned_request(reverse("file-download"), request)

Configuration

You can configure django-presigned-urls with your django settings.

  • PRESIGNED_URL_LIFETIME: how long the url is valid in seconds (default: 3600)

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

django_presigned_url-0.1.0.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

django_presigned_url-0.1.0-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

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