pyutils.git
2 years agoUpdate docs.
Scott Gasch [Sun, 30 Oct 2022 20:50:50 +0000 (13:50 -0700)]
Update docs.

2 years agoUpdate docs around development
Scott Gasch [Sun, 30 Oct 2022 20:16:20 +0000 (13:16 -0700)]
Update docs around development

2 years agoCut version 0.0.1b6
Scott Gasch [Sun, 30 Oct 2022 19:58:31 +0000 (12:58 -0700)]
Cut version 0.0.1b6

- Fix toml files after rename.  This rename is a pain!
- Cut version 0.0.1b6
- Cut version 0.0.1b6
- Fix dog generation after last rename change.
- Rename some directories (e.g. typez -> types) since they don't collide with any stdlib names.
- Add better docs with an example to SharedDict.
- Add id_generator_test.
- Add run_tests.py to the examples/README list.
- Make run_tests_serially.sh skip zookeeper_test.py too.
- Teach run_tests.py to abort inflight tests in case of emergency shutdown.
- Fix wrong TimeoutError in catch.
- Get reminder to stop leaving turds around my filesystem.
- Docs for dataclass_utils.
- Add dataclass_utils for some simple dataclass wrappers and annotation.
- Improve documentation / doctests.
- Update documentation.
- Cut version 0.0.1b5

2 years agoFix toml files after rename. This rename is a pain!
Scott Gasch [Sun, 30 Oct 2022 19:57:16 +0000 (12:57 -0700)]
Fix toml files after rename.  This rename is a pain!

2 years agoCut version 0.0.1b6
Scott Gasch [Sun, 30 Oct 2022 19:55:48 +0000 (12:55 -0700)]
Cut version 0.0.1b6

- Cut version 0.0.1b6
- Fix dog generation after last rename change.
- Rename some directories (e.g. typez -> types) since they don't collide with any stdlib names.
- Add better docs with an example to SharedDict.
- Add id_generator_test.
- Add run_tests.py to the examples/README list.
- Make run_tests_serially.sh skip zookeeper_test.py too.
- Teach run_tests.py to abort inflight tests in case of emergency shutdown.
- Fix wrong TimeoutError in catch.
- Get reminder to stop leaving turds around my filesystem.
- Docs for dataclass_utils.
- Add dataclass_utils for some simple dataclass wrappers and annotation.
- Improve documentation / doctests.
- Update documentation.
- Cut version 0.0.1b5

2 years agoCut version 0.0.1b6
Scott Gasch [Sun, 30 Oct 2022 19:52:44 +0000 (12:52 -0700)]
Cut version 0.0.1b6

- Fix docs after rename
- Rename some directories (e.g. typez -> types) since they don't collide with any stdlib names.
- Add better docs with an example to SharedDict.
- Add id_generator_test.
- Add run_tests.py to the examples/README list.
- Make run_tests_serially.sh skip zookeeper_test.py too.
- Teach run_tests.py to abort inflight tests in case of emergency shutdown.
- Fix wrong TimeoutError in catch.
- Get reminder to stop leaving turds around my filesystem.
- Docs for dataclass_utils.
- Add dataclass_utils for some simple dataclass wrappers and annotation.
- Improve documentation / doctests.
- Update documentation.
- Cut version 0.0.1b5

2 years agoFix dog generation after last rename change.
Scott Gasch [Sun, 30 Oct 2022 19:44:31 +0000 (12:44 -0700)]
Fix dog generation after last rename change.

2 years agoRename some directories (e.g. typez -> types) since they don't collide with
Scott Gasch [Sun, 30 Oct 2022 19:40:12 +0000 (12:40 -0700)]
Rename some directories (e.g. typez -> types) since they don't collide with
any stdlib names.

2 years agoAdd better docs with an example to SharedDict.
Scott Gasch [Sun, 30 Oct 2022 03:14:48 +0000 (20:14 -0700)]
Add better docs with an example to SharedDict.

