Skip to main content

A python class to easily interact with Onshape's Variables API

Project description

Onshape's Variables API Helper

A python class to easily interact with Onshape's Variables API

Prerequisites

Create API Keys

new_keys

  • Check the blue boxes and click on "Create API key"

create_keys

  • copy and save both keys in a file (I recommend you save it in a .env file. What is a .env? See this article!)

save_keys

Installation

You can install onshape-variables via pip:

pip install onshape-variables

Usage

from onshape_variables.variables import Variables

# create variables object
my_vs = Variables(api_keys, did, wid)

# create a varaible studio 
my_vs.create_varaible_studio(name="My Varaible Studio")

Check out the example notebook

Also see Onshape's documentation and API explorer

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onshape_variables-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

onshape_variables-0.1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page