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
Release history Release notifications | RSS feed
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
Close
Hashes for kerfed.client-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22328a499a3e9f5f638bd5ec6166a8f454e4eae05b36b1e414e3223c4f66d582 |
|
MD5 | da9f80b190d9be45044efce77b05e93e |
|
BLAKE2b-256 | c615acd5a7f22290fbaa16d7e315a9af4b915172485da20049a77bf09a9e55c1 |