W24-Service-GmbH / werk24-python

Automated Processing of Technical Drawings
https://werk24.io
Other
53 stars 12 forks source link
automation cli engineering-drawing pdf process-automation pypi technical-drawings

Werk24 Client

Werk24

pypi Tests | cpython 3.8, 3.9, 3.10

Features

When submitting a PDF, PNG, JPEG of a Technical Drawing to Werk24's API, you receive within seconds the following features:

And finally you can obtain a CAD Approximation of the part's Geometry. Currently this features is focused on flat parts, such as sheet metal parts, but more is in the pipeline.

Check our website at https://werk24.io.

Input Output
Werk24 Werk24
Original drawing by T. Hartmann (CC)

Applications

Typical applications of our Technology include

Installation

Pip installation

pip install werk24

Documentation

See https://werk24.io/docs/index.html

CLI

To get a first impression, you can run the CLI:

usage: w24cli techread [-h] [--ask-techread-started] [--ask-page-thumbnail]
                   [--ask-sheet-thumbnail] [--ask-sectional-thumbnail]
                   [--ask-variant-measures]
                   input_files

Example

from werk24 import Hook, W24TechreadClient, W24AskVariantMeasures

async def read_measures_from_drawing(document_bytes:bytes) -> None:

    # define what you want to learn about the drawing, and what function
    # should be called when a response arrives
    hooks = [Hook(ask=W24AskVariantMeasures(), function=print)]

    # make the call
    client = W24TechreadClient.make_from_env()
    async with client as session:
        await session.read_drawing_with_hooks(document_bytes,hooks)