Commit Graph

399 Commits (a4196f2b13526c2fb81622c71044dbc8e3922a18)

Author SHA1 Message Date
Ethan Dalool b88450b567 Add pathclass.Extension class to enrich extension operations.
I often found myself writing code like if a.extension == 'png' and
trying to remember if I'm supposed to compare against 'png' or '.png',
and then it would trip up on files like A.PNG because I forgot to
lower() it.

So this class handles all that for you. You can == against it and it
will use os.path.normcase to give you OS-appropriate case sens,
and == works whether you include the dot or not. Then you can use
ext.with_dot or ext.no_dot to get reliably dotted strings.
2020-01-27 21:33:09 -08:00
Ethan Dalool b13f93c006 Rearrange and somewhat simplify passwordy main. 2020-01-21 17:46:25 -08:00
Ethan Dalool e6350f05d0 Add function urandom_hex to passwordy. 2020-01-21 17:45:34 -08:00
Ethan Dalool 751ab5eaac Add method spawn that inherits force_sep.
I am considering some other instance attributes similar to force_sep.
And since these need to be carried over into newly spawned Paths,
I want to consolidate that into a single method so I don't have
to risk forgetting it on a new object.
2020-01-20 21:52:40 -08:00
Ethan Dalool 5e397b1928 Simplify normalize_sep. 2020-01-20 21:49:14 -08:00
Ethan Dalool af1538a139 Tighten the regex for bare drives. 2020-01-20 21:29:33 -08:00
Ethan Dalool 8ce9600ffa Bump to version 0.0.42. 2020-01-20 18:10:12 -08:00
Ethan Dalool 5440eb3e92 Add the readme content into the pypi description. 2020-01-20 18:10:03 -08:00
Ethan Dalool 27f0ed4c24 Bump to version 0.0.41. 2020-01-19 21:00:55 -08:00
Ethan Dalool e68fbbe278 Mark pywin32, winshell as dependencies for windows only. 2020-01-19 21:00:42 -08:00
Ethan Dalool b4d3ac87de Avoid winshell import error for linux. 2020-01-19 21:00:16 -08:00
Ethan Dalool fee0871ef4 Change email in setup.py. 2020-01-18 22:41:17 -08:00
Ethan Dalool 6cd53c54dc Add pypi link to readme. 2020-01-18 22:41:02 -08:00
Ethan Dalool 1fd6eb6cfd Add voussoirkit_logo.svg. 2020-01-18 22:40:48 -08:00
Ethan Dalool 9a8e9faf19 Bump to version 0.0.39. 2020-01-15 22:35:45 -08:00
Ethan Dalool adaa65a9a7 Lowercase before checking .lnk extension. 2020-01-15 22:35:29 -08:00
Ethan Dalool c6ac312e7e Bump to version 0.0.38 with requirement pywin32.
Because winwhich requires it and I thought winshell was enough.
2020-01-15 22:31:11 -08:00
Ethan Dalool 7ab395c9f6 Bump to version 0.0.37. 2020-01-11 01:40:05 -08:00
Ethan Dalool 75b95f0259 Add winwhich.py. 2020-01-11 01:39:20 -08:00
Ethan Dalool e3f080b74f Update winglob module docstring. 2020-01-11 01:37:33 -08:00
Ethan Dalool e30851bf82 Bump to version 0.0.36. 2020-01-06 22:19:07 -08:00
Ethan Dalool efbc1c44bb Add hms.py. 2020-01-06 22:18:50 -08:00
Ethan Dalool f811f74fe5 Bump to version 0.0.35. 2020-01-05 23:31:07 -08:00
Ethan Dalool b0b0464fdc Add winglob.py. 2020-01-05 23:28:53 -08:00
Ethan Dalool 6faab40fb2 Let chunk_size be an argument to override global default. 2020-01-05 21:31:19 -08:00
Ethan Dalool c33d16bff0 Replace calls to str_to_fp with pathclass.Path. 2020-01-05 21:29:27 -08:00
Ethan Dalool 76abee4607 Add newline to passwordy. 2020-01-05 21:24:43 -08:00
Ethan Dalool 3025589744 Bump to version 0.0.34. 2019-08-06 23:42:36 -07:00
Ethan Dalool 07da8dd413 Add betterhelp.py 2019-08-06 23:42:04 -07:00
Ethan Dalool 59f4b54f4a Update pypi upload script to use twine. 2019-08-05 17:35:53 -07:00
Ethan Dalool 64a9d578c3 Bump to version 0.0.33. 2019-08-05 17:34:40 -07:00
Ethan Dalool b0ed32a1d5 Add Path.dot_extension property. 2019-08-05 17:34:17 -07:00
Ethan Dalool 6e64c081cd Bump to version 0.0.32. 2019-08-03 01:01:23 -07:00
Ethan Dalool 452ad7f937 Add force_sep attribute. 2019-08-03 01:01:00 -07:00
Ethan Dalool 4f7a6c1d38 Bump to version 0.0.31. 2019-08-01 09:00:12 -07:00
Ethan Dalool 85572ba406 Add parameter simple to remove .\ from relative path. 2019-08-01 08:58:13 -07:00
Ethan Dalool d9d10a843e Fix relative backsteps. 2019-08-01 08:57:18 -07:00
Ethan Dalool 6a34c8eae9 Add method Path.add_extension. 2019-08-01 08:47:27 -07:00
Ethan Dalool b8aaecd15f Move case correction to after self==other check. 2019-08-01 08:47:04 -07:00
Ethan Dalool e478aca497 Improve Path.__contains__ check. 2019-08-01 08:46:37 -07:00
Ethan Dalool 0cfaf72347 Bump to version 0.0.30. 2019-06-11 22:46:09 -07:00
Ethan Dalool 8ad50ca714 Add pipeable to voussoirkit. 2019-06-11 22:45:04 -07:00
Ethan Dalool 47cf0bd3d7 Bump to version 0.0.29. 2019-02-17 23:44:33 -08:00
Ethan Dalool d71fc60862 Fix a bug in pathclass.Path.relative_path when cwd is root. 2019-02-17 23:43:33 -08:00
Ethan Dalool 6c1c8fe0ab Bump to version 0.0.28. 2019-01-01 18:01:52 -08:00
Ethan Dalool 2e5a71c765 Define listify seperately so you can call with any iterable.
The literal function will still be a bit more strict on the types
it accepts, but if you have something that you know is okay
to iterate you can call listify directly.
2019-01-01 18:01:37 -08:00
Ethan Dalool 649011c60d Bump to version 0.0.27. 2019-01-01 17:46:18 -08:00
Ethan Dalool fb2de5746c Add function sqlhelpers.literal. 2019-01-01 17:43:56 -08:00
Ethan Dalool b4b51e3604 Initial migratory commit. 2018-12-17 22:10:00 -08:00