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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203e7003f8aa021d0d80321b5d221c12b5fd3c4c74dca97dd2568167113d7459 |
|
MD5 | e63a9f95656be138813ebf424d774e97 |
|
BLAKE2b-256 | 0b4fdecfc4dbf83653ded0843187e2d362532beba63e5f0d0b15a67d09891b9b |
Close
Hashes for kscale_onshape_library-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ada17176cd217faacf6581ce4e0cc528a52d3fd127c70d7a977f93d6a787f86d |
|
MD5 | ea10748ff194f42f5bfa185dcd882b9e |
|
BLAKE2b-256 | bbf431b55722b0ca50a60b9a1db5c4924026959d1660e558ad45e149c6cf89d0 |