Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it run in 2022, Fix #17 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .controller.binary_controller import api as binary
from flask import Blueprint
from flask_restplus import Api
from flask_restx import Api

bp = Blueprint('api', __name__)
api = Api(
Expand Down
4 changes: 2 additions & 2 deletions api/app/controller/binary_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
See COPYRIGHT, AUTHORS, LICENSE for more details.
"""

from flask_restplus import Resource
from flask_restx import Resource
from app.model.binary import BinaryDTO
import http
import pandas as pd
import numpy
from flask import request
from flask_restplus import Resource
from flask_restx import Resource
from app.helpers.calculate_features import UNKNOWN_ARCHITECTURE, get_architecture, calculate_features
import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion api/app/model/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
See COPYRIGHT, AUTHORS, LICENSE for more details.
"""

from flask_restplus import Namespace, fields
from flask_restx import Namespace, fields
from werkzeug.datastructures import FileStorage

class BinaryDTO:
Expand Down
22 changes: 20 additions & 2 deletions api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
flask-restplus==0.13.0
aniso8601==9.0.1
attrs==21.4.0
click==8.1.3
Flask==2.1.2
flask-restx==0.5.1
importlib-metadata==4.12.0
importlib-resources==5.8.0
itsdangerous==2.1.2
Jinja2==3.1.2
joblib==1.1.0
jsonschema==4.6.2
MarkupSafe==2.1.1
numpy==1.19.5
pandas==1.3.1
pyrsistent==0.18.1
python-dateutil==2.8.2
pytz==2022.1
scikit-learn==0.24.2
Werkzeug==0.16.1
scipy==1.8.1
six==1.16.0
threadpoolctl==3.1.0
Werkzeug==2.1.2
zipp==3.8.0