spyrrow 0.4.0__pp311-pypy311_pp73-musllinux_1_2_armv7l.whl → 0.5.0__pp311-pypy311_pp73-musllinux_1_2_armv7l.whl
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.
Potentially problematic release.
This version of spyrrow might be problematic. Click here for more details.
- spyrrow/__init__.pyi +9 -11
- spyrrow/spyrrow.pypy311-pp73-arm-linux-gnu.so +0 -0
- {spyrrow-0.4.0.dist-info → spyrrow-0.5.0.dist-info}/METADATA +3 -3
- spyrrow-0.5.0.dist-info/RECORD +9 -0
- {spyrrow-0.4.0.dist-info → spyrrow-0.5.0.dist-info}/WHEEL +1 -1
- spyrrow-0.4.0.dist-info/RECORD +0 -9
- {spyrrow-0.4.0.dist-info → spyrrow-0.5.0.dist-info}/licenses/LICENSE.txt +0 -0
spyrrow/__init__.pyi
CHANGED
|
@@ -3,14 +3,14 @@ from typing import TypeAlias
|
|
|
3
3
|
Point: TypeAlias = tuple[float, float]
|
|
4
4
|
|
|
5
5
|
class Item:
|
|
6
|
-
id:
|
|
6
|
+
id: str
|
|
7
7
|
demand: int
|
|
8
8
|
shape: list[Point]
|
|
9
9
|
allowed_orientations: list[float]
|
|
10
10
|
|
|
11
11
|
def __init__(
|
|
12
12
|
self,
|
|
13
|
-
id:
|
|
13
|
+
id: str,
|
|
14
14
|
shape: list[Point],
|
|
15
15
|
demand: int,
|
|
16
16
|
allowed_orientations: list[float],
|
|
@@ -24,8 +24,8 @@ class Item:
|
|
|
24
24
|
to the allowed_orientations list.
|
|
25
25
|
|
|
26
26
|
Args:
|
|
27
|
-
id: The Item identifier
|
|
28
|
-
|
|
27
|
+
id (str): The Item identifier
|
|
28
|
+
Needs to be unique accross all Items of a StripPackingInstance
|
|
29
29
|
shape: An ordered list of (x,y) defining the shape boundary. The shape is represented as a polygon formed by this list of points.
|
|
30
30
|
The origin point can be included twice as the finishing point. If not, [last point, first point] is infered to be the last straight line of the shape.
|
|
31
31
|
demand: The quantity of identical Items to be placed inside the strip. Should be positive.
|
|
@@ -42,13 +42,13 @@ class PlacedItem:
|
|
|
42
42
|
An object representing where a copy of an Item was placed inside the strip.
|
|
43
43
|
|
|
44
44
|
Attributes:
|
|
45
|
-
id (
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
id (str): The Item identifier referencing the items of the StripPackingInstance
|
|
46
|
+
rotation (float): The rotation angle in degrees, assuming that the original Item was defined with 0° as its rotation angle.
|
|
47
|
+
Use the origin (0.0,0.0) as the rotation point.
|
|
48
|
+
translation (tuple[float,float]): the translation vector in the X-Y axis. To apply after the rotation
|
|
48
49
|
"""
|
|
49
50
|
|
|
50
|
-
id:
|
|
51
|
-
shape: list[Point]
|
|
51
|
+
id: str
|
|
52
52
|
translation: Point
|
|
53
53
|
rotation: float
|
|
54
54
|
|
|
@@ -82,8 +82,6 @@ class StripPackingInstance:
|
|
|
82
82
|
An empty string '' can be used, if the user doesn't have a use for this name.
|
|
83
83
|
strip_height (float): the fixed height of the strip. The unit should be compatible with the Item
|
|
84
84
|
items (list[Item]): The Items which defines the instances. All Items should be defined with the same scale ( same length unit).
|
|
85
|
-
Items ids should be an increasing series starting at 0 until len(items)-1.
|
|
86
|
-
|
|
87
85
|
Raises:
|
|
88
86
|
ValueError
|
|
89
87
|
"""
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: spyrrow
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -35,10 +35,10 @@ pip install spyrrow
|
|
|
35
35
|
import spyrrow
|
|
36
36
|
|
|
37
37
|
rectangle1 = spyrrow.Item(
|
|
38
|
-
|
|
38
|
+
"rectangle", [(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)], demand=4, allowed_orientations=[0]
|
|
39
39
|
)
|
|
40
40
|
triangle1 = spyrrow.Item(
|
|
41
|
-
|
|
41
|
+
"triangle",
|
|
42
42
|
[(0, 0), (1, 0), (1, 1), (0, 0)],
|
|
43
43
|
demand=6,
|
|
44
44
|
allowed_orientations=[0, 90, 180, -90],
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
spyrrow-0.5.0.dist-info/METADATA,sha256=EZ7iHM1m1vZwrtCdysrc_Z8jl-TFPOlZS8y7vUSWqeQ,2156
|
|
2
|
+
spyrrow-0.5.0.dist-info/WHEEL,sha256=vg8xMRGdO0dNq_wIHBathNNglyr7diTXiBtfXkpiekc,114
|
|
3
|
+
spyrrow-0.5.0.dist-info/licenses/LICENSE.txt,sha256=JOcOnGFqH2ZNyuMV3DBGh5kNL_3IqaS5832hwXhZ-Js,1076
|
|
4
|
+
spyrrow.libs/libgcc_s-5b5488a6.so.1,sha256=HGKUsVmTeNAxEdSy7Ua5Vh_I9FN3RCbPWzvZ7H_TrwE,2749061
|
|
5
|
+
spyrrow/__init__.py,sha256=MajlSBAliv8o8SqAqLgJARyi3egmvNIaXKTDXxvIAFY,111
|
|
6
|
+
spyrrow/__init__.pyi,sha256=2r0Dy-uJY0lE4Q_-eT7E2aOx9965J4JQ9G9xwZv4zXY,3947
|
|
7
|
+
spyrrow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
spyrrow/spyrrow.pypy311-pp73-arm-linux-gnu.so,sha256=qeydTHQpWKSA_J4KDr18ttb3wgywZOXMACjHXDCnZvQ,1727345
|
|
9
|
+
spyrrow-0.5.0.dist-info/RECORD,,
|
spyrrow-0.4.0.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
spyrrow-0.4.0.dist-info/METADATA,sha256=xISpeyAxcBngcjpXGDIIwv7I3AfHo56GUUpwojWvk5A,2136
|
|
2
|
-
spyrrow-0.4.0.dist-info/WHEEL,sha256=4CZ4hpzP9tmkNx32EHgoL0B0yp903RcbI-cZX-pI2kA,114
|
|
3
|
-
spyrrow-0.4.0.dist-info/licenses/LICENSE.txt,sha256=JOcOnGFqH2ZNyuMV3DBGh5kNL_3IqaS5832hwXhZ-Js,1076
|
|
4
|
-
spyrrow.libs/libgcc_s-5b5488a6.so.1,sha256=HGKUsVmTeNAxEdSy7Ua5Vh_I9FN3RCbPWzvZ7H_TrwE,2749061
|
|
5
|
-
spyrrow/__init__.py,sha256=MajlSBAliv8o8SqAqLgJARyi3egmvNIaXKTDXxvIAFY,111
|
|
6
|
-
spyrrow/__init__.pyi,sha256=MZXI5_RK5wSwDwPSZIV-m75mgi_ZW35MQuPQVpAiFHc,4010
|
|
7
|
-
spyrrow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
spyrrow/spyrrow.pypy311-pp73-arm-linux-gnu.so,sha256=CJgYhBASq985j4xiXzeGwuzEOBNNpeRJ5fWdlivuzdY,1493861
|
|
9
|
-
spyrrow-0.4.0.dist-info/RECORD,,
|
|
File without changes
|