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)
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.4.tar.gz
(10.7 kB
view hashes)
Built Distributions
Close
Hashes for nanohub_remote-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0268b4a70ece6acfb54383c247f0d8746a5bc417cb7a9f98c0aa9887c336ce07 |
|
MD5 | 70cd9242d0632a1350dcf12872f7809c |
|
BLAKE2b-256 | 93909510c48ff8ec35923f6228a5d133d1ea5cfb5f4cc73b7576fac9d583bf1b |
Close
Hashes for nanohub_remote-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a93da618a55e4ded91faa8ad9c9c46afa058b34923f3a2cfe57901a15c22de |
|
MD5 | 9d51f76c8d557ce94c1bd674eede71d3 |
|
BLAKE2b-256 | 9f6d1b4d40811940b75bf1050b3a23a5bc783ebcdbb5e4864687ee47a47eca44 |