Django S3 File Browser
- Info:
S3 File Browser For Django.
- Author:
Mehmet KAYKISIZ (http://github.com/mkaykisiz)
Django S3 File Browser is a simple web-based object browser for cloud-based blob datastores. Just add as an application to a Django project, add some settings, and you’ll be able to browse cloud containers and implied subdirectories, as well as view / download objects.
Be sure to check out the following project resources:
Quick Start
First, download library:
pip install djangoS3Browser
Add djangoS3Browser to INSTALLED_APPS:
INSTALLED_APPS = [
...
'djangoS3Browser',
]
Then, make the necessary configurations for the Boto 3 library:
AWS_ACCESS_KEY_ID = "AWS_ACCESS_KEY_ID"
AWS_SECRET_ACCESS_KEY = "AWS_SECRET_ACCESS_KEY"
AWS_STORAGE_BUCKET_NAME = "AWS_STORAGE_BUCKET_NAME"
AWS_AUTO_CREATE_BUCKET = True
AWS_QUERYSTRING_AUTH = False
# AWS cache settings, don't change unless you know what you're doing:
AWS_EXPIRY = 60 * 60 * 24 * 7
# Revert the following and use str after the above-mentioned bug is fixed in
# either django-storage-redux or boto
control = 'max-age=%d, s-maxage=%d, must-revalidate' % (AWS_EXPIRY, AWS_EXPIRY)
AWS_HEADERS = {
'Cache-Control': bytes(control, encoding='latin-1')
}
Next, do to Django S3 File Browser configuration:
S3_BROWSER_SETTINGS = "djangoS3Browser"
Next, add to TEMPLATES[‘OPTIONS’] in settings.py:
'libraries': {
's3-load': 'djangoS3Browser.templatetags.s3-tags',
},
Then, add to urls.py:
url(r'^' + settings.S3_BROWSER_SETTINGS + '/', include('djangoS3Browser.s3_browser.urls')),
Then, add this to the top of the page you want to add:
{% load s3tags %}
Finally, add this to the content of the page you want to add:
{% load_s3 %}
Metadata
Release files for DjangoS3Browser 0.3
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 | Actions |
|---|---|---|---|---|
| DjangoS3Browser-0.3.tar.gz | 392.1 kB | Without provenance | Details for DjangoS3Browser-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| DjangoS3Browser-0.3-py3-none-any.whl | Python 3 | none | any | Details for DjangoS3Browser-0.3-py3-none-any.whl |
Total release size: 795.5 kB
Release files / DjangoS3Browser-0.3.tar.gz
| Download URL | DjangoS3Browser-0.3.tar.gz |
|---|---|
| Size | 392.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6de3f141a5ebd37dbbee74876bbfd519afd01869eece1ab4a81528d887e73d21
|
|
BLAKE2b-256 checksum How to use checksums |
489d493887c32eb555f6efe54bc8a98c16c34f4df6b4fa8c679f96d29e583672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2
|
Release files / DjangoS3Browser-0.3-py3-none-any.whl
| Download URL | DjangoS3Browser-0.3-py3-none-any.whl |
|---|---|
| Size | 403.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
266dea4821a5630a8a6a790f077f417e483b0da49fd626ccd76882e876800f96
|
|
BLAKE2b-256 checksum How to use checksums |
80bce60b8f7ef5951901e15504a9bf861aa0763ac55be8108f36203a1886cacf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2
|
Security for DjangoS3Browser 0.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.