Maximus S
Maximus S

Reputation: 11095

How to integrate a python library into a Ruby on Rails application

I want to know if there is a way to integrate a library written in Python into my Rails application. I have always used gems to implement outside libraries so I have no idea how to do this(yet).

Is it possible to use this Python library?

Upvotes: 6

Views: 9013

Answers (1)

Narfanator
Narfanator

Reputation: 5813

This is mostly what you want:

Calling Python from Ruby

I've looked into this question before and, excepting the Heroku deploy, the answer was "easily! check this out". (On a fun note, there's a gem to let you embed Perl code in a Ruby file)

However, while I can't seem to find it right now, I remember reading that deploying both to Heroku required a custom buildpac, since one won't normally include the binaries necessary for the other.

Upvotes: 5

Related Questions