A collection of simple worked examples in Python. I'll usually start with one of these as a template and customize to whatever I need it to do
Scripts in this directory show some uses of the argparse
module in Python.
logexample.py
- Basic logging setup using the built-in logging module
Examples that use the HTTP server module to provide basic web APIs or pages.
plotting.py
- A snippet of how to do some simple plotting and axis/chart formatting in matplotlib. I always forget the bits to do this correctly.