Python API samples
module pephubclient.modules.sample
Global Variables
Section titled “Global Variables”- PEPHUB_SAMPLE_URL
class PEPHubSample
Section titled “class PEPHubSample”Class for managing samples in PEPhub and provides methods for getting, creating, updating and removing samples. This class is not related to peppy.Sample class.
method __init__
Section titled “method __init__”__init__(jwt_data: str = None)- :param jwt_data: jwt token for authorization
method create
Section titled “method create”create( namespace: str, name: str, tag: str, sample_name: str, sample_dict: dict, overwrite: bool = False) → NoneCreate sample in project in PEPhub.
- :param namespace: namespace of project
- :param name: name of project
- :param tag: tag of project
- :param sample_dict: sample dict
- :param sample_name: sample name
- :param overwrite: overwrite sample if it exists :return: None
method get
Section titled “method get”get(namespace: str, name: str, tag: str, sample_name: str = None) → dictGet sample from project in PEPhub.
- :param namespace: namespace of project
- :param name: name of project
- :param tag: tag of project
- :param sample_name: sample name :return: Sample object
method remove
Section titled “method remove”remove(namespace: str, name: str, tag: str, sample_name: str)Remove sample from project in PEPhub.
- :param namespace: namespace of project
- :param name: name of project
- :param tag: tag of project
- :param sample_name: sample name :return: None
method update
Section titled “method update”update(namespace: str, name: str, tag: str, sample_name: str, sample_dict: dict)Update sample in project in PEPhub.
- :param namespace: namespace of project
- :param name: name of project
- :param tag: tag of project
- :param sample_name: sample name
- :param sample_dict: sample dict, that contain elements to update, or :return: None
This file was automatically generated via lazydocs.