Skip to main content

turtleBeads

A library that provides some convenient functions for drawing shapes using Python's built-in turtle graphics. These shapes are drawn centered on the cursor, and are thus analogous to beads on a string.

It also provides a few different convenience functions like leap and hop which help move around without drawing, and augments the built-in turtle functions causing them to print out a description of what they draw, with functions describeAs and endDescription allowing for custom text descriptions of complex shapes.

Designed by Peter Mawhorter.

Dependencies

None.

Installing

To install from PyPI, run the following command on the command-line:

python -m pip install turtleBeads

Once it's installed, you can run the built-in examples using:

python -m turtleBeads

Documentation

See the documentation for more details on how to use it and what each function does.

Changelog

  • 1.1.3: Fixed missing half-segment in drawCircle code.
  • 1.1.2: Added better error checking for drawDot. Flipped order of changelog.
  • 1.1.1: Improved printed output for dots.
  • 1.1.0:
    • Introduced font and fixedWidthFont functions to allow font selection for drawing text.
    • Introduced drawTextInBox and fontSizeForTextInBox for auto-sizing of fixed-width text.
    • Introduced drawPath for drawing paths possibly with arrows on the ends.
    • Fixed a bug where using describeAs and then drawText would result in a RecursionError.
    • Made describeAs/endDescription maintain a stack of descriptions so that sub-objects trying to describe themselves doesn't end the description of a complex object (and their descriptions are suppressed).
  • <1.1.0: Didn't keep a changelog.

Release files for turtleBeads 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for turtleBeads 1.1.3
File Size Uploaded
turtlebeads-1.1.3.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for turtleBeads 1.1.3
File Interpreter ABI Platform
turtleBeads-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 28.6 kB

Release files / turtlebeads-1.1.3.tar.gz

Download URL turtlebeads-1.1.3.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
64ea6bec2e439701b75d5e63d62a7e5d60a9a6b1a867f95cb3bd0c5baef69e4d
BLAKE2b-256 checksum
How to use checksums
25ed879940962ac21b413837e63be71d716ef779d14ddedf75ad00228ecdc865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / turtleBeads-1.1.3-py3-none-any.whl

Download URL turtleBeads-1.1.3-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38f2944a37d7117e67eaacea6ebdea275bb992b6d8babb4a5691872fc94a148b
BLAKE2b-256 checksum
How to use checksums
eefc1cfd3de0f995fdd767909ff0a4413145033a1dd673723f92896f905532ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page