Skip to content

core

core

Defines inputs

ArrayInput pydantic-model

Bases: Input

Show JSON schema:
{
  "$defs": {
    "ScalarInput": {
      "additionalProperties": true,
      "description": "Defines a numeric input.  Behaves as a numeric value per \nthe [emulating numeric types](https://docs.python.org/3/reference/datamodel.html#object.__int__)\ndocumentation.\n\nAttributes:\n    name (str): Name of the input\n    value (float|int|bool): Scalar input value",
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "integer"
            },
            {
              "type": "boolean"
            }
          ],
          "title": "Value"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "title": "ScalarInput",
      "type": "object"
    }
  },
  "additionalProperties": true,
  "description": "    ",
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    },
    "value": {
      "dtype": "process_manager.inputs.core.ScalarInput",
      "items": {
        "$ref": "#/$defs/ScalarInput"
      },
      "title": "Value",
      "type": "array"
    }
  },
  "required": [
    "name",
    "value"
  ],
  "title": "ArrayInput",
  "type": "object"
}

Fields:

Input pydantic-model

Bases: BaseModel

Base class for process_manager inputs

Attributes:

Name Type Description
name str

Name of the input

Show JSON schema:
{
  "additionalProperties": true,
  "description": "Base class for `process_manager` inputs\n\nAttributes:\n    name (str): Name of the input",
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "title": "Input",
  "type": "object"
}

Config:

  • arbitrary_types_allowed: True
  • extra: 'allow'

Fields:

Inputs pydantic-model

Bases: BaseModel

Contains inputs

Show JSON schema:
{
  "$defs": {
    "Input": {
      "additionalProperties": true,
      "description": "Base class for `process_manager` inputs\n\nAttributes:\n    name (str): Name of the input",
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "Input",
      "type": "object"
    }
  },
  "description": "Contains inputs",
  "properties": {
    "inputs": {
      "items": {
        "$ref": "#/$defs/Input"
      },
      "title": "Inputs",
      "type": "array"
    }
  },
  "required": [
    "inputs"
  ],
  "title": "Inputs",
  "type": "object"
}

Fields:

ScalarInput pydantic-model

Bases: Input

Defines a numeric input. Behaves as a numeric value per the emulating numeric types documentation.

Attributes:

Name Type Description
name str

Name of the input

value float | int | bool

Scalar input value

Show JSON schema:
{
  "additionalProperties": true,
  "description": "Defines a numeric input.  Behaves as a numeric value per \nthe [emulating numeric types](https://docs.python.org/3/reference/datamodel.html#object.__int__)\ndocumentation.\n\nAttributes:\n    name (str): Name of the input\n    value (float|int|bool): Scalar input value",
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    },
    "value": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "integer"
        },
        {
          "type": "boolean"
        }
      ],
      "title": "Value"
    }
  },
  "required": [
    "name",
    "value"
  ],
  "title": "ScalarInput",
  "type": "object"
}

Config:

  • arbitrary_types_allowed: True
  • extra: 'allow'

Fields:

__abs__

__abs__()
Source code in src/process_manager/inputs/core.py
def __abs__(self):
    """"""
    return self.value.__abs__()

__add__

__add__(other)
Source code in src/process_manager/inputs/core.py
def __add__(self, other):
    """"""
    return self.value + getattr(other, 'value', other)

__and__

__and__(other)
Source code in src/process_manager/inputs/core.py
def __and__(self, other):
    """"""
    if not isinstance(other, int):
        return NotImplemented
    else:
        return self.value.__and__(getattr(other, 'value', other))

__divmod__

