text: import requests
  import json
  
  URL = "https://api.hawkflow.ai"
  
  
  def start(process, step, sp1="", sp2="", meta=""):
      try:
          requests.post("%s/start".format(URL), data=__data(process, step, sp1, sp2, meta), headers=__headers(),
                        timeout=1)
      except Exception:
          pass
  
  
  def end(process, step, sp1="", sp2="", meta=""):
      try:
          requests.post("%s/end".format(URL), data=__data(process, step, sp1, sp2, meta), headers=__headers(), timeout=1)
      except Exception:
          pass
  
  
  def exception(process, step, sp1="", sp2="", meta="", exception_text=""):
      try:
          requests.post("%s/exception".format(URL), data=__data(process, step, sp1, sp2, meta, exception_text),
                        headers=__headers(), timeout=1)
      except Exception:
          pass
  
  
  def metrics(process, step, sp1="", sp2="", meta="", items=[]):
      try:
          requests.post("%s/metrics".format(URL), data=__data(process, step, sp1, sp2, meta, items), headers=__headers(),
                        timeout=1)
      except Exception:
          pass
  
  
  def __headers():
      return {
          "Content-type": "application/json",
          "X-Api-Key": "wfsdvgrgfhrhgfsefasdf"
      }
  
  
  def __data(*args, **kwargs):
      return json.dumps(locals())
      # # TOOD: args to json
      # print(locals())
  