match-predicting-ann-server-pub-api 5.2__py3-none-any.whl → 5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of match-predicting-ann-server-pub-api might be problematic. Click here for more details.
- match_predicting_ann_server_pub_api/controllers/dummy_controller.py +22 -0
- match_predicting_ann_server_pub_api/models/__init__.py +2 -0
- match_predicting_ann_server_pub_api/models/dummy_dto.py +63 -0
- match_predicting_ann_server_pub_api/models/training_progress_message.py +87 -0
- match_predicting_ann_server_pub_api/openapi/openapi.yaml +38 -0
- {match_predicting_ann_server_pub_api-5.2.dist-info → match_predicting_ann_server_pub_api-5.3.dist-info}/METADATA +1 -1
- {match_predicting_ann_server_pub_api-5.2.dist-info → match_predicting_ann_server_pub_api-5.3.dist-info}/RECORD +10 -7
- {match_predicting_ann_server_pub_api-5.2.dist-info → match_predicting_ann_server_pub_api-5.3.dist-info}/WHEEL +0 -0
- {match_predicting_ann_server_pub_api-5.2.dist-info → match_predicting_ann_server_pub_api-5.3.dist-info}/entry_points.txt +0 -0
- {match_predicting_ann_server_pub_api-5.2.dist-info → match_predicting_ann_server_pub_api-5.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
from flask import request, jsonify, Flask
|
|
3
|
+
from flask.views import MethodView
|
|
4
|
+
from injector import Injector, inject
|
|
5
|
+
|
|
6
|
+
from match_predicting_ann_server_pub_api.models.dummy_dto import DummyDTO
|
|
7
|
+
|
|
8
|
+
class DummyControllerApi(MethodView):
|
|
9
|
+
def __init__(self):
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
def dummy(self):
|
|
13
|
+
"""GET /dummy
|
|
14
|
+
dummy
|
|
15
|
+
"""
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def register_DummyController_routes(app: Flask, injector: Injector):
|
|
20
|
+
controller = injector.get(DummyControllerApi)
|
|
21
|
+
app.add_url_rule("/dummy", view_func=controller.dummy, methods=['GET'])
|
|
22
|
+
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
2
|
# import models into model package
|
|
3
|
+
from match_predicting_ann_server_pub_api.models.dummy_dto import DummyDTO
|
|
3
4
|
from match_predicting_ann_server_pub_api.models.network_dto import NetworkDTO
|
|
4
5
|
from match_predicting_ann_server_pub_api.models.predicting_data import PredictingData
|
|
5
6
|
from match_predicting_ann_server_pub_api.models.training_data import TrainingData
|
|
6
7
|
from match_predicting_ann_server_pub_api.models.training_match_dto import TrainingMatchDTO
|
|
7
8
|
from match_predicting_ann_server_pub_api.models.training_network_dto import TrainingNetworkDTO
|
|
9
|
+
from match_predicting_ann_server_pub_api.models.training_progress_message import TrainingProgressMessage
|
|
8
10
|
from match_predicting_ann_server_pub_api.models.training_request_dto import TrainingRequestDTO
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
from datetime import date, datetime # noqa: F401
|
|
2
|
+
|
|
3
|
+
from typing import List, Dict # noqa: F401
|
|
4
|
+
|
|
5
|
+
from match_predicting_ann_server_pub_api.models.base_model import Model
|
|
6
|
+
from match_predicting_ann_server_pub_api.models.training_progress_message import TrainingProgressMessage
|
|
7
|
+
from match_predicting_ann_server_pub_api import util
|
|
8
|
+
|
|
9
|
+
from match_predicting_ann_server_pub_api.models.training_progress_message import TrainingProgressMessage # noqa: E501
|
|
10
|
+
|
|
11
|
+
class DummyDTO(Model):
|
|
12
|
+
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
|
|
14
|
+
Do not edit the class manually.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, training_progress_message=None): # noqa: E501
|
|
18
|
+
"""DummyDTO - a model defined in OpenAPI
|
|
19
|
+
|
|
20
|
+
:param training_progress_message: The training_progress_message of this DummyDTO. # noqa: E501
|
|
21
|
+
:type training_progress_message: TrainingProgressMessage
|
|
22
|
+
"""
|
|
23
|
+
self.openapi_types = {
|
|
24
|
+
'training_progress_message': TrainingProgressMessage
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
self.attribute_map = {
|
|
28
|
+
'training_progress_message': 'trainingProgressMessage'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
self._training_progress_message = training_progress_message
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_dict(cls, dikt) -> 'DummyDTO':
|
|
35
|
+
"""Returns the dict as a model
|
|
36
|
+
|
|
37
|
+
:param dikt: A dict.
|
|
38
|
+
:type: dict
|
|
39
|
+
:return: The DummyDTO of this DummyDTO. # noqa: E501
|
|
40
|
+
:rtype: DummyDTO
|
|
41
|
+
"""
|
|
42
|
+
return util.deserialize_model(dikt, cls)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def training_progress_message(self) -> TrainingProgressMessage:
|
|
46
|
+
"""Gets the training_progress_message of this DummyDTO.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
:return: The training_progress_message of this DummyDTO.
|
|
50
|
+
:rtype: TrainingProgressMessage
|
|
51
|
+
"""
|
|
52
|
+
return self._training_progress_message
|
|
53
|
+
|
|
54
|
+
@training_progress_message.setter
|
|
55
|
+
def training_progress_message(self, training_progress_message: TrainingProgressMessage):
|
|
56
|
+
"""Sets the training_progress_message of this DummyDTO.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:param training_progress_message: The training_progress_message of this DummyDTO.
|
|
60
|
+
:type training_progress_message: TrainingProgressMessage
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
self._training_progress_message = training_progress_message
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from datetime import date, datetime # noqa: F401
|
|
2
|
+
|
|
3
|
+
from typing import List, Dict # noqa: F401
|
|
4
|
+
|
|
5
|
+
from match_predicting_ann_server_pub_api.models.base_model import Model
|
|
6
|
+
from match_predicting_ann_server_pub_api import util
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class TrainingProgressMessage(Model):
|
|
10
|
+
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, progress=None, precision=None): # noqa: E501
|
|
16
|
+
"""TrainingProgressMessage - a model defined in OpenAPI
|
|
17
|
+
|
|
18
|
+
:param progress: The progress of this TrainingProgressMessage. # noqa: E501
|
|
19
|
+
:type progress: float
|
|
20
|
+
:param precision: The precision of this TrainingProgressMessage. # noqa: E501
|
|
21
|
+
:type precision: float
|
|
22
|
+
"""
|
|
23
|
+
self.openapi_types = {
|
|
24
|
+
'progress': float,
|
|
25
|
+
'precision': float
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
self.attribute_map = {
|
|
29
|
+
'progress': 'progress',
|
|
30
|
+
'precision': 'precision'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
self._progress = progress
|
|
34
|
+
self._precision = precision
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls, dikt) -> 'TrainingProgressMessage':
|
|
38
|
+
"""Returns the dict as a model
|
|
39
|
+
|
|
40
|
+
:param dikt: A dict.
|
|
41
|
+
:type: dict
|
|
42
|
+
:return: The TrainingProgressMessage of this TrainingProgressMessage. # noqa: E501
|
|
43
|
+
:rtype: TrainingProgressMessage
|
|
44
|
+
"""
|
|
45
|
+
return util.deserialize_model(dikt, cls)
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def progress(self) -> float:
|
|
49
|
+
"""Gets the progress of this TrainingProgressMessage.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
:return: The progress of this TrainingProgressMessage.
|
|
53
|
+
:rtype: float
|
|
54
|
+
"""
|
|
55
|
+
return self._progress
|
|
56
|
+
|
|
57
|
+
@progress.setter
|
|
58
|
+
def progress(self, progress: float):
|
|
59
|
+
"""Sets the progress of this TrainingProgressMessage.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
:param progress: The progress of this TrainingProgressMessage.
|
|
63
|
+
:type progress: float
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
self._progress = progress
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def precision(self) -> float:
|
|
70
|
+
"""Gets the precision of this TrainingProgressMessage.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The precision of this TrainingProgressMessage.
|
|
74
|
+
:rtype: float
|
|
75
|
+
"""
|
|
76
|
+
return self._precision
|
|
77
|
+
|
|
78
|
+
@precision.setter
|
|
79
|
+
def precision(self, precision: float):
|
|
80
|
+
"""Sets the precision of this TrainingProgressMessage.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param precision: The precision of this TrainingProgressMessage.
|
|
84
|
+
:type precision: float
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._precision = precision
|
|
@@ -48,8 +48,46 @@ paths:
|
|
|
48
48
|
tags:
|
|
49
49
|
- Network
|
|
50
50
|
x-openapi-router-controller: match_predicting_ann_server_pub_api.controllers.network_controller
|
|
51
|
+
/dummy:
|
|
52
|
+
get:
|
|
53
|
+
operationId: dummy
|
|
54
|
+
responses:
|
|
55
|
+
default:
|
|
56
|
+
content:
|
|
57
|
+
'*/*':
|
|
58
|
+
schema:
|
|
59
|
+
$ref: "#/components/schemas/DummyDTO"
|
|
60
|
+
description: default response
|
|
61
|
+
tags:
|
|
62
|
+
- Dummy
|
|
63
|
+
x-openapi-router-controller: match_predicting_ann_server_pub_api.controllers.dummy_controller
|
|
51
64
|
components:
|
|
52
65
|
schemas:
|
|
66
|
+
DummyDTO:
|
|
67
|
+
example:
|
|
68
|
+
trainingProgressMessage:
|
|
69
|
+
precision: 6.027456183070403
|
|
70
|
+
progress: 0.8008281904610115
|
|
71
|
+
properties:
|
|
72
|
+
trainingProgressMessage:
|
|
73
|
+
$ref: "#/components/schemas/TrainingProgressMessage"
|
|
74
|
+
title: DummyDTO
|
|
75
|
+
type: object
|
|
76
|
+
TrainingProgressMessage:
|
|
77
|
+
example:
|
|
78
|
+
precision: 6.027456183070403
|
|
79
|
+
progress: 0.8008281904610115
|
|
80
|
+
properties:
|
|
81
|
+
progress:
|
|
82
|
+
format: double
|
|
83
|
+
title: progress
|
|
84
|
+
type: number
|
|
85
|
+
precision:
|
|
86
|
+
format: double
|
|
87
|
+
title: precision
|
|
88
|
+
type: number
|
|
89
|
+
title: TrainingProgressMessage
|
|
90
|
+
type: object
|
|
53
91
|
NetworkDTO:
|
|
54
92
|
example:
|
|
55
93
|
sizes: sizes
|
|
@@ -4,20 +4,23 @@ match_predicting_ann_server_pub_api/encoder.py,sha256=8DGPwOWxaL_GlegXlfwmZOMPLm
|
|
|
4
4
|
match_predicting_ann_server_pub_api/typing_utils.py,sha256=yXf3fOQSZ9ymHPjpMsUFRLBrYlMDT_xpVzhSlD0kiCw,792
|
|
5
5
|
match_predicting_ann_server_pub_api/util.py,sha256=91_jR_wg_JA633WRbQOi5yp7wo4K6kgt-Pw7SOMIvKY,3498
|
|
6
6
|
match_predicting_ann_server_pub_api/controllers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
match_predicting_ann_server_pub_api/controllers/dummy_controller.py,sha256=fX4NyDXmsdfxRvh04O5RaGX_Id-UTgk-NrRTzTkFSNY,563
|
|
7
8
|
match_predicting_ann_server_pub_api/controllers/network_controller.py,sha256=0n6tCQeOSuZrcFds-DyXf4rjkz3C5mQdJtDxxzzVNV0,1000
|
|
8
9
|
match_predicting_ann_server_pub_api/controllers/security_controller.py,sha256=Od2OR_cgmL1we63tUzKfAMv6aJWsuu9XtxMpx6a04Pk,25
|
|
9
|
-
match_predicting_ann_server_pub_api/models/__init__.py,sha256=
|
|
10
|
+
match_predicting_ann_server_pub_api/models/__init__.py,sha256=zDN6ARmi--NOxhGfZ-ktyFO4miUibwRbwOMP0scVHcY,756
|
|
10
11
|
match_predicting_ann_server_pub_api/models/base_model.py,sha256=0JFvQhKYTDOTIg_5j3iY2YtXx9P0p2BafgKP9oVOzlA,1897
|
|
12
|
+
match_predicting_ann_server_pub_api/models/dummy_dto.py,sha256=hwFkuq0cD1GIZWgLdsmz7Mmd7fcjjTx9_gO1ZoR8Scc,2244
|
|
11
13
|
match_predicting_ann_server_pub_api/models/network_dto.py,sha256=4YJ-0-Iu1CKO0SKK4CYfbXTPbE8xJwCjNoZK9JZqYyY,2754
|
|
12
14
|
match_predicting_ann_server_pub_api/models/predicting_data.py,sha256=8yv-7go_TSOkGsK1GXOnm1MNihboeXN5-YoJXpk8byA,2585
|
|
13
15
|
match_predicting_ann_server_pub_api/models/training_data.py,sha256=r52_0iAmogV6hisvMqZZOfwxGEIAP17crYABIhQKUO0,4354
|
|
14
16
|
match_predicting_ann_server_pub_api/models/training_match_dto.py,sha256=x04ie1Q6WzwuFTJUWBXhGfe_xWW6BC9D8NQO7RrZmY4,2310
|
|
15
17
|
match_predicting_ann_server_pub_api/models/training_network_dto.py,sha256=4sDvGKZ_rC_Q-xW4N627TDhvFvjU-mzTCemDTcr2SPU,8086
|
|
18
|
+
match_predicting_ann_server_pub_api/models/training_progress_message.py,sha256=OM0gXjgS8tnfAalTCIPzoGM6W-1uvPdSyjwYf3xEWLE,2472
|
|
16
19
|
match_predicting_ann_server_pub_api/models/training_request_dto.py,sha256=qtbI6umG16I0sdd2h2TKW7PP1srqQ5-mqyvSdI9CQ7k,5437
|
|
17
|
-
match_predicting_ann_server_pub_api/openapi/openapi.yaml,sha256=
|
|
20
|
+
match_predicting_ann_server_pub_api/openapi/openapi.yaml,sha256=Ecp9JwQJBiwas8p1XxhPuoySMqlqRuraiRdVjCU1Zng,7307
|
|
18
21
|
match_predicting_ann_server_pub_api/test/__init__.py,sha256=u8FUjwGUdequ5yYe68rd7injTGbpATxODdfrPx1n9lw,458
|
|
19
|
-
match_predicting_ann_server_pub_api-5.
|
|
20
|
-
match_predicting_ann_server_pub_api-5.
|
|
21
|
-
match_predicting_ann_server_pub_api-5.
|
|
22
|
-
match_predicting_ann_server_pub_api-5.
|
|
23
|
-
match_predicting_ann_server_pub_api-5.
|
|
22
|
+
match_predicting_ann_server_pub_api-5.3.dist-info/METADATA,sha256=qtbM8uz0DsHm2FyJewhQVi0hiwvObsFVD8-d7vrsFPA,638
|
|
23
|
+
match_predicting_ann_server_pub_api-5.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
24
|
+
match_predicting_ann_server_pub_api-5.3.dist-info/entry_points.txt,sha256=71haID4caF-1UAj_Pp8EVclMJ0P_vh64Yt-Y3qvNsJw,106
|
|
25
|
+
match_predicting_ann_server_pub_api-5.3.dist-info/top_level.txt,sha256=lXwEK8E85U9Gmd4xA5qUuaVsnQy2bzfdeuE9ETVa4lg,36
|
|
26
|
+
match_predicting_ann_server_pub_api-5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|