Jump to content
softtouch

How to call a Delphi function from a python script?

Recommended Posts

I have a python script which does some website work, and at one point in that script, it has to call a Delphi function with a byte array as parameter, and will have to get a string back from the Delphi function and continue the script execution.

 

How can I realize that? I googled but its mostly the other way around, calling a python function from delphi.

Edited by softtouch

Share this post


Link to post

That would be Delphi4Python.

Otherwise you need a inter-process communication. For example your Delphi code can run in REST server.

Share this post


Link to post
35 minutes ago, Cristian Peța said:

That would be Delphi4Python.

Otherwise you need a inter-process communication. For example your Delphi code can run in REST server.

I know, I use P4D...

I can call python funtions from delphi, but this time, I need it the other way around, calling a delphi function from python.

Edited by softtouch

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×