2 years agoAdd id_generator_test.
Scott Gasch [Sat, 29 Oct 2022 21:37:43 +0000 (14:37 -0700)]
Add id_generator_test.

2 years agoAdd run_tests.py to the examples/README list.
Scott Gasch [Sat, 29 Oct 2022 18:00:31 +0000 (11:00 -0700)]
Add run_tests.py to the examples/README list.

2 years agoMake run_tests_serially.sh skip zookeeper_test.py too.
Scott Gasch [Sat, 29 Oct 2022 17:58:08 +0000 (10:58 -0700)]
Make run_tests_serially.sh skip zookeeper_test.py too.

2 years agoTeach run_tests.py to abort inflight tests in case of emergency shutdown.
Scott Gasch [Sat, 29 Oct 2022 17:36:30 +0000 (10:36 -0700)]
Teach run_tests.py to abort inflight tests in case of emergency shutdown.

2 years agoFix wrong TimeoutError in catch.
Scott Gasch [Sat, 29 Oct 2022 00:28:27 +0000 (17:28 -0700)]
Fix wrong TimeoutError in catch.

2 years agoGet reminder to stop leaving turds around my filesystem.
Scott Gasch [Wed, 26 Oct 2022 17:58:26 +0000 (10:58 -0700)]
Get reminder to stop leaving turds around my filesystem.

2 years agoDocs for dataclass_utils.
Scott Gasch [Wed, 26 Oct 2022 15:52:01 +0000 (08:52 -0700)]
Docs for dataclass_utils.

2 years agoAdd dataclass_utils for some simple dataclass wrappers and annotation.
Scott Gasch [Wed, 26 Oct 2022 03:58:53 +0000 (20:58 -0700)]
Add dataclass_utils for some simple dataclass wrappers and annotation.

2 years agoImprove documentation / doctests.
Scott Gasch [Tue, 25 Oct 2022 17:18:16 +0000 (10:18 -0700)]
Improve documentation / doctests.

2 years agoUpdate documentation.
Scott Gasch [Tue, 25 Oct 2022 16:47:09 +0000 (09:47 -0700)]
Update documentation.

2 years agoCut version 0.0.1b5
Scott Gasch [Fri, 21 Oct 2022 22:54:05 +0000 (15:54 -0700)]
Cut version 0.0.1b5

- Add missing dependency on ANTLR runtime.
- Lift easter() function from dateutils and remove that dependency from this project.  Original copyright and attribution in the code and the root NOTICE file.
- Make sure lockfile always sets locktime.  Use locktime in cron.py to optionally create a record of lockfile contention for future analysis.
- Improve cut_version.sh understanding of old versions.
- Teach cut_version.sh about PREVIOUS_VERSION...
- Add a blurb about fff.py in README.
- Add fff.py as an example but it's really a devtool that I used in the pre-commit hook.
- Clean up run_tests.py
- More messing with the project file.
- Update license to try to make the PyPi page look nicer...
- Make it clear that --config_allow_dynamic_updates doesn't take any argument.
- Add some more examples and a convenience method in config.py for terminating the program due to bad flags.
- Reference local files in wordle example.
- Better explain what the heck is going on in deferred_operand.py.
- Add an overall runtime line to the final report in run_tests.py.
- Adds timer next to progress bar in run_tests.py.
- Remove hardcoded properties list from DeferredOperand; use a c'tor param instead.
- Add a comment for future fields in SmartFuture.
- Make DeferredOperand handle sets, dirs, dels transparently by passing them along to the wrapped result.
- Make DeferredOperand work more transparently.
- Stop calling internal method _resolve in run_tests.py.
- Log an error message when something went wrong in run_tests.py.
- Do not let test names in results collide when we run one to capture coverage and another instance of the same test w/o coverage to check perf.
- Make run_tests.py keep track of test runtimes.
- Make run_tests.py tell you what's still running.
- Cut version 0.0.1b4

