python_utils.git
2 years agoMake smart futures avoid polling.
Scott Gasch [Fri, 19 Nov 2021 04:39:12 +0000 (20:39 -0800)]
Make smart futures avoid polling.
Much fucking around with the backup strategy in executors.
Tweaks to presence.

2 years agoWaitableState thingy and some stuff in the ML world.
Scott Gasch [Thu, 18 Nov 2021 06:14:37 +0000 (22:14 -0800)]
WaitableState thingy and some stuff in the ML world.

2 years agoBugfixes in executors.
Scott Gasch [Wed, 17 Nov 2021 23:26:43 +0000 (15:26 -0800)]
Bugfixes in executors.

2 years agoMake remote workers die if no longer needed; cleanups in executors.
Scott Gasch [Wed, 17 Nov 2021 22:40:34 +0000 (14:40 -0800)]
Make remote workers die if no longer needed; cleanups in executors.

2 years agoMaking remote training work better.
Scott Gasch [Tue, 16 Nov 2021 00:55:26 +0000 (16:55 -0800)]
Making remote training work better.

2 years agoTighten up the remote executor.
Scott Gasch [Mon, 15 Nov 2021 06:48:04 +0000 (22:48 -0800)]
Tighten up the remote executor.

2 years agoSmall changes to decorators.
Scott Gasch [Sun, 14 Nov 2021 23:46:39 +0000 (15:46 -0800)]
Small changes to decorators.

2 years agoSmall bugfixes; also, add a new machine to the remote executor pool.
Scott Gasch [Sat, 13 Nov 2021 15:06:31 +0000 (07:06 -0800)]
Small bugfixes; also, add a new machine to the remote executor pool.

2 years agoAdd device_utils.py
Scott Gasch [Tue, 2 Nov 2021 03:05:34 +0000 (20:05 -0700)]
Add device_utils.py

2 years agoOverrides + debugging modules / functions in logging.
Scott Gasch [Mon, 1 Nov 2021 21:10:02 +0000 (14:10 -0700)]
Overrides + debugging modules / functions in logging.

2 years agoUgh, a bunch of things. @overrides. --lmodule. Chromecasts. etc...
Scott Gasch [Sun, 31 Oct 2021 20:08:51 +0000 (13:08 -0700)]
Ugh, a bunch of things.  @overrides.  --lmodule.  Chromecasts.  etc...

2 years agoFix Arper, make IP address a property of device
Scott Gasch [Fri, 29 Oct 2021 18:26:45 +0000 (11:26 -0700)]
Fix Arper, make IP address a property of device

2 years agoAdds Arper, cleans up other stuff.
Scott Gasch [Fri, 29 Oct 2021 17:33:07 +0000 (10:33 -0700)]
Adds Arper, cleans up other stuff.

2 years agoTypo.
Scott Gasch [Fri, 29 Oct 2021 06:13:04 +0000 (23:13 -0700)]
Typo.

2 years agoAdd cameras, fix bugs
Scott Gasch [Fri, 29 Oct 2021 04:23:55 +0000 (21:23 -0700)]
Add cameras, fix bugs

2 years agoSmart outlets
Scott Gasch [Fri, 29 Oct 2021 03:50:36 +0000 (20:50 -0700)]
Smart outlets

2 years agoMoving smart lights into smart_home to prepare for adding
Scott Gasch [Thu, 28 Oct 2021 18:51:22 +0000 (11:51 -0700)]
Moving smart lights into smart_home to prepare for adding
outlets and cameras.

2 years agoMove cache location. Also, add doctests for exec_utils.
Scott Gasch [Mon, 25 Oct 2021 22:05:02 +0000 (15:05 -0700)]
Move cache location.  Also, add doctests for exec_utils.

2 years agoSome fixes to the datetime_utils.
Scott Gasch [Mon, 25 Oct 2021 01:06:20 +0000 (18:06 -0700)]
Some fixes to the datetime_utils.

2 years agoAdds site_config; adds Tuya lights. Bugfixes.
Scott Gasch [Sun, 24 Oct 2021 06:49:08 +0000 (23:49 -0700)]
Adds site_config; adds Tuya lights.  Bugfixes.

2 years agoBugfixes.
Scott Gasch [Tue, 19 Oct 2021 23:40:34 +0000 (16:40 -0700)]
Bugfixes.

2 years agoAdds logging in light stuff, minor changes in config/string.
Scott Gasch [Tue, 12 Oct 2021 02:21:19 +0000 (19:21 -0700)]
Adds logging in light stuff, minor changes in config/string.

