title: Passing variables aquired using flask as input to script
body: <p>I have a python setup where one method continuously returns the IDs of scanned RFID chips. Now I cut the cord and have the scanner hooked up to a wifi microcontroller (ESP8266). Every time a chip is scanned a GET request is issued containing the chip's ID.</p>
  
  <p>I put the flask part in a simple script. I don't need anything returned to the ESP8266. I would like to just have a class or functions that just return the collected value. I can print the value to stdout where it appears also with flask's log output but this doesn't really help. How do I pass <code>uid</code> to a different script, what am I missing?</p>
  
  <p>The script in question:</p>
  
  <pre><code>from flask import Flask
  
  app = Flask(__name__)
  
  @app.route('/urlpath/&lt;uid&gt;')
  def rfiduid(uid):
      print uid
  
  if __name__ == '__main__':
      app.run(host='0.0.0.0', debug=False)
  </code></pre>