2 years agoAdd missing dependency on ANTLR runtime.
Scott Gasch [Fri, 21 Oct 2022 22:45:28 +0000 (15:45 -0700)]
Add missing dependency on ANTLR runtime.

2 years agoLift easter() function from dateutils and remove that dependency from
Scott Gasch [Fri, 21 Oct 2022 19:01:45 +0000 (12:01 -0700)]
Lift easter() function from dateutils and remove that dependency from
this project.  Original copyright and attribution in the code and the
root NOTICE file.

2 years agoMake sure lockfile always sets locktime. Use locktime in cron.py to
Scott Gasch [Wed, 19 Oct 2022 21:23:39 +0000 (14:23 -0700)]
Make sure lockfile always sets locktime.  Use locktime in cron.py to
optionally create a record of lockfile contention for future analysis.

2 years agoImprove cut_version.sh understanding of old versions.
Scott Gasch [Wed, 19 Oct 2022 05:53:39 +0000 (22:53 -0700)]
Improve cut_version.sh understanding of old versions.

2 years agoTeach cut_version.sh about PREVIOUS_VERSION...
Scott Gasch [Wed, 19 Oct 2022 05:50:39 +0000 (22:50 -0700)]
Teach cut_version.sh about PREVIOUS_VERSION...

2 years agoAdd a blurb about fff.py in README.
Scott Gasch [Wed, 19 Oct 2022 05:25:31 +0000 (22:25 -0700)]
Add a blurb about fff.py in README.

2 years agoAdd fff.py as an example but it's really a devtool that I used in
Scott Gasch [Wed, 19 Oct 2022 05:22:32 +0000 (22:22 -0700)]
Add fff.py as an example but it's really a devtool that I used in
the pre-commit hook.

2 years agoClean up run_tests.py
Scott Gasch [Wed, 19 Oct 2022 05:20:32 +0000 (22:20 -0700)]
Clean up run_tests.py

2 years agoMore messing with the project file.
Scott Gasch [Wed, 19 Oct 2022 02:51:07 +0000 (19:51 -0700)]
More messing with the project file.

2 years agoUpdate license to try to make the PyPi page look nicer...
Scott Gasch [Wed, 19 Oct 2022 02:38:31 +0000 (19:38 -0700)]
Update license to try to make the PyPi page look nicer...

2 years agoMake it clear that --config_allow_dynamic_updates doesn't take any
Scott Gasch [Tue, 18 Oct 2022 20:12:19 +0000 (13:12 -0700)]
Make it clear that --config_allow_dynamic_updates doesn't take any
argument.

2 years agoAdd some more examples and a convenience method in config.py for
Scott Gasch [Tue, 18 Oct 2022 20:03:22 +0000 (13:03 -0700)]
Add some more examples and a convenience method in config.py for
terminating the program due to bad flags.

2 years agoReference local files in wordle example.
Scott Gasch [Tue, 18 Oct 2022 18:03:46 +0000 (11:03 -0700)]
Reference local files in wordle example.

2 years agoBetter explain what the heck is going on in deferred_operand.py.
Scott Gasch [Tue, 18 Oct 2022 17:25:47 +0000 (10:25 -0700)]
Better explain what the heck is going on in deferred_operand.py.

2 years agoAdd an overall runtime line to the final report in run_tests.py.
Scott Gasch [Tue, 18 Oct 2022 17:22:54 +0000 (10:22 -0700)]
Add an overall runtime line to the final report in run_tests.py.

2 years agoAdds timer next to progress bar in run_tests.py.
Scott Gasch [Tue, 18 Oct 2022 17:16:28 +0000 (10:16 -0700)]
Adds timer next to progress bar in run_tests.py.

2 years agoRemove hardcoded properties list from DeferredOperand; use a c'tor
Scott Gasch [Tue, 18 Oct 2022 17:06:26 +0000 (10:06 -0700)]
Remove hardcoded properties list from DeferredOperand; use a c'tor
param instead.

