Commits

Rael Max  committed b4f93eb

added client basic

  • Participants
  • Parent commits 1f5fe83

Comments (0)

Files changed (4)

File client/__init__.py

Empty file added.

File client/app.py

+# -*- coding: utf-8 -*-
+import requests
+
+SERVER = 'http://127.0.0.1:8001'
+
+datatype = raw_input('Dados em xml ou json: ')
+limit = raw_input('Quantidade de registros: ')
+
+req_url = '%s/get/%s/%s' % (SERVER, datatype, limit)
+
+req = requests.get(req_url)
+
+print req.text

File requirements.txt

+bottle==0.11.3
+gunicorn==0.15.0
+requests==0.14.2

File server/requirements.txt

-bottle==0.11.3
-gunicorn==0.15.0