{"id":16814691,"url":"https://github.com/findus23/brachiograph-utils","last_synced_at":"2025-04-11T01:52:59.842Z","repository":{"id":76007408,"uuid":"219588436","full_name":"Findus23/BrachioGraph-Utils","owner":"Findus23","description":"A collection of random scripts for generating plots","archived":false,"fork":false,"pushed_at":"2019-11-16T14:01:09.000Z","size":38,"stargazers_count":14,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T01:52:47.650Z","etag":null,"topics":["plotting","python","travelling-salesman-problem"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Findus23.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-04T20:16:16.000Z","updated_at":"2023-04-23T15:11:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"81ce9edc-77e3-4e23-96e1-8775fbcf6014","html_url":"https://github.com/Findus23/BrachioGraph-Utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Findus23%2FBrachioGraph-Utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Findus23%2FBrachioGraph-Utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Findus23%2FBrachioGraph-Utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Findus23%2FBrachioGraph-Utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Findus23","download_url":"https://codeload.github.com/Findus23/BrachioGraph-Utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328108,"owners_count":21085258,"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":["plotting","python","travelling-salesman-problem"],"created_at":"2024-10-13T10:30:09.984Z","updated_at":"2025-04-11T01:52:59.836Z","avatar_url":"https://github.com/Findus23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BrachioGraph Utils\n\nThis is a random collection of scripts that allow creating nice plots for the amazing [BrachioGraph](https://github.com/evildmp/BrachioGraph) pen plotter.\n\nIt allows importing simple SVGs and G-code, minimizing travel distance and previewing the plot.\n\n## Installation\n\n```bash\ngit clone https://github.com/Findus23/BrachioGraph-Utils.git\ncd BrachioGraph-Utils\npip install -r requirements.txt\npip install -e .\n```\n\n### Usage\n\n```bash\n# convert SVG\nbrachiograph-utils convert svg example.svg out.json\n\n# combine two scripts by piping the stdout to the stdin\nbrachiograph-utils convert svg example.svg - | brachiograph-utils optimizers order - out.json\n\n# further minimize the traveling distance\nbrachiograph-utils optimizers randomized-optimizer out.json out.json\n\n# show turtle preview\nbrachiograph-utils display out.json -s 5 -x -200 -y 300\n\n# every command and category has a help text\nbrachiograph-utils --help\n```\n\n### SVG tips\n\n\nAs the importer is pretty simple, there are some limitations:\n- only paths are supported\n    - so use Inkscape to convert everything else (e.g. Text, Circles, etc.) to paths\n- only straight lines between nodes are allowed (so no Bezier Curves)\n    - use `Extensions -\u003e Modify Path -\u003e Flatten Beziers` to make curves cornered\n- paths inside of `\u003cdefs\u003e\u003c/defs\u003e` are not ignored\n    - if your plot contains squares that are not visible in the SVG, you might have them defined in the `\u003cdefs\u003e\u003c/defs\u003e` section of the SVG. Simply remove them in a text editor if they are not needed.\n\n\n![example plot](example.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindus23%2Fbrachiograph-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindus23%2Fbrachiograph-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindus23%2Fbrachiograph-utils/lists"}