Skip to main content

Extensions to Python's turtle

Project description

Superturtle

Superturtle provides extensions to Python's turtle module, supporting richer drawing, image export, and animation.

Installation

First, make sure ImageMagick is installed. (If you use homebrew, this can be accomplished with brew install imagemagick.) Then, Superturtle can be installed using pip or poetry.

pip install superturtle

Usage

Please see the Superturtle documentation.

Pedagogy

This module was originally developed as part of Making With Code, a constructionist introductory computer science curriculum. Perhaps the most unusual design decision is this module's heavy use of context managers. For example:

from turtle import forward
from superturtle.stroke import dots

with dots():
    forward(100)

Drawing with dots context manager

Context managers are generally not introduced early in a CS curriculum, but they fit naturally with other constructs which contextualize code blocks: loops, conditionals, and function definition. We hypothesize that introducing intuitive context managers with easy-to-visualize effects may reinforce the more abstract role of control structures, and may support students in learning to read indented Python code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superturtle-1.2.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superturtle-1.2.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file superturtle-1.2.0.tar.gz.

File metadata

  • Download URL: superturtle-1.2.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for superturtle-1.2.0.tar.gz
Algorithm Hash digest
SHA256 df28bf8888cfed4c0645dafc07ecac996a30e5efd32c2c2d63264e0a965b0aa0
MD5 f22a848fb8d3e2245736f307af9ddfe7
BLAKE2b-256 44d19cf8affa3d54a63cf0208002c41cac4182e94c8b768676917a5907f93a22

See more details on using hashes here.

File details

Details for the file superturtle-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: superturtle-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for superturtle-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acc183da60a270177fcfbe6e70b41d17d7cd7f81fd5f2aea8d0f1defe9d6d5c7
MD5 269a21d94a047fe205aef281354a33bd
BLAKE2b-256 4b05755774bcc218f0fdbb052e0cb73c3f66f41e924014c94641c39bbe744c1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page