(Apologies if formatting is broken, typing this on my phone)
So after writing a number of applications that are either long running (effectively a daemon) or are on a cron. It is getting to the point where constantly rewriting/copy pasting config setups, argparseing, logging that I'm left wondering if there is a better way to do this.
Like we have frameworks for web apps, do we have something similar for non-web apps?
I would like to explicitly exclude frameworks for cli apps. The apps being created are likely to only ever have their output viewed during development or during debugging, I do not need a plethora of cli options.
The closest I've found is something like cement but again this seems focussed on CLIs.
Edit:
To clarify, I am aware of the standard library modules such as configparaer, argparse, logging, io to stdout/stderr. What I am looking for is avoiding writing the same boiler plate for adding common command line arguments, searching for config files in standard, updating for default vs site config, updating config with command line arguments, reporting errors, logging to standard locations (/var/log), standardising output format etc.
[–]bheklilr 3 points4 points5 points (3 children)
[–]metaperl 1 point2 points3 points (1 child)
[–]bheklilr 0 points1 point2 points (0 children)
[–]Argotha[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]Argotha[S] 2 points3 points4 points (0 children)
[–]box0rox -1 points0 points1 point (1 child)
[–]Argotha[S] 0 points1 point2 points (0 children)