Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Using a Python API

by BernieC (Monk)
on Jul 19, 2021 at 14:47 UTC ( #11135168=perlquestion: print w/replies, xml ) Need Help??

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 (Chancellor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11135168]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-07-24 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?