{"id":23382125,"url":"https://github.com/chiefenne/scale_gcode","last_synced_at":"2025-07-27T20:04:45.022Z","repository":{"id":250535487,"uuid":"834736428","full_name":"chiefenne/SCALE_GCODE","owner":"chiefenne","description":"Scale the G-Code given in the input file in x, y, z axis. Useful for part duplication in different sizes.","archived":false,"fork":false,"pushed_at":"2025-02-05T11:57:45.000Z","size":5720,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T08:49:12.940Z","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/chiefenne.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-07-28T07:47:43.000Z","updated_at":"2025-02-05T11:57:49.000Z","dependencies_parsed_at":"2025-02-05T12:34:54.256Z","dependency_job_id":"6caf15f3-9976-471e-ad8d-bc06d7ee00c4","html_url":"https://github.com/chiefenne/SCALE_GCODE","commit_stats":null,"previous_names":["chiefenne/scale_gcode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chiefenne/SCALE_GCODE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefenne%2FSCALE_GCODE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefenne%2FSCALE_GCODE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefenne%2FSCALE_GCODE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefenne%2FSCALE_GCODE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chiefenne","download_url":"https://codeload.github.com/chiefenne/SCALE_GCODE/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefenne%2FSCALE_GCODE/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417664,"owners_count":24083839,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-12-21T21:17:22.930Z","updated_at":"2025-07-27T20:04:44.999Z","avatar_url":"https://github.com/chiefenne.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# G-code Scaling Script\n\nThis Python script scales the X, Y, and Z coordinates in a G-code file by specified factors and exports the scaled G-code to a new file.\n\n## Features\n\n- Scale G-code coordinates for X, Y, and Z axes independently. (also scales I, J, K respectively for arc centers)\n- A default output file name is derived based on the input file and scaling factors.\n- Optionally an arbitrary output file name can be specified.\n\n## Requirements\n\n- Python 3.x\n\n## Usage\nScale an input G-code file with default scaling factors and generate a default output file name.\n\n```sh\npython scale_gcode.py input.gcode -x 1.5 -y 1.2 -z 1.0\n```\n\n```sh\npython scale_gcode.py another_input.nc -x 0.5 -y 0.5 -o scaled.nc\n```\n\n### Command Line Arguments\n\n- `input_file`: Path to the input G-code file (required).\n- `-o`: Path to the output scaled G-code file (optional). If not provided, a default filename will be generated.\n- `-x`: Scaling factor for X axis. Default is 1.0.\n- `-y`: Scaling factor for Y axis. Default is 1.0.\n- `-z`: Scaling factor for Z axis. Default is 1.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiefenne%2Fscale_gcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchiefenne%2Fscale_gcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiefenne%2Fscale_gcode/lists"}