X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=examples%2FREADME;h=c03fa08d2b3342bdcda83ba7284bb0f39a1053e7;hb=194fc16707d0acf870871bd9e6b2d886b8330271;hp=c14e8639d481567bd234a96bff174c19138b6187;hpb=84f53cd94d18a8d239216704a6a33c7dbf2fc6b9;p=pyutils.git diff --git a/examples/README b/examples/README index c14e863..c03fa08 100644 --- a/examples/README +++ b/examples/README @@ -1,3 +1,44 @@ Stuff under here is example code that uses pyutils library routines and is meant to just be illustrative and fun. Each should be runnable as-is if you have pyutils installed. Use the --help flag for more info. + +cron: + Wrapper for running cronjobs with optional locks to ensure that no + more than one instance executes at the same time, optional max + frequencies, optionally touch a file on successful execution to + drive monitoring, etc... + +dedup_files: + Util that traverses a directory structure and identifies files that + are duplicates of each other then optionally deletes duplicates or + symlinks duplicates back to an original. + +fff: + Find f'ed fstrings... not so much an example but rather a + development tool. Identifies places where I meant to use an + f-string (used braces in a string) but didn't make the string an + f-string. I run this as a pre-commit hook and thought it would be + good to include. + +parallelize_config: + This is a sample config file (place in ~/.remote_worker_records or + override with --remote_worker_records_file) for the @parallelize + framework to understand how to dispatch work to remote machines. + +pyskel: + This is a "skeleton" I keep around for when I want to start + working on a new script. + +reminder: + Reminds you of important dates which are stored in the .reminder + file. + +scrabble: + Helps you play Scrabble word game. + +wordle: + Plays and helps you cheat at the Wordle word game. Demo of using + the @parallelize framework and shared_dict which it uses to + precompute the solution space on several processes at once. + +