A client library for the sparkworks rest api
Project description
Management Service for the SparkWorks Processing Engine
This Python package is automatically generated by the Swagger Codegen project:
API version: v2.0
Package version: 1.0.0
Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit http://www.sparkworks.net/
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)
Then import the package:
import sparkworks_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import sparkworks_client
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import sparkworks_client
from sparkworks_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2
configuration = sparkworks_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = sparkworks_client.CommandAPIApi(sparkworks_client.ApiClient(configuration))
uuid = 'uuid_example' # str | The unique identifier of the Actuator Resource
command_dto = sparkworks_client.CommandAPIModel() # CommandAPIModel | commandDto
try:
# Send a command to a SparkWorks Actuator Resource
api_response = api_instance.send_command(uuid, command_dto)
pprint(api_response)
except ApiException as e:
print("Exception when calling CommandAPIApi->send_command: %s\n" % e)
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
File details
Details for the file sparkworksrest-1.0.5.tar.gz.
File metadata
- Download URL: sparkworksrest-1.0.5.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7f743338568b49fd52fd2b6dcc3f7b6fa87cdbe4c05402072da679a9f463b46
|
|
| MD5 |
03c172afc07b0f1064f888fe6f427a71
|
|
| BLAKE2b-256 |
fff836b109def1371c7361f7b1a0095efbb5fdea4030cbd8bbac7e3d64b9dbd6
|