{"id":20400809,"url":"https://github.com/danyi1212/drf-messages","last_synced_at":"2025-08-24T15:13:29.861Z","repository":{"id":45195151,"uuid":"334326085","full_name":"danyi1212/drf-messages","owner":"danyi1212","description":"Use Django's Messages Framework with Django Rest Framework project","archived":false,"fork":false,"pushed_at":"2024-03-10T19:23:25.000Z","size":96,"stargazers_count":6,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-22T13:32:50.270Z","etag":null,"topics":["django","django-messages","django-messages-drf","django-rest-framework","djangorestframework"],"latest_commit_sha":null,"homepage":"https://drf-messages.readthedocs.io/en/latest","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/danyi1212.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-30T04:19:54.000Z","updated_at":"2024-11-16T09:52:24.000Z","dependencies_parsed_at":"2025-04-12T14:18:55.225Z","dependency_job_id":null,"html_url":"https://github.com/danyi1212/drf-messages","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/danyi1212/drf-messages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danyi1212%2Fdrf-messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danyi1212%2Fdrf-messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danyi1212%2Fdrf-messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danyi1212%2Fdrf-messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danyi1212","download_url":"https://codeload.github.com/danyi1212/drf-messages/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danyi1212%2Fdrf-messages/sbom","scorecard":{"id":321993,"data":{"date":"2025-08-11","repo":{"name":"github.com/danyi1212/drf-messages","commit":"d9817c40be4a76581a48a496bf7a9fbf4ca2cd4b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/20 approved changesets -- score normalized to 0","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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/django.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/django.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/django.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/django.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-to-test-pypi.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/publish-to-test-pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-to-test-pypi.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/publish-to-test-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-to-test-pypi.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/publish-to-test-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-to-test-pypi.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/publish-to-test-pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pylint.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/pylint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pylint.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/danyi1212/drf-messages/pylint.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/django.yml:63","Warn: pipCommand not pinned by hash: .github/workflows/django.yml:66","Warn: pipCommand not pinned by hash: .github/workflows/django.yml:69","Warn: pipCommand not pinned by hash: .github/workflows/django.yml:73","Warn: pipCommand not pinned by hash: .github/workflows/publish-to-test-pypi.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/pylint.yml:15","Warn: pipCommand not pinned by hash: .github/workflows/pylint.yml:16","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:27","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/django.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-to-test-pypi.yml:1","Warn: no topLevel permission defined: .github/workflows/pylint.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/danyi1212/drf-messages/releases/38517371","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/danyi1212/drf-messages/releases/38014427","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/danyi1212/drf-messages/releases/38517371","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/danyi1212/drf-messages/releases/38014427"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 14 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"}},{"name":"Vulnerabilities","score":0,"reason":"49 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-64 / GHSA-x7gm-rfgv-w973","Warn: Project is vulnerable to: PYSEC-2021-421 / GHSA-h4m5-qpfp-3mpv","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2022-190 / GHSA-2gwj-7jmv-h26r","Warn: Project is vulnerable to: PYSEC-2023-13 / GHSA-2hrw-hx67-34x6","Warn: Project is vulnerable to: PYSEC-2022-1 / GHSA-53qw-q765-4fww","Warn: Project is vulnerable to: PYSEC-2022-20 / GHSA-6cw3-g6wv-c2xv","Warn: Project is vulnerable to: PYSEC-2023-225 / GHSA-7h4p-27mh-hmrw","Warn: Project is vulnerable to: GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: PYSEC-2022-2 / GHSA-8c5j-9r9f-c6w8","Warn: Project is vulnerable to: PYSEC-2022-245 / GHSA-8x94-hmjh-97hq","Warn: Project is vulnerable to: PYSEC-2022-19 / GHSA-95rw-fx8r-36v6","Warn: Project is vulnerable to: PYSEC-2023-226 / GHSA-h8gc-pgj2-vjm3","Warn: Project is vulnerable to: PYSEC-2023-100 / GHSA-jh3w-4vvf-mjgr","Warn: Project is vulnerable to: PYSEC-2022-3 / GHSA-jrh2-hc4r-7jwx","Warn: Project is vulnerable to: PYSEC-2022-213 / GHSA-p64x-8rxx-wf6q","Warn: Project is vulnerable to: PYSEC-2023-12 / GHSA-q2jf-h9jm-m7p4","Warn: Project is vulnerable to: PYSEC-2023-222 / GHSA-qmf9-6jqf-j8fq","Warn: Project is vulnerable to: PYSEC-2022-304 / GHSA-qrw5-5h28-6cmg","Warn: Project is vulnerable to: PYSEC-2023-61 / GHSA-r3xc-prgr-mg9p","Warn: Project is vulnerable to: GHSA-rrqc-c2jx-6jgv","Warn: Project is vulnerable to: PYSEC-2024-47 / GHSA-vm8q-m57g-pff3","Warn: Project is vulnerable to: PYSEC-2022-191 / GHSA-w24h-v9qh-8gxj","Warn: Project is vulnerable to: PYSEC-2024-28 / GHSA-xxj9-f6rv-m3x4","Warn: Project is vulnerable to: GHSA-gw84-84pc-xp82","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-2m57-hf25-phgg","Warn: Project is vulnerable to: PYSEC-2023-87 / GHSA-rrm6-wvj7-cwh2","Warn: Project is vulnerable to: GHSA-753j-mpmx-qq6g","Warn: Project is vulnerable to: GHSA-7cx3-6m66-7c5m","Warn: Project is vulnerable to: GHSA-8w49-h785-mj3c","Warn: Project is vulnerable to: PYSEC-2023-75 / GHSA-hj3f-6gcp-jg8j","Warn: Project is vulnerable to: GHSA-qppv-j76h-2rpx","Warn: Project is vulnerable to: GHSA-w235-7p84-xx57","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T01:36:09.597Z","repository_id":45195151,"created_at":"2025-08-18T01:36:09.597Z","updated_at":"2025-08-18T01:36:09.597Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745758,"owners_count":24813525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-messages","django-messages-drf","django-rest-framework","djangorestframework"],"created_at":"2024-11-15T04:46:43.743Z","updated_at":"2025-08-24T15:13:29.837Z","avatar_url":"https://github.com/danyi1212.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"drf-messages\n============\n\n.. image:: https://readthedocs.org/projects/drf-messages/badge/?version=latest\n    :target: https://drf-messages.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://img.shields.io/badge/Maintained-yes-green.svg\n    :target: https://github.com/danyi1212/drf-messages/graphs/commit-activity\n    :alt: Maintained\n\n.. image:: https://static.pepy.tech/personalized-badge/drf-messages?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads\u0026service=github\n    :target: https://pepy.tech/project/drf-messages\n\n**Use Django's Messages Framework with Django Rest Framework.**\n\n| Documentation is available at https://drf-messages.readthedocs.io/en/latest/\n| PyPI Package at https://pypi.org/project/drf-messages/\n| Django Packages at https://djangopackages.org/packages/p/drf-messages/\n\nRequirements:\n\n- Python (3.7, 3.8, 3.9)\n- Django (2.2, 3.0, 3.1, 3.2)\n- Django Rest Framework (3.7-3.12)\n\nDjango's message framework is awesome, and now its even better with Django Rest Framework!\n\nThe django's messages framework is a very easy and quick way to provide one-time messages for the user.\nWhen using django rest framework you loose most of the functionality of it.\nUsing this app you can access your messages though a rest api endpoint.\n\nFeatures\n~~~~~~~~\n- Persistent message storage in database\n- Automatic cleanup\n- DRF endpoint for accessing messages\n\nQuick Start\n-----------\n\n1. Install using:\n\n.. code-block::\n\n    $ pip install drf-messages\n\n2. Configure project ``settings.py``:\n\n.. code-block:: python\n\n    INSTALLED_APPS = [\n        # ...\n        'django.contrib.messages',\n        'rest_framework',\n        'drf_messages',\n        # ...\n    ]\n\n    MESSAGE_STORAGE = \"drf_messages.storage.DBStorage\"\n\n4. Configure routes at your project's ``urls.py``\n\n.. code-block:: python\n\n    urlpatterns = [\n        path('messages/', include('drf_messages.urls')),\n        # ...\n    ]\n\n3. Run migrations using:\n\n.. code-block::\n\n    $ py manage.py migrate drf_messages\n\nFor more details visit the docs for installation: https://drf-messages.readthedocs.io/en/latest/installation/installation.html\n\nUsage\n-----\n\nYou can list all your messages with::\n\n$ curl -X GET \"http://localhost/messages/\"\n\nAny unread messages will have ``read_at`` as ``null``.\nIf you have ``django-filter`` configured, you can also query \"http://localhost/messages/?unread=true\" to get only unread messages.\n\nGetting help\n------------\n\nIn case you have trouble while using this module, you may use the `GitHub Disccussion \u003chttps://github.com/danyi1212/drf-messages/discussions\u003e`_.\n\nFor any bug or issue, open a `new GitHub Issue \u003chttps://github.com/danyi1212/drf-messages/issues\u003e`_.\n\nContributing\n------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanyi1212%2Fdrf-messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanyi1212%2Fdrf-messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanyi1212%2Fdrf-messages/lists"}