{"id":42923457,"url":"https://github.com/fps/unnest","last_synced_at":"2026-01-30T18:04:12.436Z","repository":{"id":138346995,"uuid":"583283","full_name":"fps/unnest","owner":"fps","description":"A simple python tool to replace brackets with patterns indicating the nesting depth","archived":false,"fork":false,"pushed_at":"2010-03-28T12:58:13.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-11T07:42:21.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fps.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-03-28T12:41:58.000Z","updated_at":"2023-03-11T07:45:55.365Z","dependencies_parsed_at":"2023-03-11T07:45:55.187Z","dependency_job_id":null,"html_url":"https://github.com/fps/unnest","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/fps/unnest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fps%2Funnest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fps%2Funnest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fps%2Funnest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fps%2Funnest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fps","download_url":"https://codeload.github.com/fps/unnest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fps%2Funnest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-01-30T18:03:32.356Z","updated_at":"2026-01-30T18:04:12.424Z","avatar_url":"https://github.com/fps.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"- A simple tool to do something with nested brackets in text files :D\n\n- Requirements:\n\nPython\n\n- Installation:\n\ncopy the unnest script to somewhere in your path\n\n- Usage examples\n\nunnest -s \"`cat test.txt`\" -r \"[\\$level\\1]\"\n\nthis transforms this (test.txt):\n\n---- cut here\n\nbla (\n\tblub (\n\n\t)\n\tblablub (\n\t\tfoo (\n\t\t)\n\t)\n)\n\nblubber\n\n---- end cut here\n\ninto this\":\n\n---- cut here\n\nbla [1(]\n\tblub [2(]\n\n\t[2)]\n\tblablub [2(]\n\t\tfoo [3(]\n\t\t[3)]\n\t[2)]\n[1)]\n\nblubber\n\n---- end cut here\n\nThe previous example used the default regexp for opening and \nclosing brackets.. Here's an example with curly brackets:\n\nunnest -s \"`cat test2.txt`\" -r \"[\\$level\\1]\" -o '{' -c '}'\n\nthis transforms this (test2.txt):\n\n---- cut here\n\nbla {\n\tblub {\n\n\t}\n\tblablub {\n\t\tfoo {\n\t\t}\n\t}\n}\n\nblubber\n\n---- end cut here\n\ninto this:\n\n---- cut here\n\nbla [1{]\n\tblub [2{]\n\n\t[2}]\n\tblablub [2{]\n\t\tfoo [3{]\n\t\t[3}]\n\t[2}]\n[1}]\n\nblubber\n\n---- end cut here\n\n- Author:\n\nFlorian Paul Schmidt (mista.tapas@gmx.net)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffps%2Funnest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffps%2Funnest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffps%2Funnest/lists"}