{"id":15683988,"url":"https://github.com/donkirkby/svg-turtle","last_synced_at":"2025-07-21T17:31:37.938Z","repository":{"id":40005596,"uuid":"444617320","full_name":"donkirkby/svg-turtle","owner":"donkirkby","description":"Use the Python turtle to write SVG files","archived":false,"fork":false,"pushed_at":"2025-05-10T00:59:46.000Z","size":432,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T21:16:06.532Z","etag":null,"topics":["graphics","python","svg","turtle-graphics"],"latest_commit_sha":null,"homepage":"https://donkirkby.github.io/svg-turtle","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/donkirkby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2022-01-05T01:16:10.000Z","updated_at":"2025-06-11T15:54:28.000Z","dependencies_parsed_at":"2024-02-14T03:40:11.573Z","dependency_job_id":"c5fece23-6818-44a7-a4e2-454b19406f09","html_url":"https://github.com/donkirkby/svg-turtle","commit_stats":{"total_commits":59,"total_committers":3,"mean_commits":"19.666666666666668","dds":"0.47457627118644063","last_synced_commit":"6b5abcc10f6da23654d6c46a714107f4792fa3e6"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/donkirkby/svg-turtle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Fsvg-turtle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Fsvg-turtle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Fsvg-turtle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Fsvg-turtle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkirkby","download_url":"https://codeload.github.com/donkirkby/svg-turtle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Fsvg-turtle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265548861,"owners_count":23786298,"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":["graphics","python","svg","turtle-graphics"],"created_at":"2024-10-03T17:09:25.928Z","updated_at":"2025-07-21T17:31:37.908Z","avatar_url":"https://github.com/donkirkby.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SaVaGe Turtle [![Build Badge]][build] [![Coverage Badge]][codecov] [![Downloads Badge]][downloads] [![PyPI Badge]][pypi] [![Supported Python versions]][pypi]\n[Supported Python versions]: https://img.shields.io/pypi/pyversions/svg-turtle.svg\n\n### Use the Python turtle to write SVG files\n\n[Build Badge]: https://github.com/donkirkby/svg-turtle/actions/workflows/build.yml/badge.svg?branch=main\n[build]: https://github.com/donkirkby/svg-turtle/actions\n[Coverage Badge]: https://codecov.io/github/donkirkby/svg-turtle/coverage.svg?branch=main\n[codecov]: https://codecov.io/github/donkirkby/svg-turtle?branch=main\n[PyPI Badge]: https://badge.fury.io/py/svg-turtle.svg\n[pypi]: https://pypi.org/project/svg-turtle/\n[Downloads Badge]: https://static.pepy.tech/badge/svg-turtle/month\n[downloads]: https://pepy.tech/project/svg-turtle\n\nIf you're using the Python turtle module to teach students, or you just like\nusing the turtle module yourself, this library can save the images from a turtle\nscript as SVG files. Experiment with your turtle code using the regular turtle\nor the [Live Coding in Python] plugin for PyCharm, then pass an `SvgTurtle` to\nthe same code, and save it as an SVG file. If you want to produce other file\nformats, use [svglib] to convert the SVG to PDF, PNG, GIF, JPG, TIFF, and PCT,\namong others.\n\n[Live Coding in Python]: https://donkirkby.github.io/live-py-plugin/\n[svglib]: https://pypi.org/project/svglib/#examples\n\n## Installing\nInstall it with `pip install svg_turtle`. If you haven't installed Python\npackages before, read Brett Cannon's [quick-and-dirty guide].\n\n[quick-and-dirty guide]: https://snarky.ca/a-quick-and-dirty-guide-on-how-to-install-packages-for-python/\n\n## Drawing\nOnce it's installed, create an `SvgTurtle`, telling it how big to make the SVG\nfile. Then give it some turtle commands, and save the file.\n\n    from svg_turtle import SvgTurtle\n    \n    t = SvgTurtle(500, 500)\n    t.forward(200)\n    t.dot(10)\n    t.save_as('example.svg')\n\n## IPythonTurtle\nTo use SvgTurtle with IPython integration, create an instance of the\n`IPythonTurtle` class. It exposes the same interface as `SvgTurtle`. It implements\nboth display on implicit return, and explicit display via the `show()` method.\n\n    from svg_turtle import IPythonTurtle\n    \n    t = IPythonTurtle(500, 500)\n    t.forward(200)\n    t.show()                    # explicit display\n    t.dot(10)\n    t                           # display via implicit return\n\n## More Information\nIf you'd like to help out with the project, see the `CONTRIBUTING.md` file in\nthe source code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkirkby%2Fsvg-turtle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkirkby%2Fsvg-turtle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkirkby%2Fsvg-turtle/lists"}