Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rython Proof of Concept #72

Open
3 tasks
andyl opened this issue Mar 14, 2018 · 5 comments
Open
3 tasks

Rython Proof of Concept #72

andyl opened this issue Mar 14, 2018 · 5 comments
Labels
1-HIGH_PRIORITY This is high priority enhancement New feature or request help wanted Extra attention is needed

Comments

@andyl
Copy link
Contributor

andyl commented Mar 14, 2018

We are going to make development environments available to our researchers, so that their bots can call business objects directly without having to go thru a web layer. Primarily, this is to give researchers maximum speed and flexibility.

This is simple to do with ruby. But many researchers want to write bots in python. We would like a simple way for Python developers to call the business objects in our rails app.

I'd like someone to do a proof-of-concept demo with rython, an interface library at
https://pypi.python.org/pypi/rython.

Task outcomes using rython:

  • simple/standalone demo showing a python script calling a standalone ruby class
  • demo showing a python script calling a model in a rails app
  • demo showing a python script calling a model in the Bugmark Exchange
@andyl andyl added enhancement New feature or request help wanted Extra attention is needed 1-HIGH_PRIORITY This is high priority labels Mar 14, 2018
@GeorgLink
Copy link
Collaborator

This would be super helpful!

@snehasi
Copy link
Collaborator

snehasi commented Mar 15, 2018

What is the standalone ruby class here? Does this refer to constructing a simple class instance?
If it means a ruby script, should I just check for it's successful execution in the python script?

@andyl
Copy link
Contributor Author

andyl commented Mar 15, 2018

@snehasi For item 1 - literally just any old ruby class - class Hello def say_hi() "HI" end; end will do. Does that answer the question?

@snehasi
Copy link
Collaborator

snehasi commented Mar 15, 2018

Yes, thanks

@snehasi
Copy link
Collaborator

snehasi commented Mar 24, 2018

Hey,
I've used pipes to bridge Ruby and Python. I think this solution is simpler than XML-RPC, though a bit messier. I've tested it, and am attaching the Ruby and python files.
Since rython seems to be out of maintenance, and it's still in alpha version, are we open to using other libraries too ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-HIGH_PRIORITY This is high priority enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants