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)
Metadata
Release files for django-presigned-url 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_presigned_url-0.1.1.tar.gz | 17.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_presigned_url-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.3 kB
Release files / django_presigned_url-0.1.1.tar.gz
| Download URL | django_presigned_url-0.1.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8b1e0d85cc30ab05d276a6df6f7e8409301dfa7b0482431b2d0ea5fa7af62f9
|
|
BLAKE2b-256 checksum How to use checksums |
47a40be32b421ad887cece97aa065c3c8ed1681ea5c14bb155812300edd0f6f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / django_presigned_url-0.1.1-py3-none-any.whl
| Download URL | django_presigned_url-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0a48bdaf527ee5a7a4226db0c8c922686af8c69f08e443a1474193510723a47
|
|
BLAKE2b-256 checksum How to use checksums |
9bd6ae90953cb46bf41170f3a2e9ede3b14d464b8c5a3f38c6b7c20a5ddc22dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
|
Security for django-presigned-url 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.