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.1.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.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superturtle-1.2.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for superturtle-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a2bc91d985ec6ff4c54804c96c4d11c24947339f1f1943524be71da2b8408aaa
MD5 08784056734f1c247e0986b692cd5cd3
BLAKE2b-256 6d7704c7713f194dbe51867ceb72956f6bea1261c727fa72d410cbcdc08452f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: superturtle-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for superturtle-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42f804716bc51460e2ddef5eaa71f7c934605858e3c8710969869e1471726fe6
MD5 438b30ea348970a3a39dd467150ee19c
BLAKE2b-256 5038bb16dcecdf4ae5f65d45c4f7890b0f3c00d0fcb62e6412e5d52032671e9d

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