Skip to main content

pollination.cloud

Project description

pollination-sdk

Pollination Cloud API

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements

Python 2.7 and 3.4+

Installation & Usage

pip install

The default way to install pollination-sdk is through PyPi as follows:

pip install pollination-sdk

If you need a specific branch you can install straight from the repository using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import pollination_sdk 

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 pollination_sdk

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

configuration = pollination_sdk.Configuration()

# Retrieve a temporary Acces Token (JWT) using your API key id and secret
API_KEY_ID = 'some-long-id'
API_KEY_SECRET = 'some-long-secret'

auth = pollination_sdk.AuthenticationApi()
api_token = pollination_sdk.Token(
  id=API_KEY_ID,
  secret=API_KEY_SECRET
)

auth_response = auth.login(token)

# Configure Bearer authorization: JWT
configuration.access_token = auth_response.access_token

# Defining host is optional and default to https://api.pollination.cloud
configuration.host = "https://api.pollination.cloud"
# Create an instance of the API class
api_instance = pollination_sdk.WorkflowsApi(pollination_sdk.ApiClient(configuration))
id = 'id_example' # str | 
workflow = pollination_sdk.Workflow() # Workflow | 

try:
    # Update a Workflow
    api_response = api_instance.update(id, workflow)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WorkflowsApi->update: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.pollination.cloud

Class Method HTTP request Description
ArtifactsApi create POST /artifacts Get an Artifact upload link.
ArtifactsApi list GET /artifacts List artifacts in user folder
AuthenticationApi create_api_token POST /auth/api-token Create an API Token
AuthenticationApi delete_api_token DELETE /auth/api-token Delete an API Token
AuthenticationApi get_api_token GET /auth/api-token Get your API Token ID
AuthenticationApi login POST /auth/login Login with API Token
AuthenticationApi rotate_api_token_secret PUT /auth/api-token Rotate an API token secret
ModelApi create POST /models Create a Model
ModelApi create_faces POST /models/{id}/faces Create Model Faces
ModelApi delete DELETE /models/{id} Delete a Model
ModelApi get GET /models/{id} Get a Model
ModelApi get_faces GET /models/{id}/faces Get Model Faces
ModelApi list GET /models Get Models
SensorGridApi create POST /sensor-grids Create a Sensor Grid
SensorGridApi delete DELETE /sensor-grids/{gid} Delete a Sensor Grid
SensorGridApi get GET /sensor-grids/{gid} Get a Sensor Grid
SensorGridApi get_sensors GET /sensor-grids/{gid}/sensors Get Sensors
SensorGridApi list GET /sensor-grids Get Sensor Grids
SimulationsApi create POST /simulations Schedule a simulation
SimulationsApi get GET /simulations/{id} Get a Simulation
SimulationsApi get_simulation_inputs GET /simulations/{id}/inputs Get simulation inputs
SimulationsApi get_simulation_logs GET /simulations/{id}/logs Get simulation logs
SimulationsApi get_simulation_outputs GET /simulations/{id}/outputs Get simulation outputs
SimulationsApi get_task_logs GET /simulations/{id}/task/{task_id}/logs Get a simulation task's logs
SimulationsApi list GET /simulations List simulations
SimulationsApi resubmit POST /simulations/{id}/re-submit re-submit a simulation
SimulationsApi resume PUT /simulations/{id}/resume resume a simulation
SimulationsApi suspend PUT /simulations/{id}/suspend Suspend a simulation
WorkflowsApi create POST /workflows Create a Workflow
WorkflowsApi delete DELETE /workflows/{id} Delete a Workflow
WorkflowsApi get GET /workflows/{id} Get a Workflow
WorkflowsApi list GET /workflows List Workflows
WorkflowsApi update PUT /workflows/{id} Update a Workflow

Documentation For Models

Documentation For Authorization

JWT

  • Type: Bearer authentication

Author

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

pollination-sdk-0.4.2.tar.gz (114.0 kB view details)

Uploaded Source

Built Distribution

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

pollination_sdk-0.4.2-py3-none-any.whl (113.2 kB view details)

Uploaded Python 3

File details

Details for the file pollination-sdk-0.4.2.tar.gz.

File metadata

  • Download URL: pollination-sdk-0.4.2.tar.gz
  • Upload date:
  • Size: 114.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for pollination-sdk-0.4.2.tar.gz
Algorithm Hash digest
SHA256 35eb6e99eb9b255e169fa7708e4cb8ce9b5c8e1e25ac24b608b227a94c45fcbc
MD5 3f4736e6e9ffe40e8514b2a8dc500307
BLAKE2b-256 65be7f4b911970907651f7be878a99e33aa9ec1c2f63c4078c25b875a0826929

See more details on using hashes here.

File details

Details for the file pollination_sdk-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: pollination_sdk-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 113.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for pollination_sdk-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3c93fe8ade8ea940f5fa3d10b11cdcd2ae96ce1072325cdac0285382f6feb8
MD5 5c000c8aad6d54dc1e071496e4ffac80
BLAKE2b-256 cff5966e1e7f9f3407e12e634841ea02ead247621360661c5318d2f96479867e

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