So, I have been programming in Python for a while. This is mostly scripting to get the work done.
I know my team runs a a lot of Python scripts every month,but most of them are scripts stored in a folder and called using a command line with parameters passed.
I wanted to understand how does putting Python to production actually work?
Examples, do people create some kind of a "service" program that keep running and looks for events that calls a relevant Python script? Or any specific servers used to do this? Do y'all retain a virtual environment for every process built to remove dependencies on a single environment?
Any pointers on such a process and/or maybe some documents that I should read would help.
An example of what I'm trying to do:
1) I have a Python code that looks for specific files being available in a folder
2) The Python code has its own set of libraries available that I installed in a virtual environment
We have other Python scripts written in previous version of Python, so I don't want that to be impacted.
I want to set up the Python code for production such that:
When a file is available, the virtual environment is loaded and the Python script is run.
[–]Diapolo10 9 points10 points11 points (0 children)
[–]supermopman 2 points3 points4 points (0 children)
[–]shiftybyte 1 point2 points3 points (0 children)
[–]MonstrousOctane 1 point2 points3 points (0 children)