========
Simple web-application used for accessing project with SwiftStack storage
Quick Install
-------------
1) Install almastorage:
pip install django-almastorage
2) Add 'almastorage' into your INSTALLED_APPS in project settings
3) Add fields into project settings infortation from your swiftstack:
SW_USERNAME = 'user'//account name
SW_KEY = 'key' //account key
SW_AUTH_URL = 'http://your_url' //auth_url
AUTH_USER_MODEL = 'your User model' //your User model
4) Migrate
./manage.py migrate almastorage
5) Create default container
./manage.py shell
> from almastorage.models import SwiftContainer
> SwiftContainer.create_default_container()
-------------
You can download it directly from storage, but in that case your filename will be some key generated
from your filename and uploaded date. For download you can use 'download' view from views.py, just
append to your urls url(r'^files', include('almastorage.urls')), and then download using swiftfile id, 'http://your_domain/files/download/(?P<file_id>[0-9]+)/'
-------------
Use API for upload: http://yourdomain/api/v1/storage/:SW_USERNAME/upload/
post_data={
'filename': filename,
'content_type': mime_type,
'uploaded_file': base64.b64encode(open(file_path, "rb").read())
}
Use API for download: http://yourdomain/api/v1/file/:id/download/
which will return {'temp_url': 'http://temp_url'}, use get to this url to get the file
Metadata
Release files for django-almastorage 0.4.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-almastorage-0.4.1.tar.gz | 13.3 kB | Without provenance | Details |
Release files / django-almastorage-0.4.1.tar.gz
| Download URL | django-almastorage-0.4.1.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bcd7cb2bd9fc97b62c4b97343c94f2481091ec7548478ea5b2617f868a5e265
|
|
BLAKE2b-256 checksum How to use checksums |
f7122c7181ea65748c5269c1ec3195a379255290bd18f6c6763ffea215e1e65b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-almastorage 0.4.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.