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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_presigned_url-0.1.1.tar.gz.
File metadata
- Download URL: django_presigned_url-0.1.1.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8b1e0d85cc30ab05d276a6df6f7e8409301dfa7b0482431b2d0ea5fa7af62f9
|
|
| MD5 |
af4584ea10c2e551e4fb3a39e3739e0b
|
|
| BLAKE2b-256 |
47a40be32b421ad887cece97aa065c3c8ed1681ea5c14bb155812300edd0f6f2
|
File details
Details for the file django_presigned_url-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_presigned_url-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0a48bdaf527ee5a7a4226db0c8c922686af8c69f08e443a1474193510723a47
|
|
| MD5 |
82174d2395c764b3092c795d67c210e7
|
|
| BLAKE2b-256 |
9bd6ae90953cb46bf41170f3a2e9ede3b14d464b8c5a3f38c6b7c20a5ddc22dd
|