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 using a free tier API key
   # requests may be rate limited, de-scoped, and run on slower hardware 
    client = ke.EngineClient(api_key="kerfed_limited_access")


    # Generate a GeometryRequest
    file_name = "tray.stl.zip"
    with open(file_name, "rb") as f:
        request = ke.GeometryRequest(
            source=ke.FileBlob(
                name=file_name,
                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

If you're not sure about the file name format, learn more about wheel file names.

kerfed_client-0.2.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file kerfed_client-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: kerfed_client-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for kerfed_client-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16a37218daff79fc75d98b028ac8833dd04478c7f4ffcf34a3b6e2de04f198e8
MD5 55a74f5576250d7b72ca49075fd4f195
BLAKE2b-256 779947198d4c638b04a8a140c25a16a09954583bf6588cb1e8bbe3d2d3112176

See more details on using hashes here.

Supported by

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