spyrrow 0.5.0__cp313-cp313t-musllinux_1_2_armv7l.whl → 0.6.0__cp313-cp313t-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
@@ -13,29 +13,28 @@ class Item:
13
13
  id: str,
14
14
  shape: list[Point],
15
15
  demand: int,
16
- allowed_orientations: list[float],
16
+ allowed_orientations: list[float] | None,
17
17
  ):
18
18
  """
19
19
  An Item represents any closed 2D shape by its outer boundary.
20
20
 
21
21
  Spyrrow doesn't support hole(s) inside the shape as of yet. Therefore no Item can be nested inside another.
22
22
 
23
- Continous rotation is not supported as of yet. A workaround is to specify any integer degrees between 0 and 360
24
- to the allowed_orientations list.
25
-
26
23
  Args:
27
24
  id (str): The Item identifier
28
25
  Needs to be unique accross all Items of a StripPackingInstance
29
26
  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
27
  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
28
  demand: The quantity of identical Items to be placed inside the strip. Should be positive.
32
- allowed_orientations: List of angles in degrees allowed. An empty list is equivalent to [0.].
29
+ allowed_orientations (list[float]|None): List of angles in degrees allowed.
30
+ An empty list is equivalent to [0.].
31
+ A None value means that the item is free to rotate
33
32
  The algorithmn is only very weakly sensible to the length of the list given.
34
33
 
35
34
  """
36
-
37
- def to_json_str(self)->str:
38
- """ Return a string of the JSON representation of the object"""
35
+
36
+ def to_json_str(self) -> str:
37
+ """Return a string of the JSON representation of the object"""
39
38
 
40
39
  class PlacedItem:
41
40
  """
@@ -85,9 +84,8 @@ class StripPackingInstance:
85
84
  Raises:
86
85
  ValueError
87
86
  """
88
- def to_json_str(self)->str:
89
- """ Return a string of the JSON representation of the object"""
90
-
87
+ def to_json_str(self) -> str:
88
+ """Return a string of the JSON representation of the object"""
91
89
 
92
90
  def solve(self, computation_time: int = 600) -> StripPackingSolution:
93
91
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spyrrow
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -0,0 +1,9 @@
1
+ spyrrow-0.6.0.dist-info/METADATA,sha256=hTkD2cL-edcgg30N50h0bCmFoB1y_gsrgevJWp76_iY,2156
2
+ spyrrow-0.6.0.dist-info/WHEEL,sha256=hMBh477POoS8fwM0gejXotyNsXrgIt6ac7-tgzXMhlw,108
3
+ spyrrow-0.6.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=NqgZwO1Kh-acAVTdl6Z2YVhKLcCIF6GRHy2V_oZgJNc,3885
7
+ spyrrow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ spyrrow/spyrrow.cpython-313t-arm-linux-musleabihf.so,sha256=M2fNLcmOq56uaCKQ5acqLkkrUPPAXIzPlSod45AO8Zc,1727293
9
+ spyrrow-0.6.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- spyrrow-0.5.0.dist-info/METADATA,sha256=EZ7iHM1m1vZwrtCdysrc_Z8jl-TFPOlZS8y7vUSWqeQ,2156
2
- spyrrow-0.5.0.dist-info/WHEEL,sha256=hMBh477POoS8fwM0gejXotyNsXrgIt6ac7-tgzXMhlw,108
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-313t-arm-linux-musleabihf.so,sha256=a4nKYRI9RQ9pXAm4QMKpb6OvAqf5PJhip_6tuBdhCEk,1723197
9
- spyrrow-0.5.0.dist-info/RECORD,,