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.0.1.tar.gz (9.4 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.0.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superturtle-1.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0

File hashes

Hashes for superturtle-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4e9bda4c038722fea694b72eb42f8e190493a17b27576f70221a65beae5d4937
MD5 66d90127a3040ae7070368eff2df42d9
BLAKE2b-256 8a04d8723e91a9e51e7cf5ea8c36f15eba24ec15aaad3eb524e4b5c7ed601905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: superturtle-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0

File hashes

Hashes for superturtle-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1abc4b615487d04945b9c4814c566ea60d120b55d7c3f4872b45c4525aa793d
MD5 9db90f915505989415ce18b2874fae04
BLAKE2b-256 8fd491b89ee57b9c4831b0a78ac270859605cf3e8aa2bb141d8626732288141d

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