# Calling Python scripts w/ arguments on the backend via plugin?

**URL:** <https://meta.discourse.org/t/calling-python-scripts-w-arguments-on-the-backend-via-plugin/165984>\
**Category:** Development\
**Created:** [October 2, 2020, 2:44am UTC](https://meta.discourse.org/t/calling-python-scripts-w-arguments-on-the-backend-via-plugin/165984 "2020-10-02T02:44:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [October 2, 2020, 7:54am UTC](https://meta.discourse.org/t/calling-python-scripts-w-arguments-on-the-backend-via-plugin/165984/2 "2020-10-02T07:54:29Z")

</div>

You can use [Running external commands with Open3 - makandra dev](https://makandracards.com/makandra/44452-running-external-commands-with-open3)  
to call the command line in Ruby and plugins.

I use it here in my Discourse Frotz (Interactive Fiction) plugin: [discourse-frotz/lib/frotzbot.rb at 6054d38af0ab8e516a93416026f8e646f5c5ea56 · merefield/discourse-frotz · GitHub](https://github.com/merefield/discourse-frotz/blob/6054d38af0ab8e516a93416026f8e646f5c5ea56/lib/frotzbot.rb#L167) to interact with the terminal.

But if you are going that far you might consider writing native Ruby all the way. It’s a very pleasant language.

---

_[View the full topic](https://meta.discourse.org/t/calling-python-scripts-w-arguments-on-the-backend-via-plugin/165984)._
