spyrrow 0.4.0__cp313-cp313-musllinux_1_2_armv7l.whl → 0.5.0__cp313-cp313-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 CHANGED
@@ -3,14 +3,14 @@ from typing import TypeAlias
3
3
  Point: TypeAlias = tuple[float, float]
4
4
 
5
5
  class Item:
6
- id: int
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: int,
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 for a given StripPackingInstance.
28
- Best autoincremented as the instance verifies that all ids are presents starting from 0.
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 (int): The Item identifier for a given StripPackingInstance.
46
- translation (tuple[float,float]): the translation vector in the X-Y axis
47
- rotation (float): The roation angle in degrees, assuming that the original Item was defined with 0° as its rotation angle.
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: int
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
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spyrrow
3
- Version: 0.4.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
- 0, [(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)], demand=4, allowed_orientations=[0]
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
- 1,
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=O9Czg4PWfzN5xPptY-bOYTMNJMmaKq7Jq3sX28c7Q0Q,107
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.cpython-313-arm-linux-musleabihf.so,sha256=je_D4bXnffZpUS1ozpzyh_uP8RmnGrz3Gg0RNzmMQZQ,1727245
9
+ spyrrow-0.5.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.8.6)
2
+ Generator: maturin (1.8.7)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp313-cp313-musllinux_1_2_armv7l
@@ -1,9 +0,0 @@
1
- spyrrow-0.4.0.dist-info/METADATA,sha256=xISpeyAxcBngcjpXGDIIwv7I3AfHo56GUUpwojWvk5A,2136
2
- spyrrow-0.4.0.dist-info/WHEEL,sha256=8qbut5OV21MVsJh-6koZCKZnnuRHvhBkNK3ct3shD1c,107
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.cpython-313-arm-linux-musleabihf.so,sha256=X4xucC85c5wyKuM4wxgyHpRamYhbmReqSM3cq7V0V-M,1493761
9
- spyrrow-0.4.0.dist-info/RECORD,,