Skip to content

The bare necessities for using the Onshape API with Requests.

License

Notifications You must be signed in to change notification settings

ovidner/requests-onshape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

requests-onshape

The bare necessities for using the Onshape API with Requests.

Installation

pip install requests-onshape

Usage examples

from requests_onshape import OnshapeSession

onshape = OnshapeSession(access_key="foo", secret_key="bar")
documents = onshape.get("documents", params={"limit": 1}).json()

encoded_configuration = onshape.post(
    "elements/d/foo/e/bar/configurationencodings",
    json={
        "parameters": [
            {"parameterId": "Height", "parameterValue": "200 mm"},
            {"parameterId": "Width", "parameterValue": "20 mm"},
        ]
    },
)

About

The bare necessities for using the Onshape API with Requests.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages