Skip to main content

TurtleThread

TurtleTread is a Python library inspired by TurtleStitch. The goal of TurtleThread is to provide an easy-to-use turtle based interface to making embroidery patterns and learn about Python programming and art. To accomplish this, we use the excellent PyEmbroidery library, which implements all the embroidery specific logic (e.g. exporting the patterns as embroidery files).

Lisense

The code is licensed under a GPLv3 license, which means that you can use it for anything you'd like. However, if you use it to make your own tools, your tool must be open source and licensed with the GPLv3 license. For more information, see this guide.

Installation

TurtleThread is available on PyPI, so it can be pip installed easily by writing

pip install turtlethread

In a terminal window. Alternatively, to install the latest development version, you can install directly from GitHub

pip install git+https://github.com/marieroald/turtlethread.git

Development

TurtleThread is developed by Marie Roald and Yngve Mardal Moe. It is still under development, so we appreciate any issues about eventual bugs you may encounter. We are also happy for community contributions, so if you want to add some functionality, then we encourage you to describe it in an issue and submit a pull request with the feature.

Examples

from turtlethread import Turtle

pen = Turtle()
with pen.running_stitch(stitch_length=20):
    for side in range(4):
        pen.forward(80)
        pen.right(90)

with pen.jump_stitch():
    pen.forward(160)

with pen.running_stitch(stitch_length=20):
    for side in range(3):
        pen.forward(80)
        pen.right(120)

pen.save("pattern.png")
pen.save("pattern.jef")

TODO

There are a few features we currently do not support but aim to in the future.

  • Other stitches like zig-zag or satin stitch
  • Text
  • Filled dots

Release files for turtlethread 0.0.11

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

Source distribution (sdist)

Source distribution for turtlethread 0.0.11
File Size Uploaded
turtlethread-0.0.11.tar.gz 47.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for turtlethread 0.0.11
File Interpreter ABI Platform
turtlethread-0.0.11-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 47.8 MB

Release files / turtlethread-0.0.11.tar.gz

Download URL turtlethread-0.0.11.tar.gz
Size 47.8 MB
Tags Source
SHA-256 checksum
How to use checksums
a5ca586f22ca3f855739ef9e6fffd2eb11bc175436e9194b3deb33440f0f3846
BLAKE2b-256 checksum
How to use checksums
162ea942c0cf7b9259cb55c0b92f35ab14490005e68e05232cd33193fd779f4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / turtlethread-0.0.11-py2.py3-none-any.whl

Download URL turtlethread-0.0.11-py2.py3-none-any.whl
Size 20.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1f12d79646323382c6dffc02686a627abaf169e6240aa79be1f7a1a05b425013
BLAKE2b-256 checksum
How to use checksums
16b783c0151db9d4634049de30a789a47fa517c3a708912a8c86c1c33e0063ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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