original_docstring: 
          Task for uploading files to an SFTP server.
  
          Args:
              - host (str): Name of the host to use.
              - username (str): Username used to authenticate.
              - password (str): Password used to authenticate.
              - port_number (int): The port number to connect to the server.
              - remote_path (str): The remote SFTP file path.
              - local_path (str): The local file path to upload from.
  
          Raises:
              - ValueError: Raised if a required parameter is not supplied.
              - ClientError: Raised if exception occurs when connecting/uploading from the server.
          
docstring: Task for uploading files to an SFTP server.
docstring_tokens: Task for uploading files to an SFTP server .
code: def run(
          self,
          host: str = None,
          username: str = None,
          password: str = None,
          port_number: int = None,
          remote_path: str = None,
          local_path: str = None,
      ):
          """
          Task for uploading files to an SFTP server.
  
          Args:
              - host (str): Name of the host to use.
              - username (str): Username used to authenticate.
              - password (str): Password used to authenticate.
              - port_number (int): The port number to connect to the server.
              - remote_path (str): The remote SFTP file path.
              - local_path (str): The local file path to upload from.
  
          Raises:
              - ValueError: Raised if a required parameter is not supplied.
              - ClientError: Raised if exception occurs when connecting/uploading from the server.
          """
          if not host:
              raise ValueError("A host name must be provided")
          if not username:
              raise ValueError("User name must be provided")
          if not password:
              raise ValueError("A password must be provided")
          if not port_number:
              raise ValueError("A port_number name must be provided")
          if not remote_path:
              raise ValueError("A remote_path must be provided")
          if not local_path:
              raise ValueError("A local_path must be provided")
  
          with contextlib.closing(self._create_connection()) as conn:
              conn.put(
                  localpath=local_path,
                  remotepath=remote_path,
                  confirm=True,
              )
code_tokens: def run ( self , host : str = None , username : str = None , password : str = None , port_number : int = None , remote_path : str = None , local_path : str = None , ) : if not host : raise ValueError ( "A host name must be provided" ) if not username : raise ValueError ( "User name must be provided" ) if not password : raise ValueError ( "A password must be provided" ) if not port_number : raise ValueError ( "A port_number name must be provided" ) if not remote_path : raise ValueError ( "A remote_path must be provided" ) if not local_path : raise ValueError ( "A local_path must be provided" ) with contextlib . closing ( self . _create_connection ( ) ) as conn : conn . put ( localpath = local_path , remotepath = remote_path , confirm = True , )
short_docstring: Task for uploading files to an SFTP server.
short_docstring_tokens: Task for uploading files to an SFTP server .
comment: """
          Task for uploading files to an SFTP server.
  
          Args:
              - host (str): Name of the host to use.
              - username (str): Username used to authenticate.
              - password (str): Password used to authenticate.
              - port_number (int): The port number to connect to the server.
              - remote_path (str): The remote SFTP file path.
              - local_path (str): The local file path to upload from.
  
          Raises:
              - ValueError: Raised if a required parameter is not supplied.
              - ClientError: Raised if exception occurs when connecting/uploading from the server.
          """