title: How to call another service post method from another service in flask
body: <p>I am developing a flask application separating API and the service layer. For example, I have one service named ServiceOne and another ServiceTwo. I want to invoke serviceTwo's post method from serviceOne. Hence serviceTwo's post method read data using flask request then what is the right way to do that?</p>
  
  <pre><code>#service 1:
  
  service_two = ServiceTwo()
  req_data = {'': '', '':''}
  service_two.post()
  
  #service 2:
  from flask import request
  
  def post():
    req_data = request.json
  </code></pre>
  
  <p>P.S: I want to avoid going through controller layer to access the service because as far I know this is not good practice to call controller layer within the service layer.</p>