lancium.api.Resources

Resources

This is an object that retieves resources provided by Lancium Compute.

class Resources:
Resources(**kwargs)

This is an object that represent gets the resources of Lancium Compute.

PARAMETERS:

  • __key: api key
def resource_helper(type, to_check):

Helper method for the static methods. Retrieves requested information.

def session_checker(**kwargs):
@staticmethod
def all(**kwargs):

Retrieves a list of available resource types.

GET /resources

ARGS:

  • **kwargs (dictionary): can contain auth key to perform this method using a different acocunt {'auth': ANOTHER_API_KEY}

Returns: list: list of available resources

@staticmethod
def gpus(**kwargs):

Retrieves a list of available GPUs.

GET /resources/gpus

ARGS:

  • **kwargs (dictionary): can contain auth key to perform this method using a different acocunt {'auth': ANOTHER_API_KEY}

Returns: list: list of available GPUs

@staticmethod
def mpi(**kwargs):

Retrieves a list of support MPI implementations.

GET /resources/mpi

ARGS:

  • **kwargs (dictionary): can contain auth key to perform this method using a different acocunt {'auth': ANOTHER_API_KEY}

Returns: list: list of supported implementations

@staticmethod
def qos(**kwargs):

Retrieves a list of available qos levels.

GET /resources/qos

ARGS:

  • **kwargs (dictionary): can contain auth key to perform this method using a different acocunt {'auth': ANOTHER_API_KEY}

Returns: list: list of available levels

@staticmethod
def defaults(**kwargs):

Retrieves a list of default job resource values.

GET /resources/defaults

ARGS:

  • **kwargs (dictionary): can contain auth key to perform this method using a different acocunt {'auth': ANOTHER_API_KEY}

Returns: list: list of defaults

@staticmethod
def limits(**kwargs):

Retrieves a list of default job resource limits.

GET /resources/limits

ARGS:

  • **kwargs (dictionary): can contain auth key to perform this method using a different acocunt {'auth': ANOTHER_API_KEY}

Returns: list: list of limits