{"id":37737361,"url":"https://github.com/mislavcimpersak/jsonapi-orm","last_synced_at":"2026-01-16T14:02:23.459Z","repository":{"id":30978644,"uuid":"126554809","full_name":"mislavcimpersak/jsonapi-orm","owner":"mislavcimpersak","description":"Quick and dirty ORM that maps JSON:API responses to Python object attributes.","archived":false,"fork":false,"pushed_at":"2022-12-26T20:36:28.000Z","size":42,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T15:20:57.840Z","etag":null,"topics":["json-api","jsonapi","orm","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mislavcimpersak.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":"2018-03-24T01:23:37.000Z","updated_at":"2021-04-26T07:43:09.000Z","dependencies_parsed_at":"2023-01-14T18:05:36.950Z","dependency_job_id":null,"html_url":"https://github.com/mislavcimpersak/jsonapi-orm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mislavcimpersak/jsonapi-orm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislavcimpersak%2Fjsonapi-orm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislavcimpersak%2Fjsonapi-orm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislavcimpersak%2Fjsonapi-orm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislavcimpersak%2Fjsonapi-orm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mislavcimpersak","download_url":"https://codeload.github.com/mislavcimpersak/jsonapi-orm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislavcimpersak%2Fjsonapi-orm/sbom","scorecard":{"id":649712,"data":{"date":"2025-08-11","repo":{"name":"github.com/mislavcimpersak/jsonapi-orm","commit":"1c4d08fbc5a6a4af31aad164926942388cfc1480"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 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":"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":"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":"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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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-2021-437 / GHSA-5xp3-jfq3-5q8x","Warn: Project is vulnerable to: PYSEC-2020-173 / GHSA-gpvv-69j7-gwj8","Warn: Project is vulnerable to: PYSEC-2023-228 / GHSA-mq26-g339-26xf","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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 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-21T13:11:24.266Z","repository_id":30978644,"created_at":"2025-08-21T13:11:24.266Z","updated_at":"2025-08-21T13:11:24.266Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["json-api","jsonapi","orm","python","python3"],"created_at":"2026-01-16T14:02:23.328Z","updated_at":"2026-01-16T14:02:23.452Z","avatar_url":"https://github.com/mislavcimpersak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"============\nJSON:API ORM\n============\n\n\n.. image:: https://badge.fury.io/py/jsonapi-orm.svg\n    :target: https://badge.fury.io/py/jsonapi-orm\n    :alt: PyPI\n\n.. image:: https://circleci.com/gh/mislavcimpersak/jsonapi-orm.svg?style=svg\n    :target: https://circleci.com/gh/mislavcimpersak/jsonapi-orm\n    :alt: CircleCI\n\n.. image:: https://coveralls.io/repos/github/mislavcimpersak/jsonapi-orm/badge.svg?branch=master\n    :target: https://coveralls.io/github/mislavcimpersak/jsonapi-orm?branch=master\n    :alt: Coveralls\n\n.. image:: https://readthedocs.org/projects/jsonapi-orm/badge/?version=latest\n    :target: https://jsonapi-orm.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n\n\nQuick and dirty ORM that maps JSON:API responses to object attributes.\n\n\n* Free software: BSD license\n* Documentation: https://jsonapi-orm.readthedocs.io.\n* Requirements: Python 3.5+\n\n\nHow To\n------\n\nUse Requests_ or (if you are a masochist) Python's built-in urllib modules to make the request to your JSON:API service and from there pass the response to JSON:API ORM.\n\nSo, first install requests and this lib:\n\n.. code-block:: bash\n\n    pip install requests\n    pip install jsonapi-orm\n\nSwitch to your Python code and use the magic!\n\n.. code-block:: python\n\n    import requests\n    from jsonapi_orm import response_to_obj\n\n\n    # list of items\n    r = requests.get('https://raw.githubusercontent.com/mislavcimpersak/jsonapi-orm/master/tests/responses/example_list.json')\n    obj = response_to_obj(r.json())\n\n    print('LIST OF ITEMS:')\n    for item in obj.data:\n        print(item.title)\n        # author is defined as a relationship\n        print(item.author.twitter)\n\n\n    # single item\n    r = requests.get('https://raw.githubusercontent.com/mislavcimpersak/jsonapi-orm/master/tests/responses/example_single.json')\n    obj = response_to_obj(r.json())\n\n    print('SINGLE ITEM')\n    print(obj.data.title)\n    # author is defined as a relationship\n    print(obj.data.author.id)\n    print(obj.data.author.twitter)\n\n\nCaveats\n-------\n\n* Since Python object attribute names `have certain rules`__ like not starting with a number or not containing \"-\" char, all such attributes can be accessed using ``.get()`` method. Ie. ``obj.data.author.get('first-name')``.\n\n* If relationship is not described in more detail in the ``included`` part of the response matching fails silently.\n\n* For now, this lib does not lazily follow relationship links or anything like that. You can of course make a new request to the given link and pass that response to JSON:API ORM.\n\n* For now, there is no check if response is a valid JSON:API response. But you'll probably get that you are trying to parse an invalid response when things start to break.\n\n* And last, this lib requires Python 3.5 or newer.\n\n\n.. _Requests: http://docs.python-requests.org\n.. _rules: https://docs.python.org/3/reference/lexical_analysis.html#identifiers\n\n__ rules_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislavcimpersak%2Fjsonapi-orm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmislavcimpersak%2Fjsonapi-orm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislavcimpersak%2Fjsonapi-orm/lists"}