Skip to main content

Library for analyzing CAD geometry.

Project description

kerfed.client

A client for the Kerfed Engine which reliably analyzes 2D or 3D CAD geometry into a well-defined data structure. It can be used for many applications, including e-commerce, robotic automation, and process analysis.

Check out an API demo which converts a mesh into a full milling plan with G-code at CarveWizard.

Install

pip install kerfed.client

Quick Start

import os
import kerfed.client as ke

if __name__ == "__main__":

   # create a client
    client = ke.EngineClient(api_key="kerfed_api_key_here")


    # Generate a GeometryRequest
    filename = "tray.stl.zip"
    with open(filename, "rb") as f:
        request = ke.GeometryRequest(
            source=ke.FileBlob(
                name=filename,
                data=f.read(),
            ),
            source_units="inches",
        )

    # Start the geometry request running in the cloud.
    task_id = client.geometry_start(request, upload=True)

    # This will either return a `GeometryReponse` or raise an error.
    response = client.geometry_result(task_id=task_id)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

kerfed.client-0.1.8-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page