kerfed.client


Namekerfed.client JSON
Version 0.1.8 PyPI version JSON
download
home_pageNone
SummaryLibrary for analyzing CAD geometry.
upload_time2024-03-21 21:35:18
maintainerNone
docs_urlNone
authorKerfed, Inc.
requires_python>=3.7
licenseThe MIT License (MIT) Copyright (c) 2024 Kerfed, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords manufacturing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://carvewizard.com).

### Install

```
pip install kerfed.client
```

### Quick Start

```python
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "kerfed.client",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "manufacturing",
    "author": "Kerfed, Inc.",
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# kerfed.client\n\nA 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.\n\nCheck out an API demo which converts a mesh into a full milling plan with G-code at [CarveWizard](https://carvewizard.com).\n\n### Install\n\n```\npip install kerfed.client\n```\n\n### Quick Start\n\n```python\nimport os\nimport kerfed.client as ke\n\nif __name__ == \"__main__\":\n\n   # create a client\n    client = ke.EngineClient(api_key=\"kerfed_api_key_here\")\n\n\n    # Generate a GeometryRequest\n    filename = \"tray.stl.zip\"\n    with open(filename, \"rb\") as f:\n        request = ke.GeometryRequest(\n            source=ke.FileBlob(\n                name=filename,\n                data=f.read(),\n            ),\n            source_units=\"inches\",\n        )\n\n    # Start the geometry request running in the cloud.\n    task_id = client.geometry_start(request, upload=True)\n\n    # This will either return a `GeometryReponse` or raise an error.\n    response = client.geometry_result(task_id=task_id)\n```\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2024 Kerfed, Inc.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Library for analyzing CAD geometry.",
    "version": "0.1.8",
    "project_urls": {
        "Homepage": "https://github.com/kerfed/client"
    },
    "split_keywords": [
        "manufacturing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c615acd5a7f22290fbaa16d7e315a9af4b915172485da20049a77bf09a9e55c1",
                "md5": "da9f80b190d9be45044efce77b05e93e",
                "sha256": "22328a499a3e9f5f638bd5ec6166a8f454e4eae05b36b1e414e3223c4f66d582"
            },
            "downloads": -1,
            "filename": "kerfed.client-0.1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da9f80b190d9be45044efce77b05e93e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9105,
            "upload_time": "2024-03-21T21:35:18",
            "upload_time_iso_8601": "2024-03-21T21:35:18.758796Z",
            "url": "https://files.pythonhosted.org/packages/c6/15/acd5a7f22290fbaa16d7e315a9af4b915172485da20049a77bf09a9e55c1/kerfed.client-0.1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-21 21:35:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kerfed",
    "github_project": "client",
    "github_not_found": true,
    "lcname": "kerfed.client"
}
        
Elapsed time: 0.21056s