Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

An app that provides django integration create uptoken for suuze upload service

Project Description


|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.


* `Django <>`_ (1.9+)
* `requests <>`_ (2.11.1+)


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

.. code-block:: python

pip install django-suuze-upload -i

* Add ``django_suuze_upload`` to ``INSTALLED_APPS`` in ````:

.. code-block:: python

# other apps

* Configure your queues in django's ````

.. code-block:: python

# domain provide upload file service
'domain': '',
# 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,


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

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.5 kB) Copy SHA256 Hash SHA256
Source None Sep 22, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers