{"id":15444220,"url":"https://github.com/jaimebuelta/replace","last_synced_at":"2025-03-28T08:13:10.109Z","repository":{"id":66793436,"uuid":"72152344","full_name":"jaimebuelta/replace","owner":"jaimebuelta","description":"Replace text in directories","archived":false,"fork":false,"pushed_at":"2016-10-27T22:28:15.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T14:10:37.982Z","etag":null,"topics":["cli","python","text-replace"],"latest_commit_sha":null,"homepage":null,"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/jaimebuelta.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":"2016-10-27T22:12:29.000Z","updated_at":"2023-02-15T21:21:10.000Z","dependencies_parsed_at":"2023-04-27T16:01:33.529Z","dependency_job_id":null,"html_url":"https://github.com/jaimebuelta/replace","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"a8cf40563f158e31d11a2c5542013a62df96c742"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Freplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Freplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Freplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Freplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaimebuelta","download_url":"https://codeload.github.com/jaimebuelta/replace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991585,"owners_count":20706129,"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":["cli","python","text-replace"],"created_at":"2024-10-01T19:39:52.453Z","updated_at":"2025-03-28T08:13:10.081Z","avatar_url":"https://github.com/jaimebuelta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replace\n\nReplace text in directories\n\nA command line tool to replace text easily and recursively in directories\n\n\nUsage\n-----\n\n    python replace.py [-h] [dir] input_file output_file\n\nIt replaces the content of input_file with the content of output_file, \nrespecting the indentation level in all the files in `dir`.\n\nFor example, for\n\n*input_file*\n\n    self.assertRaises(Error, call, param1, param2)\n\n*output_file*\n\n    with self.assertRaises():\n        call(param1, param2)\n\nit will replace occurrences of input for output in all files\n\n\nLimitations\n-----------\n- Works only with full lines\n- Very early development\n- For more syntax aware refactors, take a look at undebt (http://undebt.readthedocs.io/en/latest/)\n- Only indentation with spaces, no tabs\n\nTo Dos\n------\n- More tests\n- Properly packetize it and make a script\n- Use parse (https://github.com/r1chardj0n3s/parse) to allow better control\nover replacement, it will probably be never super awesome, but will add tons\nof flexibility\n- Maye unify the input and output files to replace\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimebuelta%2Freplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaimebuelta%2Freplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimebuelta%2Freplace/lists"}