{"id":19635601,"url":"https://github.com/tmck-code/pp","last_synced_at":"2025-02-26T21:42:06.708Z","repository":{"id":262071035,"uuid":"886042136","full_name":"tmck-code/pp","owner":"tmck-code","description":"terminal/cli/python helpers for colour and pretty-printing","archived":false,"fork":false,"pushed_at":"2024-12-25T14:24:17.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T16:35:09.124Z","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-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmck-code.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":"2024-11-10T03:10:12.000Z","updated_at":"2024-12-25T14:24:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"5601c297-4b8a-46da-b6c7-4f31d5e0145d","html_url":"https://github.com/tmck-code/pp","commit_stats":null,"previous_names":["tmck-code/pp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmck-code","download_url":"https://codeload.github.com/tmck-code/pp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941484,"owners_count":19882062,"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-11-11T12:26:00.252Z","updated_at":"2025-02-26T21:42:06.678Z","avatar_url":"https://github.com/tmck-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pp\nterminal/cli/python helpers for colour and pretty-printing\n\n- [pp](#pp)\n  - [`bench`](#bench)\n  - [`pp`](#pp-1)\n\n---\n\n## `bench`\n\n```python\nfrom pp import bench\n\nbench.bench(\n    tests=[\n        (\n            (range(2),), # args\n            {},          # kwargs\n            [0,1],       # expected\n        )\n    ],\n    func_groups=[ [list] ],\n    n=100\n)\n```\n\n## `pp`\n\n```python\nfrom pp import pp\n\n# Pretty-print a dict\npp.ppd([[1,2,3], [4,5,6], [7,8,9]])\n# [\n#   [1, 2, 3],\n#   [4, 5, 6],\n#   [7, 8, 9]\n# ]\n\n# Pretty-print a JSON string\npp.ppj('{\"a\": 1, \"b\": 2}')\n# {\n#   \"a\": 1,\n#   \"b\": 2\n# }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmck-code%2Fpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmck-code%2Fpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmck-code%2Fpp/lists"}