This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
=========
django-suuze-upload
=========

|Build Status|

django-suuze-upload is a simple app that allows you to get suuze private file upload services
uptoken. Using this uptoken you can easily upload file with js-sdk in your project.

============
Requirements
============

* `Django <https: www.djangoproject.com=""/>`_ (1.9+)
* `requests <http: docs.python-requests.org="" en="" master=""/>`_ (2.11.1+)

============
Installation
============

* Install ``django-suuze-upload`` (or `download from PyPI <>`_):

.. code-block:: python

pip install django-suuze-upload -i http://p.int.cdnzz.net:19883/simple/

* Add ``django_suuze_upload`` to ``INSTALLED_APPS`` in ``settings.py``:

.. code-block:: python

INSTALLED_APPS = (
# other apps
"django_suuze_upload",
)

* Configure your queues in django's ``settings.py``

.. code-block:: python

SUUZE_UPLOAD_CONFIG = {
# domain provide upload file service
'domain': 'http://upload-file.cdnzz.com',
# web app namn
'app': 'upload-file-demo',
# direction where holds uploaded file
'path': 'app/upload',
# access_key to generate uptoken
'access_key': 'xxxxxxxx',
# optional, in second, default is 1800
# 'expire': 1800,
}


=====
Usage
=====

Fetch uptoken in your project
-------------------------

`django-suuze-upload` allows you to upload file to suuze file store easily.

.. code-block:: python

from django.views import View
from django_suuze_upload import fetch_uptoken
from django_suuze_upload import is_uptoken_expire
from django_suuze_upload import upload_file

class Dome(View):

def post(self, request):
...
uptoken = fetch_uptoken()['uptoken']
....
# some logic to process upload file .etc
# check uptoken is expire or not
# is_uptoken_expire(uptoken)

file_object = request.FILES['filw']
rv = upload_file(uptoken, file_object)
....
Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-suuze-upload-0.1.1.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Sep 22, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting