python_utils.git
2 years agoImprove docs in ANSI.py
Scott Gasch [Fri, 3 Jun 2022 04:56:40 +0000 (21:56 -0700)]
Improve docs in ANSI.py

2 years agoMake the bar graph thing do fractions.
Scott Gasch [Fri, 3 Jun 2022 04:43:08 +0000 (21:43 -0700)]
Make the bar graph thing do fractions.

2 years agoOne bugfix and some cosmetics.
Scott Gasch [Fri, 3 Jun 2022 03:09:09 +0000 (20:09 -0700)]
One bugfix and some cosmetics.

2 years agoUpdate docs.
Scott Gasch [Fri, 3 Jun 2022 02:51:18 +0000 (19:51 -0700)]
Update docs.

2 years agoHammer on that run_tests.py thing again.
Scott Gasch [Fri, 3 Jun 2022 00:56:29 +0000 (17:56 -0700)]
Hammer on that run_tests.py thing again.

2 years agoRename old run_tests.sh script; it's not used in hooks anymore.
Scott Gasch [Fri, 3 Jun 2022 00:36:52 +0000 (17:36 -0700)]
Rename old run_tests.sh script; it's not used in hooks anymore.

2 years agoRename a method in exec_utils.
Scott Gasch [Fri, 3 Jun 2022 00:33:29 +0000 (17:33 -0700)]
Rename a method in exec_utils.

2 years agoCode cleanup for run_test.py
Scott Gasch [Thu, 2 Jun 2022 20:47:26 +0000 (13:47 -0700)]
Code cleanup for run_test.py

2 years agoAdd a .coveragerc file to make sure we run coverage in parallel.
Scott Gasch [Thu, 2 Jun 2022 18:10:45 +0000 (11:10 -0700)]
Add a .coveragerc file to make sure we run coverage in parallel.

2 years agoFinal touches on the new test runner.
Scott Gasch [Thu, 2 Jun 2022 18:09:16 +0000 (11:09 -0700)]
Final touches on the new test runner.

2 years agoUpdate run_tests.py.
Scott Gasch [Thu, 2 Jun 2022 17:57:38 +0000 (10:57 -0700)]
Update run_tests.py.

2 years agoInitial stab at a smarter doc/unit/integration/coverage test runner.
Scott Gasch [Thu, 2 Jun 2022 15:23:18 +0000 (08:23 -0700)]
Initial stab at a smarter doc/unit/integration/coverage test runner.

2 years agoMore doc updates.
Scott Gasch [Wed, 1 Jun 2022 05:12:19 +0000 (22:12 -0700)]
More doc updates.

2 years agoMore docs cleanup.
Scott Gasch [Wed, 1 Jun 2022 01:00:09 +0000 (18:00 -0700)]
More docs cleanup.

2 years agoImprove docstrings for sphinx.
Scott Gasch [Tue, 31 May 2022 22:36:40 +0000 (15:36 -0700)]
Improve docstrings for sphinx.

2 years agoClean up more docs to work with sphinx.
Scott Gasch [Mon, 30 May 2022 00:53:26 +0000 (17:53 -0700)]
Clean up more docs to work with sphinx.

2 years agoConvert comment into doctest.
Scott Gasch [Sun, 29 May 2022 22:06:35 +0000 (15:06 -0700)]
Convert comment into doctest.

2 years agoFix geocode's doctest.
Scott Gasch [Sun, 29 May 2022 02:32:39 +0000 (19:32 -0700)]
Fix geocode's doctest.

2 years agoTweak around docstring to make prettier sphinx autodocs.
Scott Gasch [Sun, 29 May 2022 02:29:08 +0000 (19:29 -0700)]
Tweak around docstring to make prettier sphinx autodocs.

2 years agoSphinx docs link back to code.
Scott Gasch [Sat, 28 May 2022 20:06:40 +0000 (13:06 -0700)]
Sphinx docs link back to code.

