Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Python Client

Mike J. Renaker / "MikeDEV edited this page Sep 29, 2023 · 2 revisions

Work in progress! This documentation is exclusively for the Python 0.2.0 client.

Client basics

Below is an example of setting up a barebones client.

from cloudlink import client

# Initialize the client
client = client()
    
# Configure logging settings
client.logging.basicConfig(
    level=client.logging.DEBUG
)

# Start the client
client.run(host="ws://127.0.0.1:3000/")

Securing your client

If you have a server that relies upon self-signed certificates, or utilizes some exotic certificate authority for SSL, you can call upon client.enable_ssl.

client.enable_ssl(certfile="cert.pem")
Clone this wiki locally