{"id":13572324,"url":"https://github.com/magopian/django-inspect-model","last_synced_at":"2025-10-14T13:41:42.429Z","repository":{"id":57420482,"uuid":"1831577","full_name":"magopian/django-inspect-model","owner":"magopian","description":"Model inspection for Django","archived":false,"fork":false,"pushed_at":"2018-03-08T16:51:33.000Z","size":244,"stargazers_count":28,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-30T13:26:26.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://django-inspect-model.rtfd.org","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/magopian.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-01T12:33:13.000Z","updated_at":"2025-03-09T19:34:28.000Z","dependencies_parsed_at":"2022-09-16T09:12:43.259Z","dependency_job_id":null,"html_url":"https://github.com/magopian/django-inspect-model","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/magopian/django-inspect-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magopian%2Fdjango-inspect-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magopian%2Fdjango-inspect-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magopian%2Fdjango-inspect-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magopian%2Fdjango-inspect-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magopian","download_url":"https://codeload.github.com/magopian/django-inspect-model/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magopian%2Fdjango-inspect-model/sbom","scorecard":{"id":612140,"data":{"date":"2025-08-11","repo":{"name":"github.com/magopian/django-inspect-model","commit":"a9329a1d32b71894dfb4e783621934fc514645d1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/29 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":"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":"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":"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":"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":"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":"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":"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":"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 2 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-21T02:54:54.742Z","repository_id":57420482,"created_at":"2025-08-21T02:54:54.742Z","updated_at":"2025-08-21T02:54:54.742Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018724,"owners_count":26086612,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-08-01T14:01:20.197Z","updated_at":"2025-10-14T13:41:42.402Z","avatar_url":"https://github.com/magopian.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Django-inspect-model\n====================\n\n.. image:: https://secure.travis-ci.org/magopian/django-inspect-model.png?branch=master\n   :alt: Build Status\n   :target: https://travis-ci.org/magopian/django-inspect-model\n\n* Authors: Mathieu Agopian and contributors_\n* Licence: BSD\n* Compatibility: Python 2.6, Python 2.7, Python 3.3, Python 3.4, Django 1.3+\n* Requirements: none\n* Project URL: https://github.com/magopian/django-inspect-model/\n* Documentation: http://django-inspect-model.readthedocs.org/en/latest/\n\n.. _contributors: https://github.com/magopian/django-inspect-model/contributors\n\nDjango-inspect-model is a model inspection utility for Django. It allows you to\neasily list all available \"items\" on a model, and get their value.\n\nAn item is either:\n\n* a django field (standard field or relation field)\n* a standard attribute\n* a method that only takes one attribute: 'self'\n* a property\n\nThe code is generic enough to be applied on just any python object, so Django\nisn't a requirement. However, it was tailored towards Django models.\n\nInstall\n-------\n\nUsing pip:\n\n::\n\n    pip install django-inspect-model\n\n\nUsage\n-----\n\nInstantiate ``inspect_model.InspectModel`` with your model class or instance, and profit.\n\n::\n\n    \u003e\u003e\u003e from django.contrib.comments.models import Comment\n    \u003e\u003e\u003e from inspect_model import InspectModel\n    \u003e\u003e\u003e im = InspectModel(Comment)\n    \u003e\u003e\u003e im.fields\n    ['comment', 'id', 'ip_address', 'is_public', 'is_removed', 'object_pk',\n    'submit_date', 'user_email', 'user_name', 'user_url']\n    \u003e\u003e\u003e im.relation_fields\n    ['content_type', 'site', 'user']\n    \u003e\u003e\u003e im.many_fields\n    ['flags']\n    \u003e\u003e\u003e im.attributes\n    []\n    \u003e\u003e\u003e im.methods\n    ['get_as_text', 'get_content_object_url']\n    \u003e\u003e\u003e im.properties\n    ['email', 'name', 'pk', 'url', 'userinfo']\n    \u003e\u003e\u003e im.items\n    ['comment', 'content_type', 'email', 'flags', 'get_as_text',\n    'get_content_object_url', u'id', 'ip_address', 'is_public', 'is_removed',\n    'name', 'object_pk', 'pk', 'site', 'submit_date', 'url', 'user',\n    'user_email', 'user_name', 'user_url', 'userinfo']\n\nHacking\n=======\n\nSetup your environment:\n\n::\n\n    git clone https://github.com/magopian/django-inspect-model.git\n    cd django-inspect-model\n\nHack and run the tests using `Tox \u003chttps://pypi.python.org/pypi/tox\u003e`_ to test\non all the supported python and Django versions:\n\n::\n\n    make test\n\nTo build the docs:\n\n::\n\n    make docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagopian%2Fdjango-inspect-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagopian%2Fdjango-inspect-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagopian%2Fdjango-inspect-model/lists"}