pyutils.git
15 months agoCut version 0.0.1b9
Scott Gasch [Thu, 9 Feb 2023 22:14:42 +0000 (14:14 -0800)]
Cut version 0.0.1b9

- Fix typo in README.
- Remove the requirement that filename is a file from is_*.
- Typos in docs.
- Update docs.
- Adds remove_edge and shortest path.
- Cut version 0.0.1b8

15 months agoFix typo in README.
Scott Gasch [Thu, 9 Feb 2023 22:05:12 +0000 (14:05 -0800)]
Fix typo in README.

16 months agoRemove the requirement that filename is a file from is_*.
Scott Gasch [Wed, 11 Jan 2023 04:36:01 +0000 (20:36 -0800)]
Remove the requirement that filename is a file from is_*.

17 months agoTypos in docs.
Scott Gasch [Sat, 17 Dec 2022 20:04:43 +0000 (12:04 -0800)]
Typos in docs.

17 months agoUpdate docs.
Scott Gasch [Sat, 17 Dec 2022 20:02:14 +0000 (12:02 -0800)]
Update docs.

17 months agoAdds remove_edge and shortest path.
Scott Gasch [Sat, 17 Dec 2022 20:01:01 +0000 (12:01 -0800)]
Adds remove_edge and shortest path.

17 months agoCut version 0.0.1b8
Scott Gasch [Sat, 17 Dec 2022 06:12:56 +0000 (22:12 -0800)]
Cut version 0.0.1b8

- Docs for Graph.
- Adds Graph.
- Tiebreak ordering of ranges with the same lower bound using upper bound.
- More docs...
- More docs.
- Update docs again.
- Update docs and type hints in interval_tree.  Add it to the pydocs.
- Fix interval_tree so it actually works.  Add unittests.
- Bug and readability fix.
- Adds IntervalTree.
- Remove more annoying warning messages dumped to console from library code.
- Be less annoying.
- Make argparse utils' valid_date work with the default format of UNIX date.
- Improve identifier for zookeeper based lockfiles.
- Adds support for zookeeper-based lockfiles.
- Make the processed cmdline available to callers.
- Fixup/improve error message when giving up on lock acquisition.
- Improve error message for logs.
- Do not touch timestamp if cronjob failed!
- Fix docs.
- Only upload one wheel.
- Update docs.
- Update docs.
- Tweak cut_version.sh again.
- Cut version 0.0.1b7

17 months agoDocs for Graph.
Scott Gasch [Sat, 17 Dec 2022 06:09:46 +0000 (22:09 -0800)]
Docs for Graph.

17 months agoAdds Graph.
Scott Gasch [Sat, 17 Dec 2022 05:44:24 +0000 (21:44 -0800)]
Adds Graph.

17 months agoTiebreak ordering of ranges with the same lower bound using upper bound.
Scott Gasch [Fri, 16 Dec 2022 00:26:54 +0000 (16:26 -0800)]
Tiebreak ordering of ranges with the same lower bound using upper bound.

17 months agoMore docs...
Scott Gasch [Thu, 15 Dec 2022 23:47:21 +0000 (15:47 -0800)]
More docs...

17 months agoMore docs.
Scott Gasch [Thu, 15 Dec 2022 23:44:46 +0000 (15:44 -0800)]
More docs.

17 months agoUpdate docs again.
Scott Gasch [Thu, 15 Dec 2022 23:40:08 +0000 (15:40 -0800)]
Update docs again.

17 months agoUpdate docs and type hints in interval_tree. Add it to the pydocs.
Scott Gasch [Thu, 15 Dec 2022 23:34:37 +0000 (15:34 -0800)]
Update docs and type hints in interval_tree.  Add it to the pydocs.

17 months agoFix interval_tree so it actually works. Add unittests.
Scott Gasch [Thu, 15 Dec 2022 23:16:21 +0000 (15:16 -0800)]
Fix interval_tree so it actually works.  Add unittests.

17 months agoBug and readability fix.
Scott Gasch [Thu, 15 Dec 2022 07:08:00 +0000 (23:08 -0800)]
Bug and readability fix.

17 months agoAdds IntervalTree.
Scott Gasch [Tue, 13 Dec 2022 22:36:23 +0000 (14:36 -0800)]
Adds IntervalTree.

17 months agoRemove more annoying warning messages dumped to console from library code.
Scott Gasch [Sun, 11 Dec 2022 20:05:49 +0000 (12:05 -0800)]
Remove more annoying warning messages dumped to console from library code.

17 months agoBe less annoying.
Scott Gasch [Sun, 11 Dec 2022 20:04:28 +0000 (12:04 -0800)]
Be less annoying.

17 months agoMake argparse utils' valid_date work with the default format of UNIX date.
Scott Gasch [Sun, 11 Dec 2022 20:02:25 +0000 (12:02 -0800)]
Make argparse utils' valid_date work with the default format of UNIX date.

17 months agoImprove identifier for zookeeper based lockfiles.
Scott Gasch [Fri, 9 Dec 2022 21:10:20 +0000 (13:10 -0800)]
Improve identifier for zookeeper based lockfiles.

17 months agoAdds support for zookeeper-based lockfiles.
Scott Gasch [Fri, 9 Dec 2022 18:48:45 +0000 (10:48 -0800)]
Adds support for zookeeper-based lockfiles.

