Commit a9c8884e authored by JorgeEcheva26's avatar JorgeEcheva26
Browse files

New script, changes in installation README and renaming folders

parent 248fd219
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line

# OpenCAPIF SDK development environment installation
# OpenCAPIF SDK installation

## OpenCAPIF SDK consumer installation

SOON

## OpenCAPIF SDK development environment installation
Follow next steps to perform OpenCAPIF SDK installation:

1 - Create an enviroment with pyenv
+3 −4
Original line number Diff line number Diff line
## OpenCAPIF SDK prerequisites

In order to leverage OpenCAPIF SDK it is required to have registered a user in the target CAPIF instance, so contact administrator to have required predefined credentials (username and password).
1. In order to leverage OpenCAPIF SDK it is required to have registered a user in the target CAPIF instance, so contact administrator to have required predefined credentials (username and password).

For developers installation is mandatory to have already installed:
2. For developers installation is mandatory to have already installed:

    - pyenv 3.12
    - 
- pyenv
+27 −0
Original line number Diff line number Diff line
import sys
import os
import utilities

# Añadir el directorio del SDK al PYTHONPATH usando una ruta relativa
script_dir = os.path.dirname(os.path.abspath(__file__))  # Directorio actual del script
sdk_path = os.path.join(script_dir, '..', 'sdk')  # Subir un nivel y apuntar a 'sdk'
sys.path.insert(0, sdk_path)

from sdk import CAPIFInvokerConnector


def showcase_capif_connector():
    """
        This method showcases how one can use the CAPIFConnector class.
        This class is intended for use within the evolved5G Command Line interface.
        It is a low level class part of the SDK that is not required to use while creating invokers
    """

    capif_connector = CAPIFInvokerConnector(config_file=utilities.get_config_file())

    capif_connector.update_Invoker()
    print("COMPLETED")

if __name__ == "__main__":
    #Let's register invoker to CAPIF. This should happen exactly once
    showcase_capif_connector()
 No newline at end of file