2 years agoAdding files needed to run sphinx as a pre-push hook.
Scott Gasch [Sat, 28 May 2022 20:02:44 +0000 (13:02 -0700)]
Adding files needed to run sphinx as a pre-push hook.

2 years agoAllowances for getting sphinx docs set up.
Scott Gasch [Sat, 28 May 2022 19:58:51 +0000 (12:58 -0700)]
Allowances for getting sphinx docs set up.

2 years agoAdd method to get up/down/enter keystrokes.
Scott Gasch [Tue, 24 May 2022 23:13:32 +0000 (16:13 -0700)]
Add method to get up/down/enter keystrokes.

2 years agoFix an edge condition around the Nth weekday of the month when
Scott Gasch [Fri, 13 May 2022 02:14:34 +0000 (19:14 -0700)]
Fix an edge condition around the Nth weekday of the month when
the first day of the month is that target weekday.

2 years agoTry multiple strategies to determine the console size.
Scott Gasch [Fri, 13 May 2022 00:56:51 +0000 (17:56 -0700)]
Try multiple strategies to determine the console size.

2 years agoAdd curl commandline comment.
Scott Gasch [Sun, 1 May 2022 05:44:30 +0000 (22:44 -0700)]
Add curl commandline comment.

2 years agoBetter logging + cleanup.
Scott Gasch [Sun, 1 May 2022 00:42:14 +0000 (17:42 -0700)]
Better logging + cleanup.

2 years agoShard large geocode inputs.
Scott Gasch [Sun, 1 May 2022 00:34:34 +0000 (17:34 -0700)]
Shard large geocode inputs.

2 years agoBatch geocoding. Also use format=json for the single address request to
Scott Gasch [Sun, 1 May 2022 00:24:53 +0000 (17:24 -0700)]
Batch geocoding.  Also use format=json for the single address request to
remove the need for beautifulsoup.

2 years agoAdd some docs and doctests to things that have 0% coverage.
Scott Gasch [Sat, 30 Apr 2022 17:59:48 +0000 (10:59 -0700)]
Add some docs and doctests to things that have 0% coverage.

2 years agoHandle census site unavailability w/o throwing.
Scott Gasch [Fri, 29 Apr 2022 18:26:25 +0000 (11:26 -0700)]
Handle census site unavailability w/o throwing.

2 years agoOops, update type hints in geocode.
Scott Gasch [Wed, 27 Apr 2022 14:46:40 +0000 (07:46 -0700)]
Oops, update type hints in geocode.

2 years agoChange address, recognize numbers, add copyright.
Scott Gasch [Wed, 27 Apr 2022 14:42:49 +0000 (07:42 -0700)]
Change address, recognize numbers, add copyright.

2 years agoCleanup geocode.
Scott Gasch [Wed, 27 Apr 2022 02:36:56 +0000 (19:36 -0700)]
Cleanup geocode.

2 years agoGeocoder.
Scott Gasch [Wed, 27 Apr 2022 01:04:46 +0000 (18:04 -0700)]
Geocoder.

2 years agoTeach chord parser about Minor7
Scott Gasch [Wed, 27 Apr 2022 00:57:07 +0000 (17:57 -0700)]
Teach chord parser about Minor7

2 years agoIgnore ANTLR generated files.
Scott Gasch [Fri, 22 Apr 2022 21:32:15 +0000 (14:32 -0700)]
Ignore ANTLR generated files.

2 years agoAdd powerset to list_utils; improve chord parser.
Scott Gasch [Fri, 22 Apr 2022 21:28:44 +0000 (14:28 -0700)]
Add powerset to list_utils; improve chord parser.

2 years agoAdd a chord parser test.
Scott Gasch [Fri, 22 Apr 2022 16:42:08 +0000 (09:42 -0700)]
Add a chord parser test.

2 years agoChord name parsing.
Scott Gasch [Fri, 22 Apr 2022 03:05:21 +0000 (20:05 -0700)]
Chord name parsing.

