# pyinfra.api.host module

class `pyinfra.api.host.``Host`(inventory, name, groups=None)

  Bases: `object`

  Represents a target host. Thin class that links up to facts and host/group data.

  `connect`(state, *args, **kwargs)
  `connection` = None
  `group_data`
  `host_data`
  `print_prefix`
  `put_file`(state, *args, **kwargs)
  `run_shell_command`(state, *args, **kwargs)

class `pyinfra.api.host.``HostFacts`(inventory, name)

  Bases: `object`