Skip to content

Software versions

This class is accessed via the versions property on a CamillaClient instance.

It provides methods for reading the software versions.

class: Versions

Bases: _CommandGroup

Version info

Source code in camilladsp\versions.py
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class Versions(_CommandGroup):
    """
    Version info
    """

    def camilladsp(self) -> Optional[Tuple[str, str, str]]:
        """
        Read CamillaDSP version.

        Returns:
            Tuple[List[str], List[str]] | None: A tuple containing the CamillaDSP version,
                as (major, minor, patch).
        """
        return self.client.cdsp_version

    def library(self) -> Tuple[str, str, str]:
        """
        Read pyCamillaDSP library version.

        Returns:
            Tuple[List[str], List[str]] | None: A tuple containing the pyCamillaDSP version,
                as (major, minor, patch).
        """
        ver = VERSION.split(".", 2)
        return (ver[0], ver[1], ver[2])

camilladsp()

Read CamillaDSP version.

Returns:

Type Description
Optional[Tuple[str, str, str]]

Tuple[List[str], List[str]] | None: A tuple containing the CamillaDSP version, as (major, minor, patch).

Source code in camilladsp\versions.py
20
21
22
23
24
25
26
27
28
def camilladsp(self) -> Optional[Tuple[str, str, str]]:
    """
    Read CamillaDSP version.

    Returns:
        Tuple[List[str], List[str]] | None: A tuple containing the CamillaDSP version,
            as (major, minor, patch).
    """
    return self.client.cdsp_version

library()

Read pyCamillaDSP library version.

Returns:

Type Description
Tuple[str, str, str]

Tuple[List[str], List[str]] | None: A tuple containing the pyCamillaDSP version, as (major, minor, patch).

Source code in camilladsp\versions.py
30
31
32
33
34
35
36
37
38
39
def library(self) -> Tuple[str, str, str]:
    """
    Read pyCamillaDSP library version.

    Returns:
        Tuple[List[str], List[str]] | None: A tuple containing the pyCamillaDSP version,
            as (major, minor, patch).
    """
    ver = VERSION.split(".", 2)
    return (ver[0], ver[1], ver[2])