{"id":37064629,"url":"https://github.com/strayer/django-gcloud-storage","last_synced_at":"2026-01-14T07:33:16.841Z","repository":{"id":44689074,"uuid":"56773836","full_name":"strayer/django-gcloud-storage","owner":"strayer","description":"Django storage module implementation for Google Cloud Storage","archived":false,"fork":false,"pushed_at":"2022-02-01T08:40:37.000Z","size":73,"stargazers_count":24,"open_issues_count":6,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-14T02:17:32.671Z","etag":null,"topics":["django","django-plugin","google-cloud","google-cloud-storage","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strayer.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-21T12:58:12.000Z","updated_at":"2024-09-02T09:52:18.000Z","dependencies_parsed_at":"2022-09-12T15:22:57.433Z","dependency_job_id":null,"html_url":"https://github.com/strayer/django-gcloud-storage","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/strayer/django-gcloud-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayer%2Fdjango-gcloud-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayer%2Fdjango-gcloud-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayer%2Fdjango-gcloud-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayer%2Fdjango-gcloud-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strayer","download_url":"https://codeload.github.com/strayer/django-gcloud-storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayer%2Fdjango-gcloud-storage/sbom","scorecard":{"id":854840,"data":{"date":"2025-08-11","repo":{"name":"github.com/strayer/django-gcloud-storage","commit":"28c9fb6049ac3d334b4a746998abbfe3c065a723"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/23 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T23:37:30.720Z","repository_id":44689074,"created_at":"2025-08-23T23:37:30.720Z","updated_at":"2025-08-23T23:37:30.720Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-plugin","google-cloud","google-cloud-storage","python"],"created_at":"2026-01-14T07:33:16.332Z","updated_at":"2026-01-14T07:33:16.826Z","avatar_url":"https://github.com/strayer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============================\ndjango-gcloud-storage\n=============================\n\n.. image:: https://img.shields.io/pypi/v/django-gcloud-storage.svg\n    :target: https://pypi.python.org/pypi/django-gcloud-storage\n.. image:: https://img.shields.io/pypi/l/django-gcloud-storage.svg\n    :target: https://pypi.python.org/pypi/django-gcloud-storage\n.. image:: https://img.shields.io/pypi/pyversions/django-gcloud-storage.svg\n    :target: https://pypi.python.org/pypi/django-gcloud-storage\n.. image:: https://img.shields.io/pypi/format/django-gcloud-storage.svg\n    :target: https://pypi.python.org/pypi/django-gcloud-storage\n\nDjango storage module implementation for Google Cloud Storage using the\ngoogle-cloud-storage_ python module by Google.\n\n.. _google-cloud-storage: https://pypi.org/project/google-cloud-storage/\n\nNotice: alpha release\n---------------------\n\nPlease keep in mind that this version is not yet used in any production application\n(as far as I know of) and thus is an alpha release, even though fully tested!\nAny kind of feedback is greatly appreciated.\n\nInstallation\n------------\n\nInstall django-gcloud-storage::\n\n    pip install django-gcloud-storage\n\nCreate a GCS service account JSON keyfile and a bucket for your application.\nCheck the documentation of Google Cloud Platform for more details:\n\nhttps://cloud.google.com/iam/docs/creating-managing-service-accounts#creating\n\nhttps://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating\n\nUpdate your Django settings and use it like any other Django storage module::\n\n    DEFAULT_FILE_STORAGE = 'django_gcloud_storage.DjangoGCloudStorage'\n\n    GCS_PROJECT = \"django-gcloud-storage\"\n    GCS_BUCKET = \"django-gcloud-storage-bucket\"\n    GCS_CREDENTIALS_FILE_PATH = \"/path/to/gcs-credentials.json\"\n\nFeatures\n--------\n\n* Fully tested on Python 3.7 - 3.10, PyPy 3.7-7.3.7 and PyPy 3.8-7.3.7 with\n  Django 2.2, 3.2 and 4.0\n* Files are locally downloaded as SpooledTemporaryFile objects to avoid memory\n  abuse\n* Changed files will automatically be reuploaded to GCS when closed\n\nCaveats\n-------\n\n* Files must be fully downloaded to be accessed and fully uploaded when changed\n* Everytime a file is opened via the storage module, it will be downloaded again\n* (development) Most tests need access to Google Cloud Storage\n\nUnsigned URLS\n-------------\n\nThe module generates signed urls by default. This requires calls to storage API\nwhich might take some time if you need to return several objects at a time. You\ncan generate unsigned urls using the following setting::\n\n  GCS_USE_UNSIGNED_URLS = True\n\nKeep in mind you might need to set the default object permission to public for\nthe unsigned urls to work.\n\nContributing\n------------\n\nContributions are welcome, and they are greatly appreciated! Every\nlittle bit helps, and credit will always be given.\n\nReport Bugs\n~~~~~~~~~~~\n\nReport bugs at https://github.com/strayer/django-gcloud-storage/issues.\n\nIf you are reporting a bug, please include:\n\n* Your operating system name and version.\n* Any details about your local setup that might be helpful in troubleshooting.\n* Detailed steps to reproduce the bug.\n\nFix Bugs\n~~~~~~~~\n\nLook through the GitHub issues for bugs. Anything tagged with \"bug\"\nis open to whoever wants to implement it.\n\nImplement Features\n~~~~~~~~~~~~~~~~~~\n\nLook through the GitHub issues for features. Anything tagged with \"feature\"\nis open to whoever wants to implement it.\n\nWrite Documentation\n~~~~~~~~~~~~~~~~~~~\n\ndjango-gcloud-storage could always use more documentation, whether as part of the\nofficial django-gcloud-storage docs, in docstrings, or even on the web in blog posts,\narticles, and such.\n\nPull Request Guidelines\n~~~~~~~~~~~~~~~~~~~~~~~\n\nBefore you submit a pull request, check that it meets these guidelines:\n\n1. The pull request should include tests.\n2. The pull request should work for all supported Python and Django versions\n   (see above). Make sure that the tests pass.\n\nRunning Tests\n-------------\n\nWarning: Most of the tests require a GCS project and will do API requests that\nmay end up costing you money!\n\nYou can run the test suite either in a virtualenv with py.test or with tox - both\nrequire a valid service account JSON keyfile called `test-credentials.json` in\nthe project root. The GCS project name will be provided via a command argument.\n\nThe tests will create and (hopefully) remove buckets on their own. To be safe,\ncheck if there are any leftover buckets in your GCS project after running the\ntests!\n\n::\n\n    source \u003cYOURVIRTUALENV\u003e/bin/activate\n    (myenv) $ pip install -r requirements-test.txt\n    (myenv) $ pip install -e .\n    (myenv) $ py.test --gcs-project-name=\"project-name\"\n\n    or\n\n    $ tox -- --gcs-project-name=\"project-name\"\n\nCredits\n-------\n\nInspired by:\n\n* `django-storages`_\n\n.. _`django-storages`: https://pypi.python.org/pypi/django-storages\n\nTools (partly) used in rendering this package:\n\n*  Cookiecutter_\n*  `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrayer%2Fdjango-gcloud-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrayer%2Fdjango-gcloud-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrayer%2Fdjango-gcloud-storage/lists"}