2 years agoStarting to move towards python3.9
Scott Gasch [Thu, 7 Oct 2021 00:11:52 +0000 (17:11 -0700)]
Starting to move towards python3.9

2 years agoGroups of google lights (kinda hacky, needs a rework), import auditing.
Scott Gasch [Tue, 5 Oct 2021 14:48:09 +0000 (07:48 -0700)]
Groups of google lights (kinda hacky, needs a rework), import auditing.

2 years agochanges
Scott Gasch [Sat, 2 Oct 2021 16:03:31 +0000 (09:03 -0700)]
changes

2 years agoSome binary tree methods to support the unscramble progam's sparsefile
Scott Gasch [Thu, 30 Sep 2021 00:31:06 +0000 (17:31 -0700)]
Some binary tree methods to support the unscramble progam's sparsefile
population.

2 years agoStuff.
Scott Gasch [Wed, 29 Sep 2021 22:40:43 +0000 (15:40 -0700)]
Stuff.

2 years agoAdd tests on bidict. Fix bug in string_utils ngrams.
Scott Gasch [Wed, 29 Sep 2021 18:21:41 +0000 (11:21 -0700)]
Add tests on bidict.  Fix bug in string_utils ngrams.

2 years agoWorkaround likely client bug in letter_compress. Update tests in bst.
Scott Gasch [Wed, 29 Sep 2021 16:03:57 +0000 (09:03 -0700)]
Workaround likely client bug in letter_compress.  Update tests in bst.
Add pip_install.sh.

2 years agoVarious changes
Scott Gasch [Wed, 29 Sep 2021 06:27:51 +0000 (23:27 -0700)]
Various changes

2 years agoMove collections into collect space
Scott Gasch [Mon, 27 Sep 2021 16:06:50 +0000 (09:06 -0700)]
Move collections into collect space

2 years agoCompress small text messages by just restricting the alphabet. Adds bidict.
Scott Gasch [Mon, 27 Sep 2021 15:47:39 +0000 (08:47 -0700)]
Compress small text messages by just restricting the alphabet.  Adds bidict.

2 years agoCached weather data.
Scott Gasch [Sun, 26 Sep 2021 15:28:01 +0000 (08:28 -0700)]
Cached weather data.

2 years agoAdd some classes that use persistent to cache data about the weather
Scott Gasch [Sat, 25 Sep 2021 14:18:30 +0000 (07:18 -0700)]
Add some classes that use persistent to cache data about the weather
in Bellevue, WA.

2 years agoOh my god, I fucking hate pickle, dill, cloudpickle and all that
Scott Gasch [Sat, 25 Sep 2021 04:17:58 +0000 (21:17 -0700)]
Oh my god, I fucking hate pickle, dill, cloudpickle and all that
stuff.  What a total pain in the ass.  I kept getting pickle
complaining about class not really being class and refusing to write
if any other modules were imported between the creation and the save
that I gave up and moved save and load to user defined things.  Maybe
a better design anyway.

2 years agoMake smaller 'reset's
Scott Gasch [Sat, 25 Sep 2021 04:17:16 +0000 (21:17 -0700)]
Make smaller 'reset's

2 years agoTrie repr.
Scott Gasch [Fri, 24 Sep 2021 17:03:18 +0000 (10:03 -0700)]
Trie repr.

2 years agoAdds a trie class.
Scott Gasch [Fri, 24 Sep 2021 05:10:30 +0000 (22:10 -0700)]
Adds a trie class.

2 years agoFixup argparse_utils' doctest and tweak test runner.
Scott Gasch [Thu, 23 Sep 2021 16:40:48 +0000 (09:40 -0700)]
Fixup argparse_utils' doctest and tweak test runner.

2 years agoFixup test runner.
Scott Gasch [Thu, 23 Sep 2021 15:31:49 +0000 (08:31 -0700)]
Fixup test runner.

2 years agoVarious little changes. Naming. Durations as arguments.
Scott Gasch [Thu, 23 Sep 2021 00:37:17 +0000 (17:37 -0700)]
Various little changes.  Naming.  Durations as arguments.

2 years agoUpdated docs.
Scott Gasch [Wed, 22 Sep 2021 21:25:16 +0000 (14:25 -0700)]
Updated docs.

