Skip to main content

DAKimport

This is a small Python3 module to import Designaknit .stp and .pat knitting pattern files as images. The code to convert .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 of the Importer class are pat2im() and stp2im(). They take as their argument a filename and return a PIL.Image object.

Metadata

Release files for DAKimport 0.0.5

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

Source distribution (sdist)

Source distribution for DAKimport 0.0.5
File Size Uploaded
DAKimport-0.0.5.tar.gz 6.1 kB Details

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / DAKimport-0.0.5.tar.gz

Download URL DAKimport-0.0.5.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c256189309ca3643385ae69ad4343e06a66e35b37f976794f6e26534ee4907d2
BLAKE2b-256 checksum
How to use checksums
4d2659662a6d5e8a85df2a8ac4c09c6167e4265f8533a69295a10678a886c427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

Release files / DAKimport-0.0.5-py3-none-any.whl

Download URL DAKimport-0.0.5-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba2b920271a680a5c1feefb44632fbe3dae6e5dbf5ebb74e2e5e7926a2ddba5d
BLAKE2b-256 checksum
How to use checksums
f6858a86d571aa098c528e2aaaacbb4d84df07d79c2eb37ad5757596f81db604
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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