There exists a Perl module that provides the perfect functionality for my Python app.
Is there any way for me to utilize it? (it is complicated, it would take me a month to port it)
I don’t want to have to spawn a subprocess for every usage, as I need it several hundred thousand times (it is a specific type of data parser).
Thanks for your advice.
EDIT: asked for the module. It’s Mail::DeliveryStatus::BounceParser. It matches mail delivery status notifications to a list of strings that may indicate a bounced mail. (it runs the DSN body/headers through a mass of regexes as well as other tests. it’s a seriously awesome module.)
I am not sure if this is still active but PyPerl may be of interest to you
Still there should be support for most data parsers in python. It would be good, if you can point to the parser that you are looking at.
Alternatively, you could create a complete process with that perl module and use IPC, socket mechanisms to communicate data and results back and forth from your python and perl processes.