{
"info": {
"author": "wongxinjie",
"author_email": "wongxinjie@grid-safe.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "=========\ndjango-suuze-upload\n=========\n\n|Build Status|\n\ndjango-suuze-upload is a simple app that allows you to get suuze private file upload services\nuptoken. Using this uptoken you can easily upload file with js-sdk in your project.\n\n============\nRequirements\n============\n\n* `Django `_ (1.9+)\n* `requests `_ (2.11.1+)\n\n============\nInstallation\n============\n\n* Install ``django-suuze-upload`` (or `download from PyPI <>`_):\n\n.. code-block:: python\n\n pip install django-suuze-upload -i http://p.int.cdnzz.net:19883/simple/\n\n* Add ``django_suuze_upload`` to ``INSTALLED_APPS`` in ``settings.py``:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n # other apps\n \"django_suuze_upload\",\n )\n\n* Configure your queues in django's ``settings.py``\n\n.. code-block:: python\n\n SUUZE_UPLOAD_CONFIG = {\n # domain provide upload file service\n 'domain': 'http://upload-file.cdnzz.com',\n # web app namn\n 'app': 'upload-file-demo',\n # direction where holds uploaded file\n 'path': 'app/upload',\n # access_key to generate uptoken\n 'access_key': 'xxxxxxxx',\n # optional, in second, default is 1800\n # 'expire': 1800,\n }\n\n\n=====\nUsage\n=====\n\nFetch uptoken in your project\n-------------------------\n\n`django-suuze-upload` allows you to upload file to suuze file store easily.\n\n.. code-block:: python\n\n from django.views import View\n from django_suuze_upload import fetch_uptoken\n from django_suuze_upload import is_uptoken_expire\n from django_suuze_upload import upload_file\n\n class Dome(View):\n\n def post(self, request):\n ...\n uptoken = fetch_uptoken()['uptoken']\n ....\n # some logic to process upload file .etc\n # check uptoken is expire or not\n # is_uptoken_expire(uptoken)\n\n file_object = request.FILES['filw']\n rv = upload_file(uptoken, file_object)\n ....",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "UNKNOWN",
"keywords": null,
"license": "MIT",
"maintainer": null,
"maintainer_email": null,
"name": "django-suuze-upload",
"package_url": "https://pypi.org/project/django-suuze-upload/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/django-suuze-upload/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "UNKNOWN"
},
"release_url": "https://pypi.org/project/django-suuze-upload/0.1.1/",
"requires_dist": null,
"requires_python": null,
"summary": "An app that provides django integration create uptoken for suuze upload service",
"version": "0.1.1"
},
"last_serial": 2356716,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "16e759bc0da41249762a12eda80cb3ee",
"sha256": "11b7816598b4302371dce1db81d32f8a8d691020545c88c9b144b8b7fbb22af7"
},
"downloads": -1,
"filename": "django-suuze-upload-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "16e759bc0da41249762a12eda80cb3ee",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2964,
"upload_time": "2016-09-22T02:29:33",
"url": "https://files.pythonhosted.org/packages/f3/45/5f2866ef7cf92cd6d4d525fc1a4ce5c9c33c808023d960374e67af033a98/django-suuze-upload-0.1.0.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "021fc537bc3b7714a7f10703f0d941ca",
"sha256": "c05684724fc0176ae9d69f29770ae29560a1ce4a8c96a7475a25d384b22aab6c"
},
"downloads": -1,
"filename": "django-suuze-upload-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "021fc537bc3b7714a7f10703f0d941ca",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3524,
"upload_time": "2016-09-22T07:29:05",
"url": "https://files.pythonhosted.org/packages/96/de/01ffa42e12c3c60c0ec868a7c186f47be7f2a9021c187e56d752f27df90f/django-suuze-upload-0.1.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "021fc537bc3b7714a7f10703f0d941ca",
"sha256": "c05684724fc0176ae9d69f29770ae29560a1ce4a8c96a7475a25d384b22aab6c"
},
"downloads": -1,
"filename": "django-suuze-upload-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "021fc537bc3b7714a7f10703f0d941ca",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3524,
"upload_time": "2016-09-22T07:29:05",
"url": "https://files.pythonhosted.org/packages/96/de/01ffa42e12c3c60c0ec868a7c186f47be7f2a9021c187e56d752f27df90f/django-suuze-upload-0.1.1.tar.gz"
}
]
}