2 years agoWork on docs and readability.
Scott Gasch [Wed, 20 Apr 2022 03:54:03 +0000 (20:54 -0700)]
Work on docs and readability.

2 years agoImprove the quick labeler again.
Scott Gasch [Tue, 19 Apr 2022 20:53:49 +0000 (13:53 -0700)]
Improve the quick labeler again.

2 years agoImprove wildcard semantics again.
Scott Gasch [Mon, 18 Apr 2022 18:21:24 +0000 (11:21 -0700)]
Improve wildcard semantics again.

2 years agoDo the wildcard search thing better.
Scott Gasch [Mon, 18 Apr 2022 17:21:12 +0000 (10:21 -0700)]
Do the wildcard search thing better.

2 years agoUse preformatted_box with print_box.
Scott Gasch [Sun, 17 Apr 2022 23:49:15 +0000 (16:49 -0700)]
Use preformatted_box with print_box.

2 years agoPreformatted box that doesn't wrap the contents.
Scott Gasch [Sun, 17 Apr 2022 18:23:13 +0000 (11:23 -0700)]
Preformatted box that doesn't wrap the contents.

2 years agoAllow query for '*' that returns all docids.
Scott Gasch [Sun, 17 Apr 2022 18:15:30 +0000 (11:15 -0700)]
Allow query for '*' that returns all docids.

2 years agoFix bug with timeouts.
Scott Gasch [Fri, 15 Apr 2022 16:46:38 +0000 (09:46 -0700)]
Fix bug with timeouts.

2 years agoPress any key to continue.
Scott Gasch [Fri, 15 Apr 2022 16:33:45 +0000 (09:33 -0700)]
Press any key to continue.

2 years agoOverhaul quick_labeler part 2: understand what the current model says.
Scott Gasch [Tue, 12 Apr 2022 22:23:54 +0000 (15:23 -0700)]
Overhaul quick_labeler part 2: understand what the current model says.

2 years agoOverhaul quick labeler, part 1.
Scott Gasch [Tue, 12 Apr 2022 21:19:26 +0000 (14:19 -0700)]
Overhaul quick labeler, part 1.

2 years agoFix typo.
Scott Gasch [Sat, 9 Apr 2022 18:50:07 +0000 (11:50 -0700)]
Fix typo.

2 years agoMore messing with making sure that exception tracebacks end up in the log.
Scott Gasch [Fri, 8 Apr 2022 14:01:56 +0000 (07:01 -0700)]
More messing with making sure that exception tracebacks end up in the log.

2 years agoCause the custom exception handler to also log unhandled exceptions'
Scott Gasch [Fri, 8 Apr 2022 13:54:04 +0000 (06:54 -0700)]
Cause the custom exception handler to also log unhandled exceptions'
tracebacks.

2 years agoCleanup, try to get rid of linter messages.
Scott Gasch [Sat, 2 Apr 2022 17:56:53 +0000 (10:56 -0700)]
Cleanup, try to get rid of linter messages.

2 years agoMinor changes; make model trainer show results for all models, etc...
Scott Gasch [Sat, 2 Apr 2022 17:50:55 +0000 (10:50 -0700)]
Minor changes; make model trainer show results for all models, etc...

2 years agoCleanup weather_data.py.
Scott Gasch [Mon, 28 Mar 2022 16:32:22 +0000 (09:32 -0700)]
Cleanup weather_data.py.

2 years agoAdd copyright to grammar.
Scott Gasch [Fri, 25 Mar 2022 18:14:54 +0000 (11:14 -0700)]
Add copyright to grammar.

2 years agoAdd LICENSE and NOTICE.
Scott Gasch [Fri, 25 Mar 2022 17:48:13 +0000 (10:48 -0700)]
Add LICENSE and NOTICE.