2 years agoAdd a comment for future fields in SmartFuture.
Scott Gasch [Tue, 18 Oct 2022 06:05:47 +0000 (23:05 -0700)]
Add a comment for future fields in SmartFuture.

2 years agoMake DeferredOperand handle sets, dirs, dels transparently by passing
Scott Gasch [Tue, 18 Oct 2022 06:03:38 +0000 (23:03 -0700)]
Make DeferredOperand handle sets, dirs, dels transparently by passing
them along to the wrapped result.

2 years agoMake DeferredOperand work more transparently.
Scott Gasch [Tue, 18 Oct 2022 05:27:24 +0000 (22:27 -0700)]
Make DeferredOperand work more transparently.

2 years agoStop calling internal method _resolve in run_tests.py.
Scott Gasch [Tue, 18 Oct 2022 03:51:05 +0000 (20:51 -0700)]
Stop calling internal method _resolve in run_tests.py.

2 years agoLog an error message when something went wrong in run_tests.py.
Scott Gasch [Tue, 18 Oct 2022 03:03:56 +0000 (20:03 -0700)]
Log an error message when something went wrong in run_tests.py.

2 years agoDo not let test names in results collide when we run one to capture
Scott Gasch [Tue, 18 Oct 2022 03:00:26 +0000 (20:00 -0700)]
Do not let test names in results collide when we run one to capture
coverage and another instance of the same test w/o coverage to check
perf.

2 years agoMake run_tests.py keep track of test runtimes.
Scott Gasch [Tue, 18 Oct 2022 02:33:30 +0000 (19:33 -0700)]
Make run_tests.py keep track of test runtimes.

2 years agoMake run_tests.py tell you what's still running.
Scott Gasch [Tue, 18 Oct 2022 02:14:48 +0000 (19:14 -0700)]
Make run_tests.py tell you what's still running.

2 years agoCut version 0.0.1b4
Scott Gasch [Mon, 17 Oct 2022 19:28:31 +0000 (12:28 -0700)]
Cut version 0.0.1b4

- Update sphinx links to anonymous references to work around a warning message at docs build time.
- More documentation improvements.
- Fix run_tests.py to detect doctest failures and tear itself down more quickly when a test has failed.
- Update remote worker records to be more instructive.
- Hacky code to sort the colors on the sphinx webpage. :P
- Cut version 0.0.1b3

2 years agoUpdate sphinx links to anonymous references to work around a warning
Scott Gasch [Mon, 17 Oct 2022 19:20:58 +0000 (12:20 -0700)]
Update sphinx links to anonymous references to work around a warning
message at docs build time.

https://github.com/sphinx-doc/sphinx/issues/3921

2 years agoMore documentation improvements.
Scott Gasch [Mon, 17 Oct 2022 19:16:28 +0000 (12:16 -0700)]
More documentation improvements.

2 years agoFix run_tests.py to detect doctest failures and tear itself down more
Scott Gasch [Mon, 17 Oct 2022 18:56:22 +0000 (11:56 -0700)]
Fix run_tests.py to detect doctest failures and tear itself down more
quickly when a test has failed.

2 years agoUpdate remote worker records to be more instructive.
Scott Gasch [Mon, 17 Oct 2022 16:41:10 +0000 (09:41 -0700)]
Update remote worker records to be more instructive.

2 years agoHacky code to sort the colors on the sphinx webpage. :P
Scott Gasch [Mon, 17 Oct 2022 03:43:06 +0000 (20:43 -0700)]
Hacky code to sort the colors on the sphinx webpage. :P

2 years agoCut version 0.0.1b3
Scott Gasch [Sun, 16 Oct 2022 19:12:35 +0000 (12:12 -0700)]
Cut version 0.0.1b3

