Commit Graph

603 Commits (16d0c0dee3746cf77786b1826f93e52c6d68c5cc)

Author SHA1 Message Date
voussoir e30c6df519
Bump to version 0.0.67. 2021-10-10 12:32:52 -07:00
voussoir a94de2adde
Add some docstrings, return annotations. 2021-10-10 12:06:54 -07:00
voussoir 6edba068e5
Add global constant INTERNET_IP. 2021-10-10 12:02:09 -07:00
voussoir 1a375e4964
Assert stdin exists for all interactive functions. 2021-10-10 00:42:18 -07:00
voussoir a4196f2b13
Add aliases assert_is_dir, assert_not_dir. 2021-10-10 00:31:43 -07:00
voussoir 05586e7e79
Let is_directory be canonical function, but keep the aliases. 2021-10-10 00:31:25 -07:00
voussoir 87fbede7d5
Add option log_return_value. 2021-10-09 17:56:31 -07:00
voussoir 531424c8c1
Remove *args, force use of named arguments. 2021-10-09 17:55:52 -07:00
voussoir c87fc584da
Call vlogging.basic_config as part of main_decorator. 2021-10-09 17:48:35 -07:00
voussoir e826eeca2c
Add vlogging.basic_config. 2021-10-09 17:47:48 -07:00
voussoir 5b6a1b4c9c
Use abstract base class to help the subclass know what to do. 2021-10-09 12:12:18 -07:00
voussoir 8eefc4a095
Small docstring improvements. 2021-10-05 16:53:30 -07:00
voussoir 0a1ab15637
Add convenient pathclass.read, write. 2021-10-04 17:19:20 -07:00
voussoir 39d6140138
Move assert_not_deleted to worms. 2021-10-02 12:45:17 -07:00
voussoir 129eb3f8aa
Rename make_json_response -> json_response. 2021-10-01 23:01:36 -07:00
voussoir aa1e2d5756
Add worms.py. 2021-10-01 22:35:38 -07:00
voussoir a3ddeb8e09
Improve needs_rewrite detection. 2021-09-30 16:20:12 -07:00
voussoir c1edd8fc33
Clarify variables. 2021-09-30 16:20:04 -07:00
voussoir e273eb22a5
Change hash header. 2021-09-24 18:32:07 -07:00
voussoir 8801407f58
Add --warning level. 2021-09-23 22:49:22 -07:00
voussoir 7021308c9e
Add call to coinitialize. 2021-09-23 22:49:19 -07:00
voussoir 5f6d291729
Fix docstring wrapping. 2021-09-23 22:39:09 -07:00
voussoir 3c82dc64e0
Don't write to streams when pythonw makes them None. 2021-09-23 22:37:55 -07:00
voussoir 5a2eca486f
Remove backwards compat function output. 2021-09-23 22:37:39 -07:00
voussoir bebcd6c7f3
Fix docstring column wrapping. 2021-09-23 22:36:39 -07:00
voussoir cd1fce3211
Add aliases is_directory, is_folder -> is_dir. 2021-09-23 22:36:14 -07:00
voussoir 446626f1ce
Add pathclass.glob, glob_many. 2021-09-23 22:36:01 -07:00
voussoir 85ea9ec660
Add winglob.glob_many. 2021-09-23 22:34:34 -07:00
voussoir f10942fd3f
Remove __del__ because the order of del is not guaranteed.
Sometimes the streamhandler is garbage collected before the
loghandler, in which case this makes a bad error.
2021-09-23 22:34:02 -07:00
voussoir 6c0233c239
Update downloady with better use of pathclass, vlogging. 2021-09-23 22:32:48 -07:00
voussoir ac8e83a11e
Reduce arguments for main_log_context. Deal with argv in main_dec. 2021-09-16 21:46:31 -07:00
voussoir d0d7cf2145
Replace in+remove with index+pop.
The code turns out to be longer with these duplicate try-except,
but they are different enough that I can't really condense it
at the moment.
2021-09-16 21:19:46 -07:00
voussoir b561fd24b5
Reduce indentation by returning early. 2021-09-16 21:17:36 -07:00
voussoir adc99d383e
Call strip on --subject text. 2021-09-16 17:37:38 -07:00
voussoir e0f37b986c
Use double backslash even in docstring. 2021-09-13 18:00:56 -07:00
voussoir 79c4f59cf2
Fully rewrite passwordy. 2021-09-11 11:15:31 -07:00
voussoir 3032ed135d
Replace prints with stderr. 2021-09-11 11:13:03 -07:00
voussoir 8d0ba6b946
Set pipeable.stdout, stderr line='' default. 2021-09-11 11:12:38 -07:00
voussoir df6a52452a
Use argparse for fusker. 2021-09-11 11:12:00 -07:00
voussoir 0416f0babf
Discourage writes to pathclass._absolute_path. 2021-09-09 17:30:46 -07:00
voussoir d37e6fdf0b
Add networktools.wait_for_internet. 2021-09-08 21:54:03 -07:00
voussoir 0274b9d4a5
Move checkerboard_image to imagetools. 2021-09-05 01:35:46 -07:00
voussoir 1c23fbef63
Move truthystring to stringtools. 2021-09-05 01:11:27 -07:00
voussoir bdab1331b8
Move cached_endpoint, required_fields to flasktools. 2021-09-03 12:44:00 -07:00
voussoir ccd3bf72c0
Add gentools.run. 2021-08-31 19:22:50 -07:00
voussoir 8eed09c14b
Specifically state that the exception killed the log context. 2021-08-28 14:58:11 -07:00
voussoir 51d9a5202a
Fix get_all_volumes for 64-bit python. 2021-08-24 22:34:09 -07:00
voussoir 3d29322cc1
Split get_level_by_argv into own function.
To facilitate other uses of the opt-in flags besides just attaching
to the logger.
2021-08-23 22:42:30 -07:00
voussoir e2f4357b15
Add SILENT to get_level_by_name. 2021-08-23 22:41:07 -07:00
voussoir d3a1578cca
Add some type annotations to test the waters. 2021-08-22 20:48:34 -07:00