Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

RaspberryPiFoundation/turtle

Repository files navigation

Turtle

THIS REPOSITORY HAS BEEN ARCHIVED AND IS NOW READ-ONLY

This project is no longer actively maintained. No new issues or pull requests will be accepted here.

The project was archived on 2026-04-29 after not receiving new commits for several years.


An implementation of Python's native turtle module that works with Pyodide.

Instead of rendering to a tkinter window, this package outputs a Python dict that represents an SVG which can then be added to the DOM. This allows the package to be used either natively on the web page or within a web worker where the JavaScript document is not available.

Demo

Run ./bin/server then visit http://localhost:8000/demo-pyodide.html to see a demo of the turtle package. Notice that the output at the bottom is an SVG.

Limitations

This turtle package does not support user interaction, such as hover or click events. Search __init__.py for 'not implemented' and svg.py for 'NotImplemented' to see which methods are not implemented.

License

This package was adapted from Basthon's turtle package. It therefore has the same GPLv3 license.

See the banner at the top of __init__.py.

About

An implementation of Python's native turtle package that works with Pyodide.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors