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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e732c4721241350f43d9b7e51fbd080f1b5f299340f261f22ac6f45fec69bebf |
|
MD5 | 07ddc9e9f0600248e4e984af5a776eac |
|
BLAKE2b-256 | b8ba0ad3667141f51b70809cd76341f4c29386c8ab268630008689b1e3b36d2d |
Close
Hashes for kscale_onshape_library-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d111babf8f614499459ae22d25a7669b0c204d5df6fa159206d199e837a76976 |
|
MD5 | b513d6ef56fb7eb7cd6ba76eb777101f |
|
BLAKE2b-256 | 9303029e4271e20cf8d0abd7593d0d56f7e376fc5d089f179189d10c9807dbc2 |