__divmod__(other)
Source code in src/process_manager/inputs/core.py
def __divmod__(self, other):
    """"""
    _ = getattr(other, 'value', other)
    return (self.value//_, self.value%_)

__floordiv__

__floordiv__(other)
Source code in src/process_manager/inputs/core.py
def __floordiv__(self, other):
    """"""
    return self.value // getattr(other, 'value', other)

__iadd__

__iadd__(other)
Source code in src/process_manager/inputs/core.py
def __iadd__(self, other):
    """"""
    return self.value.__iadd__(getattr(other, 'value', other))

__iand__

__iand__(other)
Source code in src/process_manager/inputs/core.py
def __iand__(self, other):
    """"""
    return self.value.__iand__(getattr(other, 'value', other))

__ifloordiv__

__ifloordiv__(other)
Source code in src/process_manager/inputs/core.py
def __ifloordiv__(self, other):
    """"""
    return self.value.__ifloordiv__(getattr(other, 'value', other))

__ilshift__

__ilshift__(other)
Source code in src/process_manager/inputs/core.py
def __ilshift__(self, other):
    """"""
    return self.value.__ilshift__(getattr(other, 'value', other))

__imatmul__

__imatmul__(other)
Source code in src/process_manager/inputs/core.py
def __imatmul__(self, other):
    """"""
    return self.value.__imatmul__(getattr(other, 'value', other))

__imod__

__imod__(other)
Source code in src/process_manager/inputs/core.py
def __imod__(self, other):
    """"""
    return self.value.__imod__(getattr(other, 'value', other))

__imul__

__imul__(other)
Source code in src/process_manager/inputs/core.py
def __imul__(self, other):
    """"""
    return self.value.__imul__(getattr(other, 'value', other))

__invert__

__invert__()
Source code in src/process_manager/inputs/core.py
def __invert__(self):
    """"""
    return self.value.__invert__()

__ior__

__ior__(other)
Source code in src/process_manager/inputs/core.py
def __ior__(self, other):
    """"""
    return self.value.__ior__(getattr(other, 'value', other))

__ipow__

__ipow__(other, modulo: int | None = None)
Source code in src/process_manager/inputs/core.py
def __ipow__(self, other, modulo:int|None=None):
    """"""
    return self.value.__ipow__(getattr(other, 'value', other), modulo=modulo)

__irshift__

__irshift__(other)
Source code in src/process_manager/inputs/core.py
def __irshift__(self, other):
    """"""
    return self.value.__irshift__(getattr(other, 'value', other))

__isub__

__isub__(other)
Source code in src/process_manager/inputs/core.py
def __isub__(self, other):
    """"""
    return self.value.__isub__(getattr(other, 'value', other))

__itruediv__

__itruediv__(other)
Source code in src/process_manager/inputs/core.py
def __itruediv__(self, other):
    """"""
    return self.value.__itruediv__(getattr(other, 'value', other))

__ixor__

__ixor__(other)
Source code in src/process_manager/inputs/core.py
def __ixor__(self, other):
    """"""
    return self.value.__ixor__(getattr(other, 'value', other))

__lshift__

__lshift__(other: int | ScalarInput)
Source code in src/process_manager/inputs/core.py
def __lshift__(self, other: int|ScalarInput):
    """"""
    if not isinstance(other, int):
        return NotImplemented
    else:
        return self.value.__lshift__(getattr(other, 'value', other))

__matmul__

__matmul__(other)
Source code in src/process_manager/inputs/core.py
def __matmul__(self, other):
    """"""
    return self.value @ getattr(other, 'value', other)

__mod__

__mod__(other)
Source code in src/process_manager/inputs/core.py
def __mod__(self, other):
    """"""
    return self.value % getattr(other, 'value', other)

__mul__

__mul__(other)
Source code in src/process_manager/inputs/core.py
def __mul__(self, other):
    """"""
    return self.value * getattr(other, 'value', other)

__neg__

__neg__()
Source code in src/process_manager/inputs/core.py
def __neg__(self):
    """"""
    return self.value.__neg__()

__or__

__or__(other)
Source code in src/process_manager/inputs/core.py
def __or__(self, other):
    """"""
    if not isinstance(other, int):
        return NotImplemented
    else:
        return self.value.__or__(getattr(other, 'value', other))

__pos__

__pos__()
Source code in src/process_manager/inputs/core.py
def __pos__(self):
    """"""
    return self.value.__pos__()

__pow__

__pow__(other, modulo: int | ScalarInput | None = None)
Source code in src/process_manager/inputs/core.py
def __pow__(self, other, modulo:int|ScalarInput|None=None):
    """"""
    return pow(self.value, getattr(other, 'value', other), modulo)

__radd__

__radd__(other)
Source code in src/process_manager/inputs/core.py
def __radd__(self, other):
    """
    """
    return getattr(other, 'value', other).__add__(self.value)

__rand__

__rand__(other)
Source code in src/process_manager/inputs/core.py
def __rand__(self, other):
    """
    """
    return getattr(other, 'value', other).__and__(self.value)

__rdivmod__

__rdivmod__(other)
Source code in src/process_manager/inputs/core.py
def __rdivmod__(self, other):
    """
    """
    return getattr(other, 'value', other).__divmod__(self.value)

__rfloordiv__

__rfloordiv__(other)
Source code in src/process_manager/inputs/core.py
def __rfloordiv__(self, other):
    """
    """
    return getattr(other, 'value', other).__floordiv__(self.value)

__rlshift__

__rlshift__(other)
Source code in src/process_manager/inputs/core.py
def __rlshift__(self, other):
    """
    """
    return getattr(other, 'value', other).__lshift__(self.value)

__rmatmul__

__rmatmul__(other)
Source code in src/process_manager/inputs/core.py
def __rmatmul__(self, other):
    """
    """
    return getattr(other, 'value', other).__matmul__(self.value)

__rmod__

__rmod__(other)
Source code in src/process_manager/inputs/core.py
def __rmod__(self, other):
    """
    """
    return getattr(other, 'value', other).__mod__(self.value)

__rmul__

__rmul__(other)
Source code in src/process_manager/inputs/core.py
def __rmul__(self, other):
    """
    """
    return getattr(other, 'value', other).__mul__(self.value)

__ror__

__ror__(other)
Source code in src/process_manager/inputs/core.py
def __ror__(self, other):
    """
    """
    return getattr(other, 'value', other).__or__(self.value)

__rpow__

__rpow__(other, modulo: int | ScalarInput | None = None)
Source code in src/process_manager/inputs/core.py
def __rpow__(self, other, modulo:int|ScalarInput|None=None):
    """
    """
    return getattr(other, 'value', other).__pow__(self.value, modulo)

__rrshift__

__rrshift__(other)
Source code in src/process_manager/inputs/core.py
def __rrshift__(self, other):
    """
    """
    return getattr(other, 'value', other).__rshift__(self.value)

__rshift__

__rshift__(other)
Source code in src/process_manager/inputs/core.py
def __rshift__(self, other):
    """"""
    if not isinstance(other, int):
        return NotImplemented
    else:
        return self.value.__rshift__(getattr(other, 'value', other))

__rsub__

__rsub__(other)
Source code in src/process_manager/inputs/core.py
def __rsub__(self, other):
    """
    """
    return getattr(other, 'value', other).__sub__(self.value)

__rtruediv__

__rtruediv__(other)
Source code in src/process_manager/inputs/core.py
def __rtruediv__(self, other):
    """
    """
    return getattr(other, 'value', other).__truediv__(self.value)

__rxor__

__rxor__(other)
Source code in src/process_manager/inputs/core.py
def __rxor__(self, other):
    """
    """
    return getattr(other, 'value', other).__xor__(self.value)

__sub__

__sub__(other)
Source code in src/process_manager/inputs/core.py
def __sub__(self, other):
    """"""
    return self.value - getattr(other, 'value', other)

__truediv__

__truediv__(other)
Source code in src/process_manager/inputs/core.py
def __truediv__(self, other):
    """"""
    return self.value / getattr(other, 'value', other)

__xor__

__xor__(other)
Source code in src/process_manager/inputs/core.py
def __xor__(self, other):
    """"""
    if not isinstance(other, int):
        return NotImplemented
    else:
        return self.value.__xor__(getattr(other, 'value', other))