Skip to main content

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

Project description

DAK2im

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 (https://reverseengineering.stackexchange.com/questions/12235/reading-stp-designaknit-stitch-pattern-files-ii/12239#12239).

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.

Source Distribution

DAKimport-0.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

DAKimport-0.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file DAKimport-0.0.1.tar.gz.

File metadata

  • Download URL: DAKimport-0.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for DAKimport-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ef26f14aa3a546ffbf9866cf93955dfc2b5724b48ab0b934d470fcc3b0f10ca
MD5 a720a8a9ba0d07ba4f439df9193df96e
BLAKE2b-256 a8d7acbdd3f7dc2826b48560339eee4af853aea800a3fba76aa40aa86623217b

See more details on using hashes here.

File details

Details for the file DAKimport-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: DAKimport-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for DAKimport-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce4ab1c4675ace14fd848e196b0455d6edf32a5566c3413652150527053cbe9
MD5 fee8e75779c8a34f8fc00e0ed9cddfdd
BLAKE2b-256 c5d1c13104fab50c30f78679d7fa52e3a4148bab5a8ee78f1ce5319bee281cce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page