Wolfram Client Library for Python

The client library provides seamless Wolfram Language integration in Python.

Wolfram Language Sessions

open all close all

Local Wolfram Language Sessions

WolframLanguageSession start a persistent session with a local Wolfram Engine

WolframLanguageAsyncSession perform tasks asynchronously using Python coroutines

Wolfram Cloud Sessions

WolframCloudSession connect to a cloud, public or private

WolframCloudAsyncSession perform tasks asynchronously using Python coroutines

Session Object Methods

evaluate evaluate a Wolfram Language expression from Python

evaluate_future evaluate a Wolfram Language expression asynchronously

function create a Python function from a Wolfram Language expression

start  ▪  stop  ▪  terminate  ▪  restart  ▪  duplicate

Expression Representation

wl represent expressions with Python objects

wlexpr represent expressions with InputForm strings

Serialization & Deserialization

export give a binary representation of Python objects in the requested format

binary_deserialize create a Python object from WXF bytes