Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

similar module in perl for pika in python

by mendeepak (Scribe)
on Apr 22, 2015 at 09:24 UTC ( [id://1124239] : perlquestion . print w/replies, xml ) Need Help??

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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: similar module in perl for pika in python
by Arunbear (Prior) on Apr 22, 2015 at 09:47 UTC
    Do you know how to use search engines? A google search shows that pika is a "an AMQP 0-9-1 client library for Python". Does the script connect to RabbitMQ specifically? If so, I'd suggest Net::RabbitMQ which I've had success with, otherwise a search shows other choices such as Net::Async::AMQP that you could try.

    sys "provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter". You'd need to look in the script for functions or attributes like sys.foo then read the docs to see what foo does, then find a way to do the same job in Perl. Some likely candidates are sys.argv which is @ARGV in Perl, and sys.exit which is exit in Perl.

Re: similar module in perl for pika in python
by salva (Canon) on Apr 22, 2015 at 09:38 UTC
    I have no idea what these do either, but there is a secret place on the Internet where you can get responses to those questions. It is called Google, but please, don't tell anybody because, it is secret!

    So, let my show you how it works: pika python.

Re: similar module in perl for pika in python
by marto (Cardinal) on Apr 22, 2015 at 09:49 UTC

    "I have no idea what these does"

    That's the task you've been given. If you don't know what something is or what it does, go find out.

Re: similar module in perl for pika in python
by vinoth.ree (Monsignor) on Apr 22, 2015 at 09:51 UTC
Re: similar module in perl for pika in python
by Laurent_R (Canon) on Apr 22, 2015 at 20:19 UTC
    I used to program in Python before I decided to switch to Perl (much better and much more efficient in my personal view), about 11 or 12 years ago. I have frankly no longer have any idea what these libraries do, but it is so easy to find out on the Internet that I wonder why you ask.

    Je suis Charlie.