2 years agoObfuscate more keys. Again, this is pretty non-critical because
Scott Gasch [Fri, 25 Mar 2022 16:50:31 +0000 (09:50 -0700)]
Obfuscate more keys.  Again, this is pretty non-critical because
the shinobi instance is only on my private network but do it for
the sake of code hygiene.

2 years agoSince this thing is on the innerwebs I suppose it should have a
Scott Gasch [Fri, 25 Mar 2022 16:41:31 +0000 (09:41 -0700)]
Since this thing is on the innerwebs I suppose it should have a
copyright...

2 years agoAdds shuffle/scramble to list_utils.
Scott Gasch [Fri, 25 Mar 2022 16:15:08 +0000 (09:15 -0700)]
Adds shuffle/scramble to list_utils.

2 years agoObscure some passwords/keys. There's actually nothing valuable here
Scott Gasch [Fri, 25 Mar 2022 16:00:33 +0000 (09:00 -0700)]
Obscure some passwords/keys.  There's actually nothing valuable here
because the machines this is talking to are behind a firewall on my
local network and not exposed anywhere.

2 years agoAdd add_timezone.
Scott Gasch [Thu, 24 Mar 2022 22:20:49 +0000 (15:20 -0700)]
Add add_timezone.

2 years agoLoosen backup policy and cleanup code a little.
Scott Gasch [Tue, 22 Mar 2022 17:38:16 +0000 (10:38 -0700)]
Loosen backup policy and cleanup code a little.

2 years agoSmall changes.
Scott Gasch [Mon, 21 Mar 2022 18:45:22 +0000 (11:45 -0700)]
Small changes.

2 years agoFix center align in header.
Scott Gasch [Mon, 14 Mar 2022 01:00:10 +0000 (18:00 -0700)]
Fix center align in header.

2 years agoBeef up header.
Scott Gasch [Mon, 14 Mar 2022 00:52:20 +0000 (17:52 -0700)]
Beef up header.

2 years agoImprove profanity filter.
Scott Gasch [Sat, 12 Mar 2022 19:09:23 +0000 (11:09 -0800)]
Improve profanity filter.

2 years agoIntEnum -> Enum to fix printing of enum values.
Scott Gasch [Mon, 7 Mar 2022 07:13:50 +0000 (23:13 -0800)]
IntEnum -> Enum to fix printing of enum values.

2 years agoImprove text wrapping; add indent option.
Scott Gasch [Sat, 5 Mar 2022 18:15:03 +0000 (10:15 -0800)]
Improve text wrapping; add indent option.

2 years agoTeach site_location about the .local hostname suffix that the mac
Scott Gasch [Tue, 1 Mar 2022 18:51:30 +0000 (10:51 -0800)]
Teach site_location about the .local hostname suffix that the mac
gets when connected to a VPN.

2 years agoRename a method, cleanup lint errors.
Scott Gasch [Sun, 27 Feb 2022 06:41:58 +0000 (22:41 -0800)]
Rename a method, cleanup lint errors.

2 years agoMore work on tplink utils to avoid having to call tplink.py.
Scott Gasch [Sat, 26 Feb 2022 19:15:31 +0000 (11:15 -0800)]
More work on tplink utils to avoid having to call tplink.py.

2 years agoIncrease timeout.
Scott Gasch [Sat, 26 Feb 2022 18:47:16 +0000 (10:47 -0800)]
Increase timeout.

2 years agoMoved more logic from tplink.py into a library.
Scott Gasch [Sat, 26 Feb 2022 18:45:11 +0000 (10:45 -0800)]
Moved more logic from tplink.py into a library.

2 years agoMoving towards not needing a separate tplink.py utility.
Scott Gasch [Fri, 25 Feb 2022 19:03:14 +0000 (11:03 -0800)]
Moving towards not needing a separate tplink.py utility.

2 years agoAlso log about __debug__.
Scott Gasch [Thu, 24 Feb 2022 23:52:21 +0000 (15:52 -0800)]
Also log about __debug__.

