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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86bffd2bd97e2a749061bfe00b91e46248207d8c74f60b4a89232f3eabfc3878 |
|
MD5 | 52476b57a0d8d2630ee917f0088210b9 |
|
BLAKE2b-256 | 1ea52d73cb0135bb8193019d1824ce4da0e9af6ba4008ae1f57998a8208ed578 |
Close
Hashes for kscale_onshape_library-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a97662d6a8a8e6f604e30902b2415ee9684ab6e2a8760d95ca42cf6ea8000a6 |
|
MD5 | b61426f6b985a002203051e1896e6296 |
|
BLAKE2b-256 | f5177352e5a5fb2d1684c8d6ce91ff41ec55fb1749cbf14119c211fb3956224e |