- Handle exception from os when attempting to determine console sizes.
- Fall back on os.get_terminal_size() rather than calls to tput/stty when we can't figure out how big the console is.
- More work to improve documentation generated by sphinx.  Also fixes some type hints that were confusing mypy and re-enables the doctests in collectionz/trie + collections/bst.  Some improvement of the typez/centcount and typez/money that were inspired by improving their docs.
- More work to improve the quality of sphinx autodocs.
- More writing examples and improving documentation.
- More documentation changes but includes a change to config.py that removes the ability to set flags via environment variables.  It was hacky and I don't use it.
- Improve documentation in bootstrap.py.
- Improve documentation in argparse_utils.py.
- Improve documentation in ansi.py.
- Minor logic changes (e.g. thunk one method to another) but a lot of documentation cleanup.
- More documentation.
- Adds function to write out an integer longhand.
- Cut version 0.0.1b2

2 years agoHandle exception from os when attempting to determine console sizes.
Scott Gasch [Sun, 16 Oct 2022 19:10:15 +0000 (12:10 -0700)]
Handle exception from os when attempting to determine console sizes.

2 years agoFall back on os.get_terminal_size() rather than calls to tput/stty
Scott Gasch [Sun, 16 Oct 2022 19:01:46 +0000 (12:01 -0700)]
Fall back on os.get_terminal_size() rather than calls to tput/stty
when we can't figure out how big the console is.

2 years agoMore work to improve documentation generated by sphinx. Also fixes
Scott Gasch [Sun, 16 Oct 2022 18:48:07 +0000 (11:48 -0700)]
More work to improve documentation generated by sphinx.  Also fixes
some type hints that were confusing mypy and re-enables the doctests
in collectionz/trie + collections/bst.  Some improvement of the
typez/centcount and typez/money that were inspired by improving
their docs.

2 years agoMore work to improve the quality of sphinx autodocs.
Scott Gasch [Sat, 15 Oct 2022 22:43:52 +0000 (15:43 -0700)]
More work to improve the quality of sphinx autodocs.

2 years agoMore writing examples and improving documentation.
Scott Gasch [Sat, 15 Oct 2022 00:31:33 +0000 (17:31 -0700)]
More writing examples and improving documentation.

2 years agoMore documentation changes but includes a change to config.py that
Scott Gasch [Fri, 14 Oct 2022 22:01:24 +0000 (15:01 -0700)]
More documentation changes but includes a change to config.py that
removes the ability to set flags via environment variables.  It was
hacky and I don't use it.

2 years agoImprove documentation in bootstrap.py.
Scott Gasch [Fri, 14 Oct 2022 21:58:10 +0000 (14:58 -0700)]
Improve documentation in bootstrap.py.

2 years agoImprove documentation in argparse_utils.py.
Scott Gasch [Fri, 14 Oct 2022 21:57:10 +0000 (14:57 -0700)]
Improve documentation in argparse_utils.py.

2 years agoImprove documentation in ansi.py.
Scott Gasch [Fri, 14 Oct 2022 21:56:13 +0000 (14:56 -0700)]
Improve documentation in ansi.py.

2 years agoMinor logic changes (e.g. thunk one method to another) but a lot of
Scott Gasch [Fri, 14 Oct 2022 21:54:40 +0000 (14:54 -0700)]
Minor logic changes (e.g. thunk one method to another) but a lot of
documentation cleanup.

2 years agoMore documentation.
Scott Gasch [Fri, 14 Oct 2022 16:26:58 +0000 (09:26 -0700)]
More documentation.

2 years agoAdds function to write out an integer longhand.
Scott Gasch [Fri, 14 Oct 2022 16:25:50 +0000 (09:25 -0700)]
Adds function to write out an integer longhand.

2 years agoCut version 0.0.1b2
Scott Gasch [Fri, 14 Oct 2022 01:30:26 +0000 (18:30 -0700)]
Cut version 0.0.1b2

