{"id":16847158,"url":"https://github.com/graup/django-prompt-responses","last_synced_at":"2026-05-16T13:06:13.048Z","repository":{"id":57421374,"uuid":"109792161","full_name":"graup/django-prompt-responses","owner":"graup","description":"Reusable prompt and user responses data schema for Django","archived":false,"fork":false,"pushed_at":"2022-12-26T20:36:09.000Z","size":84,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-14T21:49:00.898Z","etag":null,"topics":["django"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graup.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-07T05:45:36.000Z","updated_at":"2017-11-17T06:17:19.000Z","dependencies_parsed_at":"2023-01-31T01:31:02.170Z","dependency_job_id":null,"html_url":"https://github.com/graup/django-prompt-responses","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/graup/django-prompt-responses","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fdjango-prompt-responses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fdjango-prompt-responses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fdjango-prompt-responses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fdjango-prompt-responses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graup","download_url":"https://codeload.github.com/graup/django-prompt-responses/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fdjango-prompt-responses/sbom","scorecard":{"id":444018,"data":{"date":"2025-08-11","repo":{"name":"github.com/graup/django-prompt-responses","commit":"158ed235b6255978d89de2db7594e4adb18554bd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":-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":"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: MIT 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":"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":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw","Warn: Project is vulnerable to: PYSEC-2020-263 / GHSA-fx83-3ph3-9j2q","Warn: Project is vulnerable to: GHSA-gw84-84pc-xp82","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"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-19T06:15:03.641Z","repository_id":57421374,"created_at":"2025-08-19T06:15:03.642Z","updated_at":"2025-08-19T06:15:03.642Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33103977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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"],"created_at":"2024-10-13T13:06:51.601Z","updated_at":"2026-05-16T13:06:13.033Z","avatar_url":"https://github.com/graup.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============================\nprompt_responses\n=============================\n\n.. image:: https://badge.fury.io/py/django-prompt-responses.svg\n    :target: https://badge.fury.io/py/django-prompt-responses\n\n.. image:: https://travis-ci.org/graup/django-prompt-responses.svg?branch=master\n    :target: https://travis-ci.org/graup/django-prompt-responses\n\n.. image:: https://codecov.io/gh/graup/django-prompt-responses/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/graup/django-prompt-responses\n\nA flexible prompt and user responses data schema utilizing Django's content types framework.\n\nThis app was born during a university research project. The main use case is data collection.\nIt lets you create numerous kinds of \"prompts\" (questions or tasks) and record user responses.\nPrompts can be populated with any kind of database object.\n\nThis supports these kind of prompts:\n\n* How do you feel today on a 1-5 scale? (Simple likert question)\n* How do you like {object} on a 1-10 scale? (Object-based likert question)\n* Which word do you associate with {object}? (Object-based open-ended question)\n* How related do you think is {object} to these other objects? (Tagging task)\n\nRatings and tags are simply integer values, their meaning can be defined by your application\n(e.g. 1 to 5 scales, or -1 = no, +1 = yes, and so on).\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-prompt-responses.readthedocs.io.\n\nQuickstart\n----------\n\nInstall prompt_responses::\n\n    pip install django-prompt-responses\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n    INSTALLED_APPS = (\n        'django.contrib.admin',\n        'django.contrib.auth',\n        'django.contrib.contenttypes',\n        'django.contrib.sessions',\n        'django.contrib.messages',\n        'django.contrib.staticfiles',\n        ...\n        'prompt_responses',\n        'sortedm2m',  # for the ability to change the order of Prompts in the Django admin\n        ...\n    )\n\nCreate Prompts, e.g. through the integrated admin views.\n\nDeliver a prompt to the user:\n\n.. code-block:: python\n\n    prompt = Prompt.objects.get(id=1)\n    instance = prompt.get_instance()\n    \n    \"\"\"\n    Use these variables to display the UI:\n    prompt.type\n    str(instance)\n    instance.object\n    instance.response_objects\n    \"\"\"\n\nSave a user response:\n\n.. code-block:: python\n\n    prompt = Prompt.objects.get(id=1)\n    prompt.create_response(\n        user=user,\n        prompt_object=instance.object,\n        rating=5\n    )\n\nAnalyze data:\n\n.. code-block:: python\n\n    prompt = Prompt.objects.get(id=1)\n    # Mean rating for all responses\n    rating = prompt.get_mean_rating()\n    # Mean ratings for all objects\n    matrix = prompt.get_mean_tag_rating_matrix()\n    # Mean ratings for one object\n    ratings = list(prompt.get_mean_tag_ratings(instance.object))\n\nUse the included viewsets in your Django Rest Framework API:\n\n.. code-block:: python\n\n    from rest_framework import routers\n    from prompt_responses.viewsets import PromptViewSet\n\n    router = routers.DefaultRouter()\n    router.register(r'prompts', PromptViewSet)\n\n    urlpatterns = [\n        url(r'^api/', include(router.urls))\n    ]\n\nThis offers `api/prompts/`, `api/prompts/\u003cid\u003e/`, `api/prompts/\u003cid\u003e/instantiate/`,\n`api/prompts/\u003cid\u003e/create-response/` (POST) endpoints.\n\nFeatures\n--------\n\n* Prompt types\n\n  * Likert scale ratings\n  * Open-ended free text\n  * Tagging\n\n* Populate prompts with objects in order to\n\n  * let users rate objects from one set\n  * let users rate (tag) relations between two sets of objects\n\n* Analytics convenience functions\n* (Coming soon) Plugable object sampling algorithms\n* Support for Django Rest Framework\n\nRunning Tests\n\nCredits\n-------\n\nTools 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%2Fgraup%2Fdjango-prompt-responses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraup%2Fdjango-prompt-responses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraup%2Fdjango-prompt-responses/lists"}