2 years agoImprove persistent after actually using it.
Scott Gasch [Wed, 22 Sep 2021 20:40:41 +0000 (13:40 -0700)]
Improve persistent after actually using it.

2 years agoPersistent state.
Scott Gasch [Wed, 22 Sep 2021 01:25:50 +0000 (18:25 -0700)]
Persistent state.

2 years agoDedup a list w/ a set.
Scott Gasch [Wed, 22 Sep 2021 01:25:17 +0000 (18:25 -0700)]
Dedup a list w/ a set.

2 years agoPersisted singleton
Scott Gasch [Mon, 20 Sep 2021 05:13:47 +0000 (22:13 -0700)]
Persisted singleton

2 years agoPersistent state
Scott Gasch [Mon, 20 Sep 2021 00:45:04 +0000 (17:45 -0700)]
Persistent state

2 years agoMost/least common item in a list.
Scott Gasch [Sun, 19 Sep 2021 01:12:26 +0000 (18:12 -0700)]
Most/least common item in a list.

2 years agoA very important change to docs.
Scott Gasch [Thu, 16 Sep 2021 15:48:06 +0000 (08:48 -0700)]
A very important change to docs.

2 years agoLogging + documentation.
Scott Gasch [Wed, 15 Sep 2021 23:08:50 +0000 (16:08 -0700)]
Logging + documentation.

2 years agoAdding doctests. Also added a logging filter.
Scott Gasch [Wed, 15 Sep 2021 16:32:08 +0000 (09:32 -0700)]
Adding doctests.  Also added a logging filter.

2 years agoAdding more tests, working on the test harness.
Scott Gasch [Fri, 10 Sep 2021 20:23:31 +0000 (13:23 -0700)]
Adding more tests, working on the test harness.

2 years agoUpdate tests / test harness.
Scott Gasch [Thu, 9 Sep 2021 23:42:13 +0000 (16:42 -0700)]
Update tests / test harness.

2 years agoAdd doctests to some of this stuff.
Scott Gasch [Thu, 9 Sep 2021 06:29:05 +0000 (23:29 -0700)]
Add doctests to some of this stuff.

2 years agoVarious changes.
Scott Gasch [Wed, 8 Sep 2021 05:20:40 +0000 (22:20 -0700)]
Various changes.

2 years agoMake config_loadfile augment cmdline instead of klobbering.
Scott Gasch [Fri, 6 Aug 2021 18:30:28 +0000 (11:30 -0700)]
Make config_loadfile augment cmdline instead of klobbering.

2 years agoGet rid of blacklist/whitelist; use blocklist/allowlist instead.
Scott Gasch [Fri, 6 Aug 2021 18:20:14 +0000 (11:20 -0700)]
Get rid of blacklist/whitelist; use blocklist/allowlist instead.

2 years agoMake loadfile work.
Scott Gasch [Fri, 6 Aug 2021 18:19:48 +0000 (11:19 -0700)]
Make loadfile work.

2 years agoAdds profanity filter, fixes bugs.
Scott Gasch [Thu, 5 Aug 2021 21:56:34 +0000 (14:56 -0700)]
Adds profanity filter, fixes bugs.

2 years agoLockfile custom command, fixup minor things.
Scott Gasch [Thu, 29 Jul 2021 16:11:05 +0000 (09:11 -0700)]
Lockfile custom command, fixup minor things.

2 years agoMoney, Rate, CentCount and a bunch of bugfixes.
Scott Gasch [Thu, 29 Jul 2021 05:13:43 +0000 (22:13 -0700)]
Money, Rate, CentCount and a bunch of bugfixes.

2 years agoRecord streams.
Scott Gasch [Sat, 17 Jul 2021 21:47:01 +0000 (14:47 -0700)]
Record streams.

2 years agoUpdate ignore
Scott Gasch [Sat, 17 Jul 2021 04:45:30 +0000 (21:45 -0700)]
Update ignore

2 years agoVarious
Scott Gasch [Sat, 17 Jul 2021 04:43:44 +0000 (21:43 -0700)]
Various

2 years agoRename timer; add a test for OutputContext.
Scott Gasch [Sat, 17 Jul 2021 04:43:11 +0000 (21:43 -0700)]
Rename timer; add a test for OutputContext.

2 years agoRandom changes.
Scott Gasch [Tue, 13 Jul 2021 03:52:49 +0000 (20:52 -0700)]
Random changes.

2 years agoRandom cleanups and type safety. Created ml subdir.
Scott Gasch [Sun, 11 Jul 2021 17:16:07 +0000 (10:16 -0700)]
Random cleanups and type safety.  Created ml subdir.

