Skip to content

Session API Reference

API documentation for RHAPSODY session management.

Session Class

rhapsody.backends.base.Session()

Manages execution session state and working directory.

This class maintains session-specific information including the current working directory path for task execution.

Initialize a new session with the current working directory.

Sets the session path to the current working directory at the time of initialization.

Source code in src/rhapsody/backends/base.py
def __init__(self):
    """Initialize a new session with the current working directory.

    Sets the session path to the current working directory at the time of initialization.
    """
    self.path = os.getcwd()