/python_playground

just random python scraps

Primary LanguageJupyter Notebook

python_playground

Just random python scraps & examples that I play around with to test things.



arguments

File Descrption
use_argument_choices uses arguments within a fixed range os strings


bytes

File Descrption
float_to_byte Converts floats to bytes


exceptions

File Descrption
ex basic example of try catch exception handling


function serving

File Descrption
function_lib_object An interesting way to have a large library of functions where the toolchain can be specified per instance - without needing to modify the source code. Minimal duplication.


http - python webservers

File Descrption
echoserver server that prints Hello, World! to the landing page
webserver basic webserver that prints Hello, World! to the landing page
taskListServer Prints a title and a list to a landing page


image_display_loop

File Descrption
popup popup window with an image for a few seconds
loop loop through a directory of images and display to two plots
subplots sequentially plots an image to two subplots
concat image concatenation for side by side viewing
stacked image concatenation and vertical for viewing images as a stack


looping

File Descrption
loopy loops through a list in chunks


masking

File Descrption
cv2_rgb_mask Testing out numpy masking arrays etc.


os_shutil_stuff

File Descrption
os_shutil_stuff Creating and deleting files via python shutil


regexes

File Descrption
regexes Basic example of string replacement with regexes