Python Comments and Docstrings

By | Engineering

There’s one special comment called a ‘shebang’ that python scripts can start #! /usr/bin/env python3 Having this source code allows you execute the python file. First you need to make the file executable with the following chmod +x example.py to allow it to be invoked from command line without having to specify the interpreter to run it. If you have…

Read More

Python – Schedule Job – Like Cronjob

By | Ramblings

Cron is an incredible scheduler that is extremely versatile with a powerful scheduling engine and precise timing capability, but it’s typical run from a server’s root OS or container image. You could package a linux container with the cronjob task and a shell script as shown at the end of this post OR you can build your own python scheduled…

Read More