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
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
Built Distribution
File details
Details for the file django_presigned_url-0.1.0.tar.gz
.
File metadata
- Download URL: django_presigned_url-0.1.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f75893995a29ad07ecfb7c991c420aa5fb76194db3a35bbd2a343810b215b4c1 |
|
MD5 | a36748227c06ba56133c4baa984d3fb1 |
|
BLAKE2b-256 | 627d675b2633c7c821e128d085f923e6411e3d851f0fc761037d7f453869d0ca |
File details
Details for the file django_presigned_url-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_presigned_url-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda1afd2446c8d706e2410b292da818c5d156bee770d496bdc7d191b6321ce28 |
|
MD5 | bc4245b3f496d5d2d48103579abca553 |
|
BLAKE2b-256 | a7d888386c77ada6af4ff102bf5ee5f433f9e5984571ed429f48c3715adb243e |