https://github.com/adfinis/django-presigned-url
Generate presigned urls for django
https://github.com/adfinis/django-presigned-url
django presigned-url presignedurl url
Last synced: 7 months ago
JSON representation
Generate presigned urls for django
- Host: GitHub
- URL: https://github.com/adfinis/django-presigned-url
- Owner: adfinis
- License: gpl-3.0
- Created: 2024-07-18T15:00:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T11:38:19.000Z (8 months ago)
- Last Synced: 2025-03-27T01:11:14.451Z (8 months ago)
- Topics: django, presigned-url, presignedurl, url
- Language: Python
- Homepage:
- Size: 178 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```sh
poetry add django_presigned_urls
```
```python
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)