Commit 548d9d14 authored by Laskaratos Dimitris's avatar Laskaratos Dimitris
Browse files

Added adapters as SDK

parent 1175247f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ RUN source .venv/bin/activate

RUN pip3 install --upgrade pip

RUN pip3 install wheel
RUN pip3 install wheel --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org

RUN pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt

+2 −9
Original line number Diff line number Diff line
connexion<3.0.0
connexion[swagger-ui]
python_dateutil == 2.6.0
setuptools >= 21.0.0
pymongo==3.12.0
requests==2.32.4
kubernetes==33.1.0
#cffi==1.15.1
psycopg2-binary
paramiko>=2.12.0
urllib3 

pydantic==2.11.3
pydantic-extra-types==2.10.3
sunrise6g_opensdk==1.0.2.post2
 No newline at end of file
sunrise6g-opensdk==1.0.2.post3
 No newline at end of file
+4 −7
Original line number Diff line number Diff line
#!/usr/bin/env python3

import connexion

import logging
import sys
import os
import src.encoder as encoder
from json import JSONEncoder

from src import encoder

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def main():
    global driver
    logging.basicConfig(level=logging.INFO)
    app = connexion.App(__name__, specification_dir='./swagger/')
    app.app.json_encoder = encoder.JSONEncoder
    app.add_api('swagger.yaml', strict_validation=True, arguments={'title': 'π-edge Controller API'}, pythonic_params=True)
    app.app.json_encoder = JSONEncoder
    app.add_api('swagger.yaml', strict_validation=True, arguments={'title': 'Service Resource Manager Controller API'}, pythonic_params=True)
    app.run(port=8080)
    

+0 −2
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-
from .common.sdk import Sdk
+0 −0

Empty file deleted.

Loading