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 show-urdf 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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f0877d7eaa9097bee681776940aaed721dfdbb167daa1267b6a32c473865b2 |
|
MD5 | 47f2c8f8a82bed384153d8b1134de585 |
|
BLAKE2b-256 | 3c4f67ca0cc0d1874815620511cfb2ff42c9f174b01d80478ec4ff2a01729734 |
Close
Hashes for kscale_onshape_library-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8038392558840d26c514652c4906bf92a6dad3114302848ef6f52cc79f89f48 |
|
MD5 | 4fbd4f0e3de812932f903c6e8a002cd9 |
|
BLAKE2b-256 | ae59f6a82ed27d2d67b359a663656465c6ec0d151c81478a8e6b51fb72456237 |