Qarnot计算软件包
qarnot的Python项目详细描述
基本用法
在computing.qarnot.com上获取令牌和空闲计算时间
在7行中启动Docker容器:
importqarnotconn=qarnot.connection.Connection({'client_auth':'xxxx-mytoken-xxxx'})task=conn.create_task('hello world','docker-batch',4)task.constants["DOCKER_REPO"]="library/ubuntu"task.constants['DOCKER_CMD']='echo hello world from node #${FRAME_ID}!'task.run()
生成文档
要生成sdk文档,可以使用以下命令
make -C doc html
然后在doc/\u build/html/index.html中生成文档索引