{"id":34085271,"url":"https://github.com/adamhadani/prettyalgo","last_synced_at":"2026-03-11T12:16:28.958Z","repository":{"id":269361434,"uuid":"907107431","full_name":"adamhadani/prettyalgo","owner":"adamhadani","description":"Pretty print for programming puzzles.","archived":false,"fork":false,"pushed_at":"2024-12-23T03:10:49.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-16T15:40:54.164Z","etag":null,"topics":["algorithms","pretty-print","programming-contests","programming-puzzles"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamhadani.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-22T20:37:34.000Z","updated_at":"2024-12-23T03:01:13.000Z","dependencies_parsed_at":"2025-12-14T13:01:30.241Z","dependency_job_id":null,"html_url":"https://github.com/adamhadani/prettyalgo","commit_stats":null,"previous_names":["adamhadani/prettyalgo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/adamhadani/prettyalgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhadani%2Fprettyalgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhadani%2Fprettyalgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhadani%2Fprettyalgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhadani%2Fprettyalgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamhadani","download_url":"https://codeload.github.com/adamhadani/prettyalgo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhadani%2Fprettyalgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30380935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["algorithms","pretty-print","programming-contests","programming-puzzles"],"created_at":"2025-12-14T13:01:23.051Z","updated_at":"2026-03-11T12:16:28.940Z","avatar_url":"https://github.com/adamhadani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://dl.circleci.com/status-badge/img/gh/adamhadani/prettyalgo/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/adamhadani/prettyalgo/tree/main)\n\n# :sparkles: prettyalgo\n\nPretty print for programming puzzles.\n\nHighlights:\n\n* Pretty print data structures and algorithms, especially sequence-oriented ones involving arrays such as lists, tuples and strs, and iterations, in the vein of leetcode and similar programming puzzles.\n* Extensive configurability for various display styles and usage modes, such as console-interactive, animated, and more.\n* Extensive use of [pre-commit](https://https://pre-commit.com/) hooks and unit-tests coverage to ensure correct functionality. Programming puzzles are hard enough to solve and debug, we shouldn't make it more error-prone by trying to use this library!\n\n\n## Getting Started\n\nTo install from PyPI, use pip:\n\n    pip install prettyalgo\n\n\nSee the [examples](./examples) sub-directory for examples showing the usage of the library.\n\nTypical output when using on the terminal in interactive mode would like:\n\n```\nRemove Duplicates From Sorted Array 2\n-------------------------------------\nlen(lst):          9\ni                  6\nj                  4\ncount              4\n\n+-----------------------------------------------------------------------------------------+\n|         |         |         |         |         |         |         |         |         |\n|    0    |    0    |    1    |    1    |    1    |    1    |    2    |    3    |    3    |\n|         |         |         |         |         |         |         |         |         |\n+-----------------------------------------------------------------------------------------+\n                                                                 ^ i=6\n                                             ^ j=4\n\nPress Enter to continue...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhadani%2Fprettyalgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamhadani%2Fprettyalgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhadani%2Fprettyalgo/lists"}