2 years agoMove encrypt and decrypt routines into tplink_utils.
Scott Gasch [Wed, 23 Feb 2022 22:40:50 +0000 (14:40 -0800)]
Move encrypt and decrypt routines into tplink_utils.

2 years agoLet text_utils work with strings that contain ansi escape sequences.
Scott Gasch [Wed, 23 Feb 2022 20:43:37 +0000 (12:43 -0800)]
Let text_utils work with strings that contain ansi escape sequences.

2 years agoSeparate box and print_box.
Scott Gasch [Wed, 23 Feb 2022 19:09:57 +0000 (11:09 -0800)]
Separate box and print_box.

2 years agoAdded a box method and fixed the broken justify method.
Scott Gasch [Wed, 23 Feb 2022 17:32:42 +0000 (09:32 -0800)]
Added a box method and fixed the broken justify method.

2 years agoLog the original commandline at DEBUG level.
Scott Gasch [Wed, 23 Feb 2022 04:02:24 +0000 (20:02 -0800)]
Log the original commandline at DEBUG level.

2 years agoRemove whitespace from trie's repr_brief.
Scott Gasch [Wed, 23 Feb 2022 04:00:15 +0000 (20:00 -0800)]
Remove whitespace from trie's repr_brief.

2 years agoCleanup
Scott Gasch [Fri, 18 Feb 2022 02:37:51 +0000 (18:37 -0800)]
Cleanup

2 years agoFix dimmer level JSON command.
Scott Gasch [Thu, 17 Feb 2022 20:01:10 +0000 (12:01 -0800)]
Fix dimmer level JSON command.

2 years agoCleanup.
Scott Gasch [Thu, 17 Feb 2022 19:52:14 +0000 (11:52 -0800)]
Cleanup.

2 years agoUpdate profanity.
Scott Gasch [Tue, 15 Feb 2022 21:09:08 +0000 (13:09 -0800)]
Update profanity.

2 years agoFix a bug in sanity check image.
Scott Gasch [Tue, 15 Feb 2022 18:24:51 +0000 (10:24 -0800)]
Fix a bug in sanity check image.

2 years agoOops.
Scott Gasch [Sat, 12 Feb 2022 20:19:23 +0000 (12:19 -0800)]
Oops.

2 years agoTry another tactic to figure out entry point.
Scott Gasch [Sat, 12 Feb 2022 19:20:27 +0000 (11:20 -0800)]
Try another tactic to figure out entry point.

2 years agoChange weights.
Scott Gasch [Sat, 12 Feb 2022 19:17:45 +0000 (11:17 -0800)]
Change weights.

2 years agoAdd mode.
Scott Gasch [Fri, 11 Feb 2022 19:40:38 +0000 (11:40 -0800)]
Add mode.

2 years agoFix stdev.
Scott Gasch [Fri, 11 Feb 2022 19:14:20 +0000 (11:14 -0800)]
Fix stdev.

2 years agoMore cleanup.
Scott Gasch [Thu, 10 Feb 2022 22:52:14 +0000 (14:52 -0800)]
More cleanup.

2 years agoMore cleanup.
Scott Gasch [Thu, 10 Feb 2022 22:27:05 +0000 (14:27 -0800)]
More cleanup.

2 years agoMore cleanup.
Scott Gasch [Thu, 10 Feb 2022 22:10:48 +0000 (14:10 -0800)]
More cleanup.

2 years agoAdds pyproject.toml.
Scott Gasch [Thu, 10 Feb 2022 21:38:41 +0000 (13:38 -0800)]
Adds pyproject.toml.

2 years agoMore cleanup.
Scott Gasch [Thu, 10 Feb 2022 21:36:58 +0000 (13:36 -0800)]
More cleanup.

2 years agoUpdate docs.
Scott Gasch [Thu, 10 Feb 2022 19:40:19 +0000 (11:40 -0800)]
Update docs.