Skip to content

2.8.0

Choose a tag to compare

@jmtts jmtts released this 28 Sep 16:34
· 69 commits to main since this release

2.8.0

Published to PyPI as werk24==2.8.0. All changes are additive; no model field was removed or renamed.

New in the models

  • Features response now reports undercuts, key slots, center holes and fasteners; fasteners also appear as bill of material rows.
  • A completeness warning can ride on COMPLETED.
  • InsufficientCreditsException is raised when the request quota is used up.
  • CallbackDrawingTooLargeException refuses, by name, a callback read too large for its request (and survives pickling).

Client and transport

  • A drawing over the upload limit is refused before it is sent.
  • A refused upload is reported per ask again, instead of raising TypeError.
  • A new connection is opened before INITIALIZE when the last request was never read.
  • read_drawing_sync works inside a running event loop.
  • Unset exception fields stay off the wire.

CLI

  • werk24 techread prints results as JSON and exits 1 when an ask fails.
  • werk24 init saves the API token in the home folder, names a rejected token, and fails the health check on it.
  • New optional extra werk24[images] installs Pillow for --ask-sheet-images / --ask-view-images; reading works without it.

Docs and packaging

  • README lists the new features; the exception handling example uses the exceptions the client actually raises.
  • Package links point to the API signup page, the demo and the v2 docs (https://v2.docs.werk24.io).

Full changelog: 2.7.0...main