Python Client  0.0.0.0
Python wrapper for Corelink DLL
Python Client

This is a Python(3.6 or >) wrapper for the corelink DLL

<path_to_corelink> refers to the directory this github repo is download in.

<path_to_build> refers to the directory the build folder will exist in.

The wrapper is located in <path_to_corelink>/clients/python The shared library is located in <path_to_corelink>/clients/dll

For more detailed instructions on setting up the shared library, please refer the the /clients/dll/README.md "dll readme"

  • Compile the /clients/dll/README.md "Corelink shared library"
  • Create your Python project
  • Include Corelink shared library, and python wrapper headers
  • Include certificates ca-crt.pem and ca-crt-default.pem
  • Set <path_to_build> with "config.py"
  • Include Corelink with "corelink.py"
  • Initialize Corelink client using DLLInit.init()
  • Setup initialization parameters using commands from DLLInit
  • Fill out login credentials with DLLInit.set_server_credentials
  • Connect to server with Client.connect
  • Interact with the server using commands from Client
  • Create streams with Client.create_sender and Client.create_receiver
  • Disconnect and clean up corelink with Client.cleanup

Follow the instructions in the /clients/dll/README.md "dll readme" if not done so already Make sure dll is installed in /usr/local/lib

Create a new directory. Copy over the following files:

  • <path_to_corelink>/clients/dll/ca-crt-default.pem
  • <path_to_corelink>/clients/dll/ca-crt.pem
    $env:PYTHONPATH=($env:PYTHONPATH)+';<path_to_corelink>\clients\python'

Create a new directory. Copy over the following files:

  • <path_to_corelink>/clients/dll/ca-crt-default.pem
  • <path_to_corelink>/clients/dll/ca-crt.pem
    export PYTHONPATH='<path_to_corelink>/clients/python'
  • Need to do every time or append it to ~/.bashrc(Not Recommend)
    echo 'export PYTHONPATH=<path_to_corelink>/clients/python' >>~/.bashrc
    source ~/.bashrc

Create a new directory. Copy over the following files:

  • <path_to_corelink>/clients/dll/ca-crt-default.pem
  • <path_to_corelink>/clients/dll/ca-crt.pem
    export PYTHONPATH='<path_to_corelink>/clients/python'
  • examples/python/send.py
  • examples/python/recv.py