DAKimport-0.0.5
توضیحات
convert Designaknit .stp and .pat knitting pattern files into images
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | DAKimport-0.0.5 |
| نام | DAKimport |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tom Price |
| ایمیل نویسنده | t0mpr1c3@gmail.com |
| آدرس صفحه اصلی | https://github.com/t0mpr1c3/DAKimport |
| آدرس اینترنتی | https://pypi.org/project/DAKimport/ |
| مجوز | - |
# 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.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.18.4 | numpy |
| >=7.1.2 | Pillow |
| >=0.0.20 | pypng |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl DAKimport-0.0.5:
pip install DAKimport-0.0.5.whl
نصب پکیج tar.gz DAKimport-0.0.5:
pip install DAKimport-0.0.5.tar.gz