From 697165fb632f1add088e7afa0dd44a0bb798ddfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Kmje=C4=8D?= Date: Fri, 22 Jan 2021 20:51:02 +0100 Subject: [PATCH] Create skeleton --- validator/.gitignore | 1 + validator/requirements.txt | 18 ++++++++++++++++++ validator/server.py | 10 ++++++++++ validator/validator.py | 31 +++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 validator/.gitignore create mode 100644 validator/requirements.txt create mode 100644 validator/server.py create mode 100644 validator/validator.py diff --git a/validator/.gitignore b/validator/.gitignore new file mode 100644 index 0000000..bdaab25 --- /dev/null +++ b/validator/.gitignore @@ -0,0 +1 @@ +env/ diff --git a/validator/requirements.txt b/validator/requirements.txt new file mode 100644 index 0000000..f565733 --- /dev/null +++ b/validator/requirements.txt @@ -0,0 +1,18 @@ +certifi==2020.12.5 +chardet==4.0.0 +click==7.1.2 +Flask==1.1.2 +geneea-nlp-client==1.2.0 +idna==2.10 +itsdangerous==1.1.0 +Jinja2==2.11.2 +joblib==1.0.0 +MarkupSafe==1.1.1 +nltk==3.5 +regex==2020.11.13 +requests==2.25.1 +retrying==1.3.3 +six==1.15.0 +tqdm==4.56.0 +urllib3==1.26.2 +Werkzeug==1.0.1 diff --git a/validator/server.py b/validator/server.py new file mode 100644 index 0000000..770473d --- /dev/null +++ b/validator/server.py @@ -0,0 +1,10 @@ +from flask import Flask +import json + +app = Flask(__name__) + +@app.route('/') +def index(): + return json.dumps({"Hello": "World!"}) + +app.run() \ No newline at end of file diff --git a/validator/validator.py b/validator/validator.py new file mode 100644 index 0000000..8bc3cd1 --- /dev/null +++ b/validator/validator.py @@ -0,0 +1,31 @@ +def process_jpg(f): + pass + +def process_pdf(f): + pass + +def process_docx(f): + pass + +def process_file(f): + pass + +def validate_court(lawsuit): + pass + +def validate_accuser(lawsuit): + pass + +# hard to implement +def validate_topic(): + pass + +# also hard to implement +def validate_intent(): + pass + +def validate_signature(): + pass + +def validate_date(): + pass \ No newline at end of file