A set of tools to run nanohub web apis
Project description
Nanohubtools
A set of tools/apps to run on nanohub
Installation
pip install nanohub-remote
Usage
import nanohub.remote as nr auth_data = { 'client_id': XXXXXXXX, 'client_secret': XXXXXXXX, 'grant_type': 'password', 'username': XXXXXXXX, 'password': XXXXXXXX } # to get username and password, register on nanohub.org (https://nanohub.org/register/) # to get client id and secret, create a web application (https://nanohub.org/developer/api/applications/new), use "https://127.0.0.1" as Redirect URL session = nr.Session(auth_data)
Available Nanohub Points
Tools
TOOLNAME = '' # valid Nanoohub tool name e.g. pntoy tool = nr.Tool(auth_data) # Get Available input parameters params = tool.getToolParameters(TOOLNAME) # Submit a simulation experiment job_id = tool.submitTool(params) # Check Status status = tool.checkStatus(job_id['job_id']) # Get Results results = tool.getResults(job_id['job_id']) # Submit an wait for results results = tool.submitTool(params, wait_results=True)
Sim2ls
TOOLNAME = '' # valid Nanoohub tool name e.g. pntoy s2l = nr.Sim2l(auth_data) # Get Available input parameters params = s2l.getToolParameters(TOOLNAME) # Submit a simulation experiment job_id = s2l.submitTool(params) # Check Status status = s2l.checkStatus(job_id['job_id']) # Get Results results = s2l.getResults(job_id['job_id']) # Submit an wait for results results = s2l.submitTool(params, wait_results=True)
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
nanohub-remote-0.0.6.tar.gz
(11.9 kB
view hashes)
Built Distribution
Close
Hashes for nanohub_remote-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b309da28dbeaf0c25d8d1654130cf5d4bf8af921b781fd824bcd8d3fd2f864f |
|
MD5 | 4a6dbc8b3b831190b26a4d2a64611f00 |
|
BLAKE2-256 | 6be3ae829757a6dc9d0bb2fff829b8372524c60e186e2c7c0e3c49dabf01930b |