Check out the main() function there. It's defined at the top of the file and it calls lower level functions there.
Regarding the hash bang, yes I just do it out of habit. I often use python to replace bash to write small command line tools, which in my case, often in single files.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes,
main()is just common to see. By no means it has to be calledmain().Here's an example from docker-compose:
The entry point is here
It doesn't even use the usual
if __name__ ...which calls this module
Check out the
main()function there. It's defined at the top of the file and it calls lower level functions there.Regarding the hash bang, yes I just do it out of habit. I often use python to replace bash to write small command line tools, which in my case, often in single files.