http://qs1969.pair.com?node_id=11135168

BernieC has asked for the wisdom of the Perl Monks concerning the following question:

Is there some equivalent of Inline::C for calling a Python API? I have a few programs that have an API from Python and it'd be very neat to be able to do some of the complicated things from a Perl program rather than fighting through the GUI.

Replies are listed 'Best First'.
Re: Using a Python API
by hippo (Bishop) on Jul 19, 2021 at 14:55 UTC
    Is there some equivalent of Inline::C for calling a Python API?

    You mean like Inline::Python?


    🦛

      DUH - I really thought I had looked for that but missed. Thanks
Re: Using a Python API
by davido (Cardinal) on Jul 19, 2021 at 14:58 UTC

    An API that exposes the language of implementation isn't a very good API. And an API that requires you to automate scraping the GUI isn't an API at all. What is going on here? Is the "api" really just a Python library? Is it REST? JSON over HTTP (not quite REST), RPC, GRPC, or what?


    Dave

      Nonetheless, Python is by far the most common language that I find in "program scripting" situations, outside of the strictly-Microsoft world.
        Nonetheless, Python is by far the most common language that I find in "program scripting" situations

        Yes, that's the new fad currently that all new college students are being taught.

        That's not the point Dave's trying to make here though.