cutoptim 1.3.0__tar.gz → 1.6.0__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.
- {cutoptim-1.3.0 → cutoptim-1.6.0}/PKG-INFO +1 -1
- {cutoptim-1.3.0 → cutoptim-1.6.0}/cutoptim/__init__.py +1 -1
- {cutoptim-1.3.0 → cutoptim-1.6.0}/cutoptim/types_gen.py +32 -1
- {cutoptim-1.3.0 → cutoptim-1.6.0}/pyproject.toml +1 -1
- {cutoptim-1.3.0 → cutoptim-1.6.0}/.github/logo.png +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/.github/workflows/ci.yml +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/.github/workflows/release.yml +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/.gitignore +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/LICENSE +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/README.md +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/cutoptim/client.py +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/cutoptim/py.typed +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/cutoptim/webhooks.py +0 -0
- {cutoptim-1.3.0 → cutoptim-1.6.0}/tests/webhook-vector.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cutoptim
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.6.0
|
|
4
4
|
Summary: Official client for the CutOptim Engine API — cutting optimization (2D panels, 1D linear, timber, true-shape nesting) over HTTPS.
|
|
5
5
|
Project-URL: Homepage, https://cutoptim.com/engine/reference
|
|
6
6
|
Project-URL: Source, https://github.com/cutoptim/engine-python
|
|
@@ -9,5 +9,5 @@ Standard library only (urllib, hmac). Types are generated from the OpenAPI docum
|
|
|
9
9
|
from .client import CutOptim, CutOptimError, is_job_accepted
|
|
10
10
|
from .webhooks import verify_webhook, SIGNATURE_HEADER
|
|
11
11
|
|
|
12
|
-
__version__ = "1.
|
|
12
|
+
__version__ = "1.6.0"
|
|
13
13
|
__all__ = ["CutOptim", "CutOptimError", "is_job_accepted", "verify_webhook", "SIGNATURE_HEADER", "__version__"]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# GENERATED by scripts/gen-sdks.ts from the CutOptim Engine API OpenAPI document — DO NOT EDIT.
|
|
2
|
-
# contract 1 · spec sha256
|
|
2
|
+
# contract 1 · spec sha256 1beced81a2f12873172a0604149dc98c83a333af239a76adc6dca082be878875 · cutoptim 1.6.0
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Any, Dict, List, Literal, TypedDict, Union
|
|
@@ -277,6 +277,8 @@ class Part2D(_Part2DRequired, total=False):
|
|
|
277
277
|
material: str
|
|
278
278
|
meta: Dict[str, Any]
|
|
279
279
|
id: Any
|
|
280
|
+
qr: str
|
|
281
|
+
qrs: List[str]
|
|
280
282
|
|
|
281
283
|
|
|
282
284
|
class _MatchedSetRequired(TypedDict):
|
|
@@ -333,6 +335,29 @@ class Options2D(TypedDict, total=False):
|
|
|
333
335
|
minimizeRotations: bool
|
|
334
336
|
effort: Literal["fast", "balanced"]
|
|
335
337
|
setOutlines: bool
|
|
338
|
+
labels: "LabelOptions"
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
class LabelOptions(TypedDict, total=False):
|
|
342
|
+
"""Label settings — the same settings as the Label format panel of the CutOptim app, under these names. They shape `labelsPdf` and add `piece`, `of`, `sheetNo`, `stockRow` and `sheetMeta` to every `labels[]` entry. Every field is optional; `{}` is valid and only adds those fields. Absent: the label PDF is the A4 sheet and `labels[]` is exactly as without this object. Validated STRICTLY, unlike the rest of `options`: an unknown key, a wrong type or a value out of range is a 400 `invalid_request` with `details.path`, before any call is counted (also on `/v1/validate/2d`). `null` for a field means the field is absent. Sent without `include` `labels` or `labelsPdf`, it changes nothing and the answer says so in `warnings`. 2D only."""
|
|
343
|
+
format: Literal["sheet", "roll", "apli-03056", "brother-dk-11201"]
|
|
344
|
+
width: float
|
|
345
|
+
height: float
|
|
346
|
+
offset: "LabelOffset"
|
|
347
|
+
dimSize: Literal["normal", "large", "xl"]
|
|
348
|
+
partNo: bool
|
|
349
|
+
order: Literal["input", "cut"]
|
|
350
|
+
stages: List[str]
|
|
351
|
+
stageWords: Dict[str, Any]
|
|
352
|
+
factoryEdges: bool
|
|
353
|
+
hiddenFaceHint: bool
|
|
354
|
+
parts: List[int]
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
class LabelOffset(TypedDict, total=False):
|
|
358
|
+
"""Printer offset in mm: moves everything printed on the label right (`x`) and down (`y`); negative values move it back. Applied rounded to 0.1 mm."""
|
|
359
|
+
x: float
|
|
360
|
+
y: float
|
|
336
361
|
|
|
337
362
|
|
|
338
363
|
class _Optimize2DRequestRequired(TypedDict):
|
|
@@ -617,6 +642,12 @@ class Label2D(_Label2DRequired, total=False):
|
|
|
617
642
|
grain: Literal["w", "h"]
|
|
618
643
|
edges: Dict[str, Any]
|
|
619
644
|
meta: Dict[str, Any]
|
|
645
|
+
piece: int
|
|
646
|
+
of: int
|
|
647
|
+
sheetNo: int
|
|
648
|
+
stockRow: int
|
|
649
|
+
sheetMeta: Dict[str, Any]
|
|
650
|
+
qr: str
|
|
620
651
|
|
|
621
652
|
|
|
622
653
|
class EdgeBanding(TypedDict):
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cutoptim"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.6.0"
|
|
8
8
|
description = "Official client for the CutOptim Engine API — cutting optimization (2D panels, 1D linear, timber, true-shape nesting) over HTTPS."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|