import ctypes
rustLib = 'libtest.dylib'

def testRust():
    lib = ctypes.cdll.LoadLibrary(rustLib)
list_to_send = ['blah', 'blah', 'blah', 'blah']
c_array = (ctypes.c_char_p * len(list_to_send))(*list_to_send)
lib.get_strings(c_array, len(list_to_send))
if __name__ == '__main__':
    testRust()
Passing a list of strings from Python to Rust