2 years agoScript to run tests.
Scott Gasch [Sat, 10 Jul 2021 01:31:37 +0000 (18:31 -0700)]
Script to run tests.

2 years agoACL uses enums, some more tests, other stuff.
Scott Gasch [Sat, 10 Jul 2021 01:31:02 +0000 (18:31 -0700)]
ACL uses enums, some more tests, other stuff.

2 years agoReduce import scopes, remove cycles.
Scott Gasch [Fri, 9 Jul 2021 05:25:12 +0000 (22:25 -0700)]
Reduce import scopes, remove cycles.

2 years agoRename simple_acl -> acl
Scott Gasch [Fri, 9 Jul 2021 03:08:22 +0000 (20:08 -0700)]
Rename simple_acl -> acl

2 years agoClean up ACLs
Scott Gasch [Fri, 9 Jul 2021 03:05:29 +0000 (20:05 -0700)]
Clean up ACLs

2 years agoLots of changes.
Scott Gasch [Fri, 9 Jul 2021 02:44:27 +0000 (19:44 -0700)]
Lots of changes.

3 years agoTeach python logging formatter to use %f in the format string.
Scott Gasch [Thu, 29 Apr 2021 17:34:32 +0000 (10:34 -0700)]
Teach python logging formatter to use %f in the format string.

3 years agoUse ValueError, not Exception.
Scott Gasch [Sat, 24 Apr 2021 00:17:37 +0000 (17:17 -0700)]
Use ValueError, not Exception.

3 years agoColumnify text.
Scott Gasch [Sat, 24 Apr 2021 00:17:14 +0000 (17:17 -0700)]
Columnify text.

3 years agoRename a flag.
Scott Gasch [Sat, 24 Apr 2021 00:17:02 +0000 (17:17 -0700)]
Rename a flag.

3 years agoMinor editing.
Scott Gasch [Sat, 24 Apr 2021 00:16:39 +0000 (17:16 -0700)]
Minor editing.

3 years agoUse central exceptions.
Scott Gasch [Sat, 24 Apr 2021 00:16:08 +0000 (17:16 -0700)]
Use central exceptions.

3 years agoAvoid directory writes when files are already there.
Scott Gasch [Sat, 24 Apr 2021 00:15:28 +0000 (17:15 -0700)]
Avoid directory writes when files are already there.

3 years agoDetect unknown persons at the cabin.
Scott Gasch [Sat, 24 Apr 2021 00:15:05 +0000 (17:15 -0700)]
Detect unknown persons at the cabin.

3 years agoWe don't need this.
Scott Gasch [Sat, 24 Apr 2021 00:14:49 +0000 (17:14 -0700)]
We don't need this.

3 years agoAdd time units and import constants.py.
Scott Gasch [Sat, 24 Apr 2021 00:14:23 +0000 (17:14 -0700)]
Add time units and import constants.py.

3 years agoMove parallelize_test to tests dir.
Scott Gasch [Sat, 24 Apr 2021 00:13:59 +0000 (17:13 -0700)]
Move parallelize_test to tests dir.

3 years agoMiscellaneous utilities.
Scott Gasch [Sat, 24 Apr 2021 00:13:34 +0000 (17:13 -0700)]
Miscellaneous utilities.

3 years agoMove TimeoutError to central exceptions file.
Scott Gasch [Sat, 24 Apr 2021 00:13:11 +0000 (17:13 -0700)]
Move TimeoutError to central exceptions file.

3 years agoAdding general exceptions.
Scott Gasch [Sat, 24 Apr 2021 00:10:14 +0000 (17:10 -0700)]
Adding general exceptions.

3 years agoVarious sundry changes.
Scott Gasch [Tue, 13 Apr 2021 20:55:12 +0000 (13:55 -0700)]
Various sundry changes.

3 years agoCreate a predicate.py file and a directory write filter predicate
Scott Gasch [Tue, 13 Apr 2021 20:54:19 +0000 (13:54 -0700)]
Create a predicate.py file and a directory write filter predicate
subclass.

3 years agoAdd .gitignore
Scott Gasch [Thu, 25 Mar 2021 01:13:06 +0000 (18:13 -0700)]
Add .gitignore

3 years agoInitial revision
Scott Gasch [Thu, 25 Mar 2021 01:08:54 +0000 (18:08 -0700)]
Initial revision