Skip to main content

convert Designaknit .stp and .pat knitting pattern files into images

Project description


This is a small Python3 module to convert Designaknit .stp and .pat knitting pattern files into images. The code for .stp files was originally written in Java by Guntram Blohm in response to a stackexchange question (

As .stp files are somewhat encrypted, it's not easily possible to read or convert them to anything else. The original intention of this software was to show how to read and decrypt those files. The older .pat file format is similar but without any encryption.

The program reads two kinds of data from the files:

  • color pattern
  • color palette

Two further types of information are ignored, for the current purposes:

  • stitch pattern
  • stitch types

The two public methods are pat2im() and stp2im(). They take as their argument a filename and return a PIL.Image object.

Project details

Download files

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

Files for DAKimport, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size DAKimport-0.0.2-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size DAKimport-0.0.2.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page