{ "info": { "author": "Bogdan Radko", "author_email": "bodja.rules@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Django Google Cloud Storage\n===========================\n Based on `Google Cloud Storage JSON API`_.\n\n Written using `Google Cloud Python Client`_ library.\n\n.. _Google Cloud Python Client: https://github.com/GoogleCloudPlatform/gcloud-python\n.. _Google Cloud Storage JSON API: https://cloud.google.com/storage/docs/json_api/\n\nQuick start\n-----------\n\n::\n\n $ pip install django-gcs\n\nUpdate ``settings.py``\n\n.. code:: python\n\n DJANGO_GCS = {\n 'bucket': 'bucket-name',\n 'http': get_http_credentials\n }\n\nSettings\n--------\n\n.. code:: python\n\n DJANGO_GCS = {\n 'bucket': None,\n 'project': '',\n 'credentials': None,\n 'http': None,\n 'cache_control': ['no-cache']\n }\n\n* ``bucket`` name of the bucket on google cloud storage.\n* ``project`` google project name (not required).\n* ``credentials`` oauth2 credentials\n* ``http`` httplib2.Http instance or callable that returns httplib2.Http instance\n* ``cache_control`` is a list of strings. By default ['no-cache']\n\n*Note: One of* ``credentials`` *or* ``http`` *should be provided for authentication.*\n\nUsage\n_____\n\nSet storage globally:\n\n.. code:: python\n\n DEFAULT_FILE_STORAGE = 'django_gcs.GoogleCloudStorage'\n\nOr per model:\n\n.. code:: python\n\n from django_gcs import GoogleCloudStorage\n\n class FileModel(models.Model):\n file = models.ImageField(storage=GoogleCloudStorage(bucket='some-bucket'))\n\nExample how to generate HTTP object to make request.\n\n.. code:: python\n\n import pickle\n import httplib2\n\n def get_http_credentials():\n with open('google/oauth2/credentials/file', 'r') as f:\n credentials = pickle.load(f)\n http_credentials = credentials.authorize(httplib2.Http())\n return http_credentials", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/bodja/django-gcs/tarball/0.1.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bodja/django-gcs", "keywords": "django,storage,gcs,google cloud storage", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-gcs", "package_url": "https://pypi.org/project/django-gcs/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-gcs/", "project_urls": { "Download": "https://github.com/bodja/django-gcs/tarball/0.1.1", "Homepage": "https://github.com/bodja/django-gcs" }, "release_url": "https://pypi.org/project/django-gcs/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Django file storage backend for Google Cloud Storage", "version": "0.1.1" }, "last_serial": 1996641, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "9baba2514f08c0de3d6baebf098c256d", "sha256": "29be02fb80e8aea475b799f8e7602a41f0a1d0a9acf544cde31b34bf4c74fd57" }, "downloads": -1, "filename": "django-gcs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9baba2514f08c0de3d6baebf098c256d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2762, "upload_time": "2016-03-09T01:04:28", "url": "https://files.pythonhosted.org/packages/7f/d8/68d498079692772979190010c16f3e6493753ffa0831829b79383509db38/django-gcs-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9baba2514f08c0de3d6baebf098c256d", "sha256": "29be02fb80e8aea475b799f8e7602a41f0a1d0a9acf544cde31b34bf4c74fd57" }, "downloads": -1, "filename": "django-gcs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9baba2514f08c0de3d6baebf098c256d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2762, "upload_time": "2016-03-09T01:04:28", "url": "https://files.pythonhosted.org/packages/7f/d8/68d498079692772979190010c16f3e6493753ffa0831829b79383509db38/django-gcs-0.1.1.tar.gz" } ] }