{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "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", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Django AliCloud OSS Storage\n=========================\n\n**django-oss-storage** provides a Django AliCloud OSS file storage.\n\n\nFeatures\n========\n\n- Django file storage for AliCloud OSS\n- Django static file storage for AliCloud OSS\n- Works in Python 2 & 3\n\nInstallation\n============\n\n* Install\n\n.. code-block:: bash\n\n $ pip install django-oss-storage\n\n- Add ``'django_oss_storage'`` to your ``INSTALLED_APPS`` setting\n- Set your ``DEFAULT_FILE_STORAGE`` setting to ``\"django_oss_storage.backends.OssMediaStorage\"``\n- Set your ``STATICFILES_STORAGE`` setting to ``\"django_oss_storage.backends.OssStaticStorage\"``\n- Configure your AliCloud OSS settings (Refer below).\n\nUse the following settings for file storage.\n\n.. code-block:: bash\n\n STATICFILES_STORAGE = 'django_oss_storage.backends.OssStaticStorage'\n\n DEFAULT_FILE_STORAGE = 'django_oss_storage.backends.OssMediaStorage'\n\nAuthentication settings\n=======================\n\nUse the following settings to authenticate with AliCloud OSS.\n\n.. code-block:: bash\n\n # AliCloud access key ID\n OSS_ACCESS_KEY_ID = \n\n # AliCloud access key secret\n OSS_ACCESS_KEY_SECRET = \n\nFile storage settings\n=====================\n\nUse the following settings to configure AliCloud OSS file storage.\n\n.. code-block:: bash\n\n # The name of the bucket to store files in\n OSS_BUCKET_NAME = \n\n # The URL of AliCloud OSS endpoint\n # Refer https://www.alibabacloud.com/help/zh/doc-detail/31837.htm for OSS Region & Endpoint\n OSS_ENDPOINT = \n\n # The default location for your files\n MEDIA_URL = '/media/'\n\nStaticfiles storage settings\n============================\n\nAll of the file storage settings are available for the staticfiles storage.\n\n.. code-block:: bash\n\n # The default location for your static files\n STATIC_URL = '/static/'\n\nstaticfiles provides command 'collectstatic'. Run following command to collect all sub-folder 'static' of each app\nand upload to STATIC_URL.\n\n.. code-block:: bash\n\n $ python manage.py collectstatic\n\n\nTesting\n=======\n\nFirst set the required AccessKeyId, AccessKeySecret, endpoint and bucket information for the test through environment variables (**Do not use the bucket for the production environment**).\nTake the Linux system for example:\n\n.. code-block:: bash\n\n $ export OSS_ACCESS_KEY_ID=\n $ export OSS_ACCESS_KEY_SECRET=\n $ export OSS_BUCKET_NAME=\n $ export OSS_ENDPOINT=\n\nSupport and announcements\n=========================\n\nDownloads and bug tracking can be found at the `main project website `_.\n\nLicense\n=======\n\n- `MIT `_.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.aliyun.com/product/oss", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "livingbio-django-oss-storage", "package_url": "https://pypi.org/project/livingbio-django-oss-storage/", "platform": "", "project_url": "https://pypi.org/project/livingbio-django-oss-storage/", "project_urls": { "Homepage": "https://www.aliyun.com/product/oss" }, "release_url": "https://pypi.org/project/livingbio-django-oss-storage/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Django Aliyun OSS (Object Storage Service) storage", "version": "1.0.2" }, "last_serial": 3522765, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "032cad8eea102a0c1f329b3f81f95f0b", "sha256": "e2d054e2fe0458ccd6242eb0ce1033a70ea92d4831b467a26b84ca14d7063e5d" }, "downloads": -1, "filename": "livingbio-django-oss-storage-1.0.0.tar.gz", "has_sig": false, "md5_digest": "032cad8eea102a0c1f329b3f81f95f0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9144, "upload_time": "2017-12-14T09:32:26", "url": "https://files.pythonhosted.org/packages/cb/08/c3e4ee9582db9ddee44f77b92a08b06f20ebb41fe2236b5f5383e7d334e3/livingbio-django-oss-storage-1.0.0.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "932df608c5c55ded29dc1e62060ca963", "sha256": "048cd5bdc9d64ef4818004dbc2558ff10cb45cdb6d9ec4311b39fc8738b2700e" }, "downloads": -1, "filename": "livingbio-django-oss-storage-1.0.2.tar.gz", "has_sig": false, "md5_digest": "932df608c5c55ded29dc1e62060ca963", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12737, "upload_time": "2018-01-26T06:44:52", "url": "https://files.pythonhosted.org/packages/21/b9/5220e143bf418e504c52f5ba89c732ed788c831122972e9a59a718b30c01/livingbio-django-oss-storage-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "932df608c5c55ded29dc1e62060ca963", "sha256": "048cd5bdc9d64ef4818004dbc2558ff10cb45cdb6d9ec4311b39fc8738b2700e" }, "downloads": -1, "filename": "livingbio-django-oss-storage-1.0.2.tar.gz", "has_sig": false, "md5_digest": "932df608c5c55ded29dc1e62060ca963", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12737, "upload_time": "2018-01-26T06:44:52", "url": "https://files.pythonhosted.org/packages/21/b9/5220e143bf418e504c52f5ba89c732ed788c831122972e9a59a718b30c01/livingbio-django-oss-storage-1.0.2.tar.gz" } ] }