class_docstr: Interact with Alibaba Cloud OSS, using the oss2 library.
class_docstr_tok: ["Interact","with","Alibaba","Cloud","OSS",",","using","the","oss2","library","."]
docstr: Append string to a remote existing file.
  
  :param bucket_name: the name of the bucket
  :param content: content to be appended
  :param key: oss bucket key
  :param pos: position of the existing file where the content will be appended
docstr_tok: ["Append","string","to","a","remote","existing","file",".",":","param","bucket_name",":","the","name","of","the","bucket",":","param","content",":","content","to","be","appended",":","param","key",":","oss","bucket","key",":","param","pos",":","position","of","the","existing","file","where","the","content","will","be","appended"]
code: def append_string(
      self, bucket_name: str | None, content: str, key: str, pos: int
  ) -> None:
      """
      Append string to a remote existing file.
  
      :param bucket_name: the name of the bucket
      :param content: content to be appended
      :param key: oss bucket key
      :param pos: position of the existing file where the content will be appended
      """
      self.log.info("Write oss bucket. key: %s, pos: %s", key, pos)
      try:
          self.get_bucket(bucket_name).append_object(key, pos, content)
      except Exception as e:
          self.log.error(e)
          raise AirflowException(
              f"Errors when append string for object: {key}"
          )
  
imports: from __future__ import annotations
  from functools import wraps
  from inspect import signature
  from typing import TYPE_CHECKING, Callable, TypeVar, cast
  from urllib.parse import urlsplit
  import oss2
  from oss2.exceptions import ClientError
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 13 for calling the OSSHook obj's underlying member method code with example usage: obj.append_string(bucket_name, content, key, pos) without return types