17 months agoMake the processed cmdline available to callers.
Scott Gasch [Sun, 4 Dec 2022 03:14:47 +0000 (19:14 -0800)]
Make the processed cmdline available to callers.

17 months agoFixup/improve error message when giving up on lock acquisition.
Scott Gasch [Thu, 24 Nov 2022 20:35:36 +0000 (12:35 -0800)]
Fixup/improve error message when giving up on lock acquisition.

17 months agoImprove error message for logs.
Scott Gasch [Thu, 24 Nov 2022 18:20:35 +0000 (10:20 -0800)]
Improve error message for logs.

17 months agoDo not touch timestamp if cronjob failed!
Scott Gasch [Tue, 22 Nov 2022 20:07:34 +0000 (12:07 -0800)]
Do not touch timestamp if cronjob failed!

18 months agoFix docs.
Scott Gasch [Fri, 18 Nov 2022 17:00:54 +0000 (09:00 -0800)]
Fix docs.

18 months agoOnly upload one wheel.
Scott Gasch [Fri, 18 Nov 2022 16:54:08 +0000 (08:54 -0800)]
Only upload one wheel.

18 months agoUpdate docs.
Scott Gasch [Fri, 18 Nov 2022 16:43:09 +0000 (08:43 -0800)]
Update docs.

18 months agoUpdate docs.
Scott Gasch [Fri, 18 Nov 2022 16:38:40 +0000 (08:38 -0800)]
Update docs.

18 months agoTweak cut_version.sh again.
Scott Gasch [Thu, 17 Nov 2022 19:01:55 +0000 (11:01 -0800)]
Tweak cut_version.sh again.

18 months agoCut version 0.0.1b7
Scott Gasch [Thu, 17 Nov 2022 18:56:33 +0000 (10:56 -0800)]
Cut version 0.0.1b7

18 months agoFix stdev.
Scott Gasch [Thu, 17 Nov 2022 18:48:11 +0000 (10:48 -0800)]
Fix stdev.

18 months agoUse the right greek letter for the mean of the population, not the sample.
Scott Gasch [Thu, 17 Nov 2022 16:20:22 +0000 (08:20 -0800)]
Use the right greek letter for the mean of the population, not the sample.

18 months agoChange path of remote_worker so the macbook can work too.
Scott Gasch [Fri, 11 Nov 2022 00:29:19 +0000 (16:29 -0800)]
Change path of remote_worker so the macbook can work too.

18 months agoThis is slightly faster...
Scott Gasch [Wed, 2 Nov 2022 05:51:34 +0000 (22:51 -0700)]
This is slightly faster...

18 months agoMessing with config files for git presubmit check while cleaing
Scott Gasch [Tue, 1 Nov 2022 01:24:45 +0000 (18:24 -0700)]
Messing with config files for git presubmit check while cleaing
up string_utils lint errors.

18 months agoMore tweaking of cut_version.sh.
Scott Gasch [Mon, 31 Oct 2022 22:34:47 +0000 (15:34 -0700)]
More tweaking of cut_version.sh.

18 months agoAdds MD5 checksums to wheels.
Scott Gasch [Mon, 31 Oct 2022 22:33:13 +0000 (15:33 -0700)]
Adds MD5 checksums to wheels.

18 months agoDoc updates to argparse_utils.py.
Scott Gasch [Mon, 31 Oct 2022 22:18:53 +0000 (15:18 -0700)]
Doc updates to argparse_utils.py.

18 months agoMore changes to cut_version.sh.
Scott Gasch [Mon, 31 Oct 2022 22:18:29 +0000 (15:18 -0700)]
More changes to cut_version.sh.

18 months agoUpdate cut_version.sh.
Scott Gasch [Mon, 31 Oct 2022 15:16:44 +0000 (08:16 -0700)]
Update cut_version.sh.

18 months agoModify cut_version to check in wheel produced.
Scott Gasch [Mon, 31 Oct 2022 05:54:40 +0000 (22:54 -0700)]
Modify cut_version to check in wheel produced.

18 months agoUpdate docs in parallelize again.
Scott Gasch [Mon, 31 Oct 2022 05:53:53 +0000 (22:53 -0700)]
Update docs in parallelize again.

18 months agoAdd binary wheels.
Scott Gasch [Mon, 31 Oct 2022 05:53:06 +0000 (22:53 -0700)]
Add binary wheels.

18 months agoUpdate docs.
Scott Gasch [Sun, 30 Oct 2022 20:50:50 +0000 (13:50 -0700)]
Update docs.

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

18 months 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

18 months 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!

18 months 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

18 months 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

18 months 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.

18 months 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.

18 months 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.

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

18 months 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.

18 months 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.

18 months 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.

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

18 months 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.

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

18 months 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.

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

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

18 months 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

18 months 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.

18 months 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.

18 months 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.

19 months 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.

19 months 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...

19 months 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.

19 months 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.

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

19 months 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.

19 months 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...

19 months 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.

19 months 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.

19 months 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.

19 months 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.

19 months 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.

19 months 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.

19 months 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.

19 months 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.

19 months 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.

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

19 months 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.

19 months 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.

19 months 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.

19 months 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.

19 months 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.

19 months 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

19 months 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

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

19 months 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.

19 months 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.

19 months 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

19 months 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

19 months 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.

19 months 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.

19 months 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.