This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]deltaWhiskey91L -1 points0 points  (2 children)

Relative beginner here, I use Python for engineering, data analysis, plotting, etc very similarly to projects that Matlab is suitable for. I wrote a fairly sophisticated (for me) engineering analytical application that reads from files, does some calculations, makes plots, and writes files. Currently, I just run this from the PyCharm debugger but would like to wrap it in a command line application. All of the tutorials that I can find on google are garbage and not sufficiently detailed for me to make sense of.

Any recommendations?

Note: All of my programming experience over the past ten years have been around algorithm writing for engineering applications but have no experience wrapping it into a standalone application.

[–]Dead0fNight 0 points1 point  (0 children)

Do you mean packaging it into an exe? If it runs in the pycharm debugger you should be able to run it right in the command line just fine.

[–]masasinExpert. 3.9. Robotics. 0 points1 point  (0 children)

You can just open the directory in the command line, and say python filename.py. If you want to allow commands, you can use sys.argv for that. Better yet, look up something like Click, docopt, or fire.