- Improve documentation.
- More work on improving docs.
- Improve docs.
- Add some example code.
- Followup to previous changes in math_utils; have the code use its own len.
- Moving zookeeper.py here caused a dep on kazoo.
- Make markdown look nicer.
- Update README with link to local git repo + previous version.
- Cut version 0.0.1b

2 years agoImprove documentation.
Scott Gasch [Fri, 14 Oct 2022 01:27:34 +0000 (18:27 -0700)]
Improve documentation.

2 years agoMore work on improving docs.
Scott Gasch [Thu, 13 Oct 2022 19:14:13 +0000 (12:14 -0700)]
More work on improving docs.

2 years agoImprove docs.
Scott Gasch [Thu, 13 Oct 2022 18:44:10 +0000 (11:44 -0700)]
Improve docs.

2 years agoAdd some example code.
Scott Gasch [Thu, 13 Oct 2022 16:45:15 +0000 (09:45 -0700)]
Add some example code.

2 years agoFollowup to previous changes in math_utils; have the code use
Scott Gasch [Wed, 12 Oct 2022 22:59:03 +0000 (15:59 -0700)]
Followup to previous changes in math_utils; have the code use
its own len.

2 years agoMoving zookeeper.py here caused a dep on kazoo.
Scott Gasch [Wed, 12 Oct 2022 22:58:34 +0000 (15:58 -0700)]
Moving zookeeper.py here caused a dep on kazoo.

2 years agoMake markdown look nicer.
Scott Gasch [Wed, 12 Oct 2022 21:02:59 +0000 (14:02 -0700)]
Make markdown look nicer.

2 years agoUpdate README with link to local git repo + previous version.
Scott Gasch [Wed, 12 Oct 2022 20:50:20 +0000 (13:50 -0700)]
Update README with link to local git repo + previous version.

2 years agoCut version 0.0.1b
Scott Gasch [Wed, 12 Oct 2022 19:39:04 +0000 (12:39 -0700)]
Cut version 0.0.1b

- Add __len__ to NumericPopulation and then use it instead of a dependency on numpy.
- Adds file to publish doc changes w/o waiting for cronjob.
- Fixup sphinx usage examples to render correctly(?)
- Towards a more type-clean mypy check.
- Fix cut_version.sh for new name.
- Fixup sphinx doc generation so that it works post name change.

2 years agoAdd __len__ to NumericPopulation and then use it instead of a dependency on
Scott Gasch [Wed, 12 Oct 2022 19:31:51 +0000 (12:31 -0700)]
Add __len__ to NumericPopulation and then use it instead of a dependency on
numpy.

2 years agoAdds file to publish doc changes w/o waiting for cronjob.
Scott Gasch [Wed, 12 Oct 2022 19:31:15 +0000 (12:31 -0700)]
Adds file to publish doc changes w/o waiting for cronjob.

2 years agoFixup sphinx usage examples to render correctly(?)
Scott Gasch [Wed, 12 Oct 2022 18:45:06 +0000 (11:45 -0700)]
Fixup sphinx usage examples to render correctly(?)

2 years agoTowards a more type-clean mypy check.
Scott Gasch [Wed, 12 Oct 2022 18:16:55 +0000 (11:16 -0700)]
Towards a more type-clean mypy check.

2 years agoFix cut_version.sh for new name.
Scott Gasch [Wed, 12 Oct 2022 17:38:01 +0000 (10:38 -0700)]
Fix cut_version.sh for new name.

2 years agoFixup sphinx doc generation so that it works post name change.
Scott Gasch [Wed, 12 Oct 2022 17:35:23 +0000 (10:35 -0700)]
Fixup sphinx doc generation so that it works post name change.

2 years agoMigration from old pyutilz package name (which, in turn, came from
Scott Gasch [Wed, 12 Oct 2022 17:17:06 +0000 (10:17 -0700)]
Migration from old pyutilz package name (which, in turn, came from
my old python_utilities package).  This one is ok to upload to
PyPI per:

    https://github.com/pypa/pypi-support/issues/2201