{"id":13650659,"url":"https://github.com/fogleman/axi","last_synced_at":"2025-05-08T20:55:47.205Z","repository":{"id":119771135,"uuid":"77971895","full_name":"fogleman/axi","owner":"fogleman","description":"Library for working with the AxiDraw v3 pen plotter.","archived":false,"fork":false,"pushed_at":"2020-02-29T10:42:43.000Z","size":1146,"stargazers_count":267,"open_issues_count":14,"forks_count":40,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-17T05:17:04.976Z","etag":null,"topics":[],"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/fogleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2017-01-04T02:19:11.000Z","updated_at":"2024-04-08T11:20:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"74504c6c-9fe5-4340-b260-5a5a1ffc0ad0","html_url":"https://github.com/fogleman/axi","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/fogleman%2Faxi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Faxi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Faxi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Faxi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogleman","download_url":"https://codeload.github.com/fogleman/axi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149404,"owners_count":21861718,"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":[],"created_at":"2024-08-02T02:00:39.036Z","updated_at":"2025-05-08T20:55:47.187Z","avatar_url":"https://github.com/fogleman.png","language":"Python","readme":"# axi\n\nUnofficial Python library for working with the [AxiDraw v3](http://www.axidraw.com/) pen plotter.\n\n### Features\n\n- control AxiDraw v3 directly from Python with a simple API\n- convenient command-line utility\n- constant acceleration (trapezoidal velocity) motion planning\n- path drawing order optimization\n- drawing transformations\n  - translate, scale, rotate\n  - scale and/or rotate to fit page\n  - move to origin or center of page\n- preview drawing (render to png)\n- [turtle graphics](https://en.wikipedia.org/wiki/Turtle_graphics)\n\n### Command Line Utility\n\nOnce `pip install'd`, you can run the axi command-line utility. Here are the supported commands:\n\n```\naxi on         # enable the motors\naxi off        # disable the motors\naxi up         # move the pen up\naxi down       # move the pen down\naxi zero       # set current position as (0, 0)\naxi home       # return to the (0, 0) position\naxi move DX DY # move (DX, DY) inches, relative\naxi goto X Y   # move to the (X, Y) absolute position\n```\n\n### TODO\n\n- primitives\n  - circles, arcs, beziers\n- svg support\n\n### Installation\n\n`axi` is not yet available on PyPI, so installation works like this:\n\n    git clone https://github.com/fogleman/axi.git\n    cd axi\n    pip install -e .\n\nOf course, installing in a `virtualenv` is always a good idea.\n\nThen you can try the examples...\n\n    python examples/dragon_curve.py\n\n### Example\n\nUse the turtle to draw a dragon curve, filling a standard US letter page.\n\n```python\nimport axi\n\ndef main(iteration):\n    turtle = axi.Turtle()\n    for i in range(1, 2 ** iteration):\n        turtle.forward(1)\n        if (((i \u0026 -i) \u003c\u003c 1) \u0026 i) != 0:\n            turtle.circle(-1, 90, 36)\n        else:\n            turtle.circle(1, 90, 36)\n    drawing = turtle.drawing.rotate_and_scale_to_fit(11, 8.5, step=90)\n    axi.draw(drawing)\n\nif __name__ == '__main__':\n    main(12)\n```\n","funding_links":[],"categories":["Software"],"sub_categories":["Plotter Control"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Faxi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogleman%2Faxi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Faxi/lists"}