CANFAR Python Client¶
Overview
A lightweight python interface to the CANFAR Science Platform.
Installation
pip intall canfar
Session Creation Example
Python Session Creation
from canfar.sessions import AsyncSession
session = AsyncSession()
sessions = await session.create(
name="test",
image="images.canfar.net/skaha/base-notebook:latest",
cores=2,
ram=8,
gpu=1,
kind="headless",
cmd="env",
env={"KEY": "VALUE"},
replicas=3,
)