{"id":23440767,"url":"https://github.com/dabapps/django-readers-debug","last_synced_at":"2025-04-13T09:13:01.715Z","repository":{"id":45565798,"uuid":"359764334","full_name":"dabapps/django-readers-debug","owner":"dabapps","description":"A pretty-printer for debugging django-readers queryset functions","archived":false,"fork":false,"pushed_at":"2023-07-17T14:07:13.000Z","size":24,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-13T09:12:56.642Z","etag":null,"topics":[],"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-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dabapps.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2021-04-20T09:50:43.000Z","updated_at":"2024-10-17T04:37:59.000Z","dependencies_parsed_at":"2023-02-12T13:00:53.394Z","dependency_job_id":null,"html_url":"https://github.com/dabapps/django-readers-debug","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabapps%2Fdjango-readers-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabapps%2Fdjango-readers-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabapps%2Fdjango-readers-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabapps%2Fdjango-readers-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dabapps","download_url":"https://codeload.github.com/dabapps/django-readers-debug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688563,"owners_count":21145766,"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","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-12-23T16:18:34.044Z","updated_at":"2025-04-13T09:13:01.691Z","avatar_url":"https://github.com/dabapps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-readers-debug\n====================\n\n**STATUS: EXPERIMENTAL**\n\n**A pretty-printer for debugging [django-readers](https://github.com/dabapps/django-readers) queryset functions.**\n\n### Installation\n\nInstall from PyPI\n\n    pip install django-readers-debug\n\n## Usage\n\nWithout `django-readers-debug`:\n\n```pycon\n\u003e\u003e\u003e from django_readers import qs\n\u003e\u003e\u003e prepare = qs.pipe(\n... qs.include_fields(\"name\"),\n... qs.auto_prefetch_relationship(\"author\", qs.include_fields(\"name\")),\n... qs.filter(publication_year__gte=2021),\n... )\n\u003e\u003e\u003e print(prepare)\n\u003cfunction pipe.\u003clocals\u003e.piped at 0x10ce2a670\u003e\n\u003e\u003e\u003e\n```\n\nWith `django-readers-debug`:\n\n```pycon\n\u003e\u003e\u003e from django_readers_debug import debug_print\n\u003e\u003e\u003e debug_print(prepare)\nqs.pipe(\n    qs.include_fields(\"name\"),\n    qs.auto_prefetch_relationship(\n        \"author\", prepare_related_queryset=qs.include_fields(\"name\")\n    ),\n    qs.filter(publication_year__gte=2021),\n)\n```\n\n## Known limitations\n\nBest-effort printing of `Q` objects and `Prefetch` objects only.\n\n## Code of conduct\n\nFor guidelines regarding the code of conduct when contributing to this repository please review [https://www.dabapps.com/open-source/code-of-conduct/](https://www.dabapps.com/open-source/code-of-conduct/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabapps%2Fdjango-readers-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdabapps%2Fdjango-readers-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabapps%2Fdjango-readers-debug/lists"}