{"id":18760552,"url":"https://github.com/evrone/mega-copy","last_synced_at":"2026-02-14T10:03:40.290Z","repository":{"id":150920498,"uuid":"511281870","full_name":"evrone/mega-copy","owner":"evrone","description":"Automated refactoring for Python (and not only) files","archived":false,"fork":false,"pushed_at":"2023-06-09T12:03:51.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T16:22:13.649Z","etag":null,"topics":[],"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/evrone.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":"2022-07-06T20:25:07.000Z","updated_at":"2025-10-15T20:11:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"621848d2-fcd8-4abc-aba1-73df2c3900bf","html_url":"https://github.com/evrone/mega-copy","commit_stats":null,"previous_names":["evrone/mega-copy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evrone/mega-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fmega-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fmega-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fmega-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fmega-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evrone","download_url":"https://codeload.github.com/evrone/mega-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evrone%2Fmega-copy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29442334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"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":[],"created_at":"2024-11-07T18:13:08.637Z","updated_at":"2026-02-14T10:03:40.286Z","avatar_url":"https://github.com/evrone.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mega-copy\n\nThis is a tool that helps to edit/refactor code in bulk. Useful when developing few similar features in your system\n\nIt works with:\n\n1. Python files in \"special\" (Python-language specific) mode\n2. \"Other\" files in \"simple\" (format-agnostic) mode\n\n# Installation \u0026 Usage\n\n1. Clone this repo:\n\n```\ngit clone https://github.com/andrewboltachev/mega-copy.git\n```\n\n2. Create virtual environment:\n\n```\nmkvirtualenv mega-copy # (or use venv)\npip install -r requirements.txt\n```\n\nand a helper script to run the tool (e.g. `~/bin/mega-copy.sh`):\n\n```bash\n/home/andrey/.virtualenvs/mega-copy/bin/python /home/myuser/mega-copy/mega-copy.py $@\n```\n\n2. Suppose you want to refactor your Python code, replacing something called \"property sale\" to something else named \"sales order\". Run:\n\n```\n\u003e mega.copy.sh pyshow property-sale sales-order\n```\n\nThe tool will generate the following \"replace map\" (taking into account all possible spellings):\n\n```python\n{\n    \"propertysale\": \"salesorder\",\n    \"property sale\": \"sales order\",\n    \"property-sale\": \"sales-order\",\n    \"property_sale\": \"sales_order\",\n    \"PROPERTYSALE\": \"SALESORDER\",\n    \"PROPERTY SALE\": \"SALES ORDER\",\n    \"PROPERTY-SALE\": \"SALES-ORDER\",\n    \"PROPERTY_SALE\": \"SALES_ORDER\",\n    \"PropertySale\": \"SalesOrder\",\n    \"Property Sale\": \"Sales Order\",\n    \"Property-Sale\": \"Sales-Order\",\n    \"Property_Sale\": \"Sales_Order\",\n    \"Propertysale\": \"Salesorder\",\n    \"Property sale\": \"Sales order\",\n    \"Property-sale\": \"Sales-order\",\n    \"Property_sale\": \"Sales_order\",\n    \"propertySale\": \"salesOrder\",\n    \"property Sale\": \"sales Order\",\n    \"property-Sale\": \"sales-Order\",\n    \"property_Sale\": \"sales_Order\"\n}\n```\n\nand below **show** all **Python** code expressions affected by it in code (your current directory)\n\nInstead of `pyshow` you can then use another command — `pyren`, to rename all occurencies in the code in-place\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Sponsors\n\nVisit [Evrone](https://evrone.com/) website to get more information about the [projects](https://evrone.com/cases) build.\n\n\u003ca href=\"https://evrone.com/?utm_source=postcss-px-to-viewport\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/417688/34437029-dbfe4ee6-ecab-11e7-9d80-2b274b4149b3.png\"\n       alt=\"Sponsored by Evrone\" width=\"231\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevrone%2Fmega-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevrone%2Fmega-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevrone%2Fmega-copy/lists"}