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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd7a7e13c47a8c2445b432dd1fc396dfabb754f6a445843508799ce77b9516f2 |
|
MD5 | 53e6cc5e8b6930e2384d6421d6a2129a |
|
BLAKE2b-256 | a253de8785a2f0a1527de51e6166c8f28357becac210307463a23ea72168e57d |
Close
Hashes for kscale_onshape_library-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f058e9d393b910ab903aaca56740d49546812aee79e245274d53efd045d913d |
|
MD5 | e7b42503c896c3c01ffd792db99b9c02 |
|
BLAKE2b-256 | 543aafcb8cf4c211436d68dd09f4b86b28e6c3d0b2d92c86783b3749b5d53363 |