knit-graphs 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- knit_graphs-0.0.1/.gitignore +238 -0
- knit_graphs-0.0.1/LICENSE +21 -0
- knit_graphs-0.0.1/PKG-INFO +96 -0
- knit_graphs-0.0.1/README.md +73 -0
- knit_graphs-0.0.1/pyproject.toml +55 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
110
|
+
.pdm.toml
|
|
111
|
+
.pdm-python
|
|
112
|
+
.pdm-build/
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
163
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
164
|
+
|
|
165
|
+
# User-specific stuff
|
|
166
|
+
.idea/**/workspace.xml
|
|
167
|
+
.idea/**/tasks.xml
|
|
168
|
+
.idea/**/usage.statistics.xml
|
|
169
|
+
.idea/**/dictionaries
|
|
170
|
+
.idea/**/shelf
|
|
171
|
+
|
|
172
|
+
# AWS User-specific
|
|
173
|
+
.idea/**/aws.xml
|
|
174
|
+
|
|
175
|
+
# Generated files
|
|
176
|
+
.idea/**/contentModel.xml
|
|
177
|
+
|
|
178
|
+
# Sensitive or high-churn files
|
|
179
|
+
.idea/**/dataSources/
|
|
180
|
+
.idea/**/dataSources.ids
|
|
181
|
+
.idea/**/dataSources.local.xml
|
|
182
|
+
.idea/**/sqlDataSources.xml
|
|
183
|
+
.idea/**/dynamic.xml
|
|
184
|
+
.idea/**/uiDesigner.xml
|
|
185
|
+
.idea/**/dbnavigator.xml
|
|
186
|
+
|
|
187
|
+
# Gradle
|
|
188
|
+
.idea/**/gradle.xml
|
|
189
|
+
.idea/**/libraries
|
|
190
|
+
|
|
191
|
+
# Gradle and Maven with auto-import
|
|
192
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
193
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
|
194
|
+
# auto-import.
|
|
195
|
+
# .idea/artifacts
|
|
196
|
+
# .idea/compiler.xml
|
|
197
|
+
# .idea/jarRepositories.xml
|
|
198
|
+
# .idea/modules.xml
|
|
199
|
+
# .idea/*.iml
|
|
200
|
+
# .idea/modules
|
|
201
|
+
# *.iml
|
|
202
|
+
# *.ipr
|
|
203
|
+
|
|
204
|
+
# CMake
|
|
205
|
+
cmake-build-*/
|
|
206
|
+
|
|
207
|
+
# Mongo Explorer plugin
|
|
208
|
+
.idea/**/mongoSettings.xml
|
|
209
|
+
|
|
210
|
+
# File-based project format
|
|
211
|
+
*.iws
|
|
212
|
+
|
|
213
|
+
# IntelliJ
|
|
214
|
+
out/
|
|
215
|
+
|
|
216
|
+
# mpeltonen/sbt-idea plugin
|
|
217
|
+
.idea_modules/
|
|
218
|
+
|
|
219
|
+
# JIRA plugin
|
|
220
|
+
atlassian-ide-plugin.xml
|
|
221
|
+
|
|
222
|
+
# Cursive Clojure plugin
|
|
223
|
+
.idea/replstate.xml
|
|
224
|
+
|
|
225
|
+
# SonarLint plugin
|
|
226
|
+
.idea/sonarlint/
|
|
227
|
+
|
|
228
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
229
|
+
com_crashlytics_export_strings.xml
|
|
230
|
+
crashlytics.properties
|
|
231
|
+
crashlytics-build.properties
|
|
232
|
+
fabric.properties
|
|
233
|
+
|
|
234
|
+
# Editor-based Rest Client
|
|
235
|
+
.idea/httpRequests
|
|
236
|
+
|
|
237
|
+
# Android studio 3.1+ serialized cache file
|
|
238
|
+
.idea/caches/build_file_checksums.ser
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Megan Hofmann
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: knit-graphs
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A graph representation of knitted structures where each loop is a node and edges represent yarn and stictch relationships.
|
|
5
|
+
Project-URL: Documentation, https://github.com/m.hofmann/knit-graphs#readme
|
|
6
|
+
Project-URL: Issues, https://github.com/m.hofmann/knit-graphs/issues
|
|
7
|
+
Project-URL: Source, https://github.com/m.hofmann/knit-graphs
|
|
8
|
+
Author-email: Megan Hofmann <m.hofmann@northeastern.edu>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: ACT Lab,Northeastern,fabrication,knit,machine knit,textile
|
|
12
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Requires-Dist: networkx~=3.2.1
|
|
21
|
+
Requires-Dist: plotly~=5.22.0
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# knit_graphs
|
|
25
|
+
|
|
26
|
+
[](https://pypi.org/project/knit-graphs)
|
|
27
|
+
[](https://pypi.org/project/knit-graphs)
|
|
28
|
+
|
|
29
|
+
-----
|
|
30
|
+
## Description
|
|
31
|
+
The knit-graphs packaged provides a data structure for representing knitted structures formed of loops of yarn (nodes) connected by various edge structures. Loops are connected by: floats (yarn-edges) in a yarn graph structure, stitch edges (loops pulled through loops), and crossed over each other in a wale-braid structure.
|
|
32
|
+
|
|
33
|
+
Knit graphs provide a powerful tool for representing knitted structures for digital fabrication systems such as knitting machine programming languages and design tools.
|
|
34
|
+
|
|
35
|
+
Additional details about this knit-graph construction are available in the ACM publication:
|
|
36
|
+
["KnitPicking Texture: Programming and Modifying Complex Knitted Textures for Machine and Hand Knitting"](https://doi.org/10.1145/3332165.3347886)
|
|
37
|
+
|
|
38
|
+
## Table of Contents
|
|
39
|
+
- [Description](#description)
|
|
40
|
+
- [Installation](#installation)
|
|
41
|
+
- [Usage](#usage)
|
|
42
|
+
- [Knit Graph Generators](#knit-graph-generators)
|
|
43
|
+
- [Visualizing Knit Graphs](#visualizing-knit-graphs)
|
|
44
|
+
- [Credits](#credits)
|
|
45
|
+
- [License](#license)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Installation
|
|
50
|
+
|
|
51
|
+
```console
|
|
52
|
+
pip install knit-graphs
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
### Knit Graph Generators
|
|
58
|
+
The [knit-graph-generators subpackage](https://github.com/mhofmann-Khoury/knit_graph/tree/main/src/knit_graphs/knit_graph_generators) provides a library of basic knit graphs to generate such as casting on loops of a knitted structure, creating Jersey (aka Stockinette) tubes and swatches, and other basic textures.
|
|
59
|
+
For example, to generate a swatch of knit-purl ribbing use the following:
|
|
60
|
+
```python
|
|
61
|
+
from knit_graphs.knit_graph_generators.basic_knit_graph_generators import kp_rib_swatch
|
|
62
|
+
width = 10
|
|
63
|
+
height = 10
|
|
64
|
+
kp_rib_swatch = kp_rib_swatch(width, height)
|
|
65
|
+
```
|
|
66
|
+
Additional examples of knitgraph generator usage can be found in the [Knit_Graph test module](https://github.com/mhofmann-Khoury/knit_graph/blob/main/tests/test_Knit_Graph.py).
|
|
67
|
+
|
|
68
|
+
Knitgraphs can be created without generators. We encourage users to review the generators as simple examples on creating a knit graph programmatically.
|
|
69
|
+
|
|
70
|
+
### Visualizing Knit Graphs
|
|
71
|
+
We provide simple support for visualizing knit graphs. This is primarily used to debugging simple knit graph programs.
|
|
72
|
+
|
|
73
|
+
For example, we can visualize a swatch of seed stitch (checkered knit and purl stitches) with the following code.
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
from knit_graphs.knit_graph_generators.basic_knit_graph_generators import seed_swatch
|
|
77
|
+
from knit_graphs.knit_graph_visualizer.Stitch_Visualizer import visualize_stitches
|
|
78
|
+
|
|
79
|
+
width = 4
|
|
80
|
+
height = 4
|
|
81
|
+
swatch = seed_swatch(width, height)
|
|
82
|
+
visualize_stitches(swatch)
|
|
83
|
+
```
|
|
84
|
+
The visualizer shows knit stitches (loops pulled from the back of the fabric to the front) as blue edges and purl stitches (loops pulled from the front to back) (aka back-knits) as red edges. Loop nodes are circles labeled with their time-ordered index and colored to match their yarn (defaults to dark green). The yarn edges (aka floats) connecting them are made of thin edges the same color as the loop nodes.
|
|
85
|
+
|
|
86
|
+
Additional examples of using the visualizer are available in the [Stitch Visualizer Tests Module](https://github.com/mhofmann-Khoury/knit_graph/blob/main/tests/test_Stitch_Visualizer.py)
|
|
87
|
+
|
|
88
|
+
## Credits
|
|
89
|
+
The design of this data scructure was completed by the authors of
|
|
90
|
+
["KnitPicking Texture: Programming and Modifying Complex Knitted Textures for Machine and Hand Knitting"](https://doi.org/10.1145/3332165.3347886).
|
|
91
|
+
|
|
92
|
+
The inclusion of the Artin-Braide wale crossing construction was inspired by ["An Artin Braid Group Representation of Knitting Machine State with Applications to Validation and Optimization of Fabrication Plans"](https://doi.org/10.1109/ICRA48506.2021.9562113) by Jenny Lin and James McCann.
|
|
93
|
+
|
|
94
|
+
## License
|
|
95
|
+
|
|
96
|
+
`knit-graphs` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# knit_graphs
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/knit-graphs)
|
|
4
|
+
[](https://pypi.org/project/knit-graphs)
|
|
5
|
+
|
|
6
|
+
-----
|
|
7
|
+
## Description
|
|
8
|
+
The knit-graphs packaged provides a data structure for representing knitted structures formed of loops of yarn (nodes) connected by various edge structures. Loops are connected by: floats (yarn-edges) in a yarn graph structure, stitch edges (loops pulled through loops), and crossed over each other in a wale-braid structure.
|
|
9
|
+
|
|
10
|
+
Knit graphs provide a powerful tool for representing knitted structures for digital fabrication systems such as knitting machine programming languages and design tools.
|
|
11
|
+
|
|
12
|
+
Additional details about this knit-graph construction are available in the ACM publication:
|
|
13
|
+
["KnitPicking Texture: Programming and Modifying Complex Knitted Textures for Machine and Hand Knitting"](https://doi.org/10.1145/3332165.3347886)
|
|
14
|
+
|
|
15
|
+
## Table of Contents
|
|
16
|
+
- [Description](#description)
|
|
17
|
+
- [Installation](#installation)
|
|
18
|
+
- [Usage](#usage)
|
|
19
|
+
- [Knit Graph Generators](#knit-graph-generators)
|
|
20
|
+
- [Visualizing Knit Graphs](#visualizing-knit-graphs)
|
|
21
|
+
- [Credits](#credits)
|
|
22
|
+
- [License](#license)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
```console
|
|
29
|
+
pip install knit-graphs
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
### Knit Graph Generators
|
|
35
|
+
The [knit-graph-generators subpackage](https://github.com/mhofmann-Khoury/knit_graph/tree/main/src/knit_graphs/knit_graph_generators) provides a library of basic knit graphs to generate such as casting on loops of a knitted structure, creating Jersey (aka Stockinette) tubes and swatches, and other basic textures.
|
|
36
|
+
For example, to generate a swatch of knit-purl ribbing use the following:
|
|
37
|
+
```python
|
|
38
|
+
from knit_graphs.knit_graph_generators.basic_knit_graph_generators import kp_rib_swatch
|
|
39
|
+
width = 10
|
|
40
|
+
height = 10
|
|
41
|
+
kp_rib_swatch = kp_rib_swatch(width, height)
|
|
42
|
+
```
|
|
43
|
+
Additional examples of knitgraph generator usage can be found in the [Knit_Graph test module](https://github.com/mhofmann-Khoury/knit_graph/blob/main/tests/test_Knit_Graph.py).
|
|
44
|
+
|
|
45
|
+
Knitgraphs can be created without generators. We encourage users to review the generators as simple examples on creating a knit graph programmatically.
|
|
46
|
+
|
|
47
|
+
### Visualizing Knit Graphs
|
|
48
|
+
We provide simple support for visualizing knit graphs. This is primarily used to debugging simple knit graph programs.
|
|
49
|
+
|
|
50
|
+
For example, we can visualize a swatch of seed stitch (checkered knit and purl stitches) with the following code.
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
from knit_graphs.knit_graph_generators.basic_knit_graph_generators import seed_swatch
|
|
54
|
+
from knit_graphs.knit_graph_visualizer.Stitch_Visualizer import visualize_stitches
|
|
55
|
+
|
|
56
|
+
width = 4
|
|
57
|
+
height = 4
|
|
58
|
+
swatch = seed_swatch(width, height)
|
|
59
|
+
visualize_stitches(swatch)
|
|
60
|
+
```
|
|
61
|
+
The visualizer shows knit stitches (loops pulled from the back of the fabric to the front) as blue edges and purl stitches (loops pulled from the front to back) (aka back-knits) as red edges. Loop nodes are circles labeled with their time-ordered index and colored to match their yarn (defaults to dark green). The yarn edges (aka floats) connecting them are made of thin edges the same color as the loop nodes.
|
|
62
|
+
|
|
63
|
+
Additional examples of using the visualizer are available in the [Stitch Visualizer Tests Module](https://github.com/mhofmann-Khoury/knit_graph/blob/main/tests/test_Stitch_Visualizer.py)
|
|
64
|
+
|
|
65
|
+
## Credits
|
|
66
|
+
The design of this data scructure was completed by the authors of
|
|
67
|
+
["KnitPicking Texture: Programming and Modifying Complex Knitted Textures for Machine and Hand Knitting"](https://doi.org/10.1145/3332165.3347886).
|
|
68
|
+
|
|
69
|
+
The inclusion of the Artin-Braide wale crossing construction was inspired by ["An Artin Braid Group Representation of Knitting Machine State with Applications to Validation and Optimization of Fabrication Plans"](https://doi.org/10.1109/ICRA48506.2021.9562113) by Jenny Lin and James McCann.
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
`knit-graphs` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "knit-graphs"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = 'A graph representation of knitted structures where each loop is a node and edges represent yarn and stictch relationships.'
|
|
9
|
+
homepage = "https://github.com/mhofmann-Khoury/knit_graph"
|
|
10
|
+
repositor = "https://github.com/mhofmann-Khoury/knit_graph"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.11"
|
|
13
|
+
license = "MIT"
|
|
14
|
+
keywords = ["knit", "machine knit", "textile", "Northeastern", "ACT Lab", "fabrication"]
|
|
15
|
+
authors = [
|
|
16
|
+
{ name = "Megan Hofmann", email = "m.hofmann@northeastern.edu" },
|
|
17
|
+
]
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
20
|
+
"Natural Language :: English",
|
|
21
|
+
"Programming Language :: Python",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
25
|
+
"Topic :: Scientific/Engineering",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"networkx~=3.2.1",
|
|
29
|
+
"plotly~=5.22.0",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Documentation = "https://github.com/m.hofmann/knit-graphs#readme"
|
|
34
|
+
Issues = "https://github.com/m.hofmann/knit-graphs/issues"
|
|
35
|
+
Source = "https://github.com/m.hofmann/knit-graphs"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.version]
|
|
38
|
+
path = "src/knit_graphs/__about__.py"
|
|
39
|
+
|
|
40
|
+
[tool.hatch.build.targets.sdist]
|
|
41
|
+
include = [
|
|
42
|
+
"knit_graphs/*.py",
|
|
43
|
+
]
|
|
44
|
+
exclude = [
|
|
45
|
+
"/tests",
|
|
46
|
+
"requirements.txt",
|
|
47
|
+
".gitignore",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[tool.hatch.envs.types]
|
|
51
|
+
extra-dependencies = [
|
|
52
|
+
"mypy>=1.0.0",
|
|
53
|
+
]
|
|
54
|
+
[tool.hatch.envs.types.scripts]
|
|
55
|
+
check = "mypy --install-types --non-interactive {args:src/knit_graphs tests}"
|