{"id":13467646,"url":"https://github.com/zestyping/q","last_synced_at":"2025-05-14T20:04:11.410Z","repository":{"id":7513040,"uuid":"8863349","full_name":"zestyping/q","owner":"zestyping","description":"Quick and dirty debugging output for tired programmers. ⛺","archived":false,"fork":false,"pushed_at":"2023-12-18T23:10:02.000Z","size":87,"stargazers_count":1301,"open_issues_count":19,"forks_count":63,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-30T10:04:26.258Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zestyping.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-03-18T20:22:52.000Z","updated_at":"2025-03-24T04:43:56.000Z","dependencies_parsed_at":"2023-11-24T00:29:03.098Z","dependency_job_id":"7d2787b7-121f-4f1c-96ec-7ea80b3c6e8a","html_url":"https://github.com/zestyping/q","commit_stats":{"total_commits":80,"total_committers":20,"mean_commits":4.0,"dds":0.5875,"last_synced_commit":"cd9d392e2f72c114414d73d79b483dd463bcb55d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestyping%2Fq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestyping%2Fq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestyping%2Fq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zestyping%2Fq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zestyping","download_url":"https://codeload.github.com/zestyping/q/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471516,"owners_count":20944158,"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-07-31T15:00:58.841Z","updated_at":"2025-04-06T11:05:35.207Z","avatar_url":"https://github.com/zestyping.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# q\n\n[![Code Shelter](https://www.codeshelter.co/static/badges/badge-flat.svg)](https://www.codeshelter.co/)\n\nQuick and dirty debugging output for tired programmers.\n\nFor a short demo, watch the [Lightning Talk](http://pyvideo.org/video/1858/sunday-evening-lightning-talks#t=25m15s) from PyCon 2013.\n\nInstall q with `pip install -U q`.\n\nAll output goes to `/tmp/q` (or on Windows, to `$HOME/tmp/q`).  You can\nwatch the output with this shell command while your program is running:\n\n    tail -f /tmp/q\n\nTo print the value of foo, insert this into your program:\n\n    import q; q(foo)\n\nTo print the value of something in the middle of an expression, you can\nwrap it with `q()`.  You can also insert `q/` or `q|` into the expression;\n`q/` binds tightly whereas `q|` binds loosely.  For example, given this\nstatement:\n\n    file.write(prefix + (sep or '').join(items))\n\nyou can print out various values without using any temporary variables:\n\n    file.write(prefix + q(sep or '').join(items))  # prints (sep or '')\n    file.write(q/prefix + (sep or '').join(items))  # prints prefix\n    file.write(q|prefix + (sep or '').join(items))  # prints the arg to write\n\nTo trace a function (showing its arguments, return value, and running time),\ninsert this above the def:\n\n    import q\n    @q\n\nTo start an interactive console at any point in your code, call q.d():\n\n    import q; q.d()\n\nBy default the output of q is not truncated, but it can be truncated by calling:\n\n    q.short\n\nTruncation can be reversed by:\n\n```python\nq.long # Truncates output to 1,000,000\nq.long = 2000000 # Truncates output to 2,000,000\n```\n# Other projects inspired by this one\n\n* [`q` for golang](https://github.com/y0ssar1an/q)\n* [`qq` for elixir](https://github.com/mandarvaze/q)\n* [`ic` for Python](https://github.com/gruns/icecream) - Similar library for Python, inspired by `q`.\n\nThe following\n[Lightning Talk](http://pyvideo.org/video/1858/sunday-evening-lightning-talks#t=25m15s)\nshows how powerful using q can be.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzestyping%2Fq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzestyping%2Fq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzestyping%2Fq/lists"}