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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc6df5bac4bf536e6a7efc6e212314613a48c26528363e55c4fd25cb495ce2b7 |
|
MD5 | cf01d8e2baa9f280b153c6a7b06066be |
|
BLAKE2b-256 | 3ce7624b1c959b0e055c8dc10c3f1268612ce4ad04e7fa7735bad9fa94e5f6b2 |
Close
Hashes for kscale_onshape_library-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd6ed5bb09de98c3b60d3d385b3d10a6c07a846485e15dea96a8c05cab90fc77 |
|
MD5 | 1c0f949b0a52604e768099a709d21fb9 |
|
BLAKE2b-256 | c8c30659c734657c9611127599d01b610fad7292accf3621f1cbd1b9d65af195 |