https://github.com/ovidner/requests-onshape
The bare necessities for using the Onshape API with Requests.
https://github.com/ovidner/requests-onshape
onshape python python-requests
Last synced: 8 months ago
JSON representation
The bare necessities for using the Onshape API with Requests.
- Host: GitHub
- URL: https://github.com/ovidner/requests-onshape
- Owner: ovidner
- License: mit
- Created: 2018-09-28T13:38:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-19T09:57:44.000Z (over 7 years ago)
- Last Synced: 2025-03-14T10:48:38.851Z (12 months ago)
- Topics: onshape, python, python-requests
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
requests-onshape
================
The bare necessities for using the [Onshape](https://www.onshape.com) API with [Requests](https://github.com/requests/requests).
## Installation
```sh
pip install requests-onshape
```
## Usage examples
```python
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"},
]
},
)
```