K-Scale's library for programmatically interacting with OnShape
Project description
K-Scale OnShape Library
This library is what we use at K-Scale for interacting with OnShape. It is a wrapper around the OnShape API that allows us to easily import parts from OnShape into our projects.
Getting Started
Install the library using pip:
pip install kscale-onshape-library
Or, if you're developing the library, do:
git clone git@github.com:kscalelabs/onshape.git
cd onshape
pip install -e '.[dev]'
In order to access the OnShape API, you need to define ONSHAPE_ACCESS_KEY
and ONSHAPE_SECRET_KEY
using a key generated here.
Usage
To convert an assembly to a URDF, use the following command:
kol urdf https://cad.onshape.com/documents/DDDDDDDD/w/WWWWWWWW/e/EEEEEEEE
You can visualize the resulting URDF using PyBullet:
pip install pybullet
kol pybullet robot/<urdf-name>.urdf
Notes
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 Distribution
Built Distribution
Close
Hashes for kscale-onshape-library-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dbf13262d442c13dc9ee6f0a95fc71f21b3e76e139c8d7533dc621e606c77f4 |
|
MD5 | 126d2a390f9b9c63231b5de86c83f6d7 |
|
BLAKE2b-256 | d0c2c408afad6367b05c79bc9f3cafd8909daef14209dc8f7dd603092c215860 |
Close
Hashes for kscale_onshape_library-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe450b3191651d559640cafd2fa5b4ce1bba8ac1aba98d33989fa688e3c27dc |
|
MD5 | e9961c4988abe69e9ead18cea1027042 |
|
BLAKE2b-256 | 03e942d3054b5d451515e0ddb7ac91e5d88f72057e9f8e5862b877faeb70b8f7 |