Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T12:59:08.000Z (2 months ago)
- Last Synced: 2024-09-14T03:22:14.549Z (2 months ago)
- Topics: django, presigned-url, presignedurl, url
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
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)