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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file onshape_variables-0.1.0.tar.gz.

File metadata

  • Download URL: onshape_variables-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.6 Windows/10

File hashes

Hashes for onshape_variables-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b25aaf96a88c9e45f65f7ad80879a15a0138cbbf611a694cf2bb8eaa9dfa038
MD5 aabbbd9a1ce055618f6c19504773b9ca
BLAKE2b-256 4bc8f874c246c06aaee264c407565e406c50d4f882f03eff7be14f20b90467f9

See more details on using hashes here.

File details

Details for the file onshape_variables-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: onshape_variables-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.6 Windows/10

File hashes

Hashes for onshape_variables-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47576ebf3e725223b837d606369f5145facb963f3905d48060db57ea1f1dc701
MD5 e8dff3320bbb9486d8992da8c8adb2e2
BLAKE2b-256 27d8dbb0eb7da006a692354d274b4514e4cf75ea4d828fd206e81b3f966a4d7e

See more details on using hashes here.

Supported by

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