Releases: nmichlo/doorway
Releases · nmichlo/doorway
v0.6.2
major refactors and improvements
docs
- README examples
- added extensive typing for missing modules
doorway.x._proxy,doorway._shardand many more
added
- added
ctx_do_undo, pass indofn andundofn as part of a context manager - additional SI/IEC units ronna
Rand quettaQ(coming after yotta) forfmt_bytes_to_human - added
progress: booltoio_download - added new proxy scraper for
proxylist.geonode.com - added support for
python 3.9throughpython 3.13
breaking
- renamed
sharded_and_groupedtosharded_weightedto better reflect the nature of this API - renamed
sharded_weightedparam fromgroup_sizestoshard_weights - re-write the
EnvVarsystem - changed default mode for
AtomicFilefromxtor - replaced
overwrite_existinginio_downloadwithexists_mode - fixed
io_downloadshould not requiretqdm - fixed
ProxyDownloader.download_threadedshould allow iterator instead of sequence - renamed various proxy functions and classes to start with
[Pp]roxyas the prefix - drop support for
python 3.8
fixed
kBinstead ofKBinfmt_bytes_to_human- added support for
pathlib.Pathto proxies and other APIs - use
Nonefor return type instead ofNoReturnwhich signals exit
CI
- upgraded CI steps
- added CI for ruff linting and formatting
- added CI version bump
- added local pre-commit hooks
What's Changed
Full Changelog: v0.5.0...v0.6.0
v0.5.0
-
atomic file operations
AtomicPath("r+", "w", "x", "a") -- doesn't actually open the file, just returns a temp path, and asserts that the destination exists or not and the temp file was created based on the mode, in the case ofaandr+, the destination is copied to the temp fileAtomicOpen(any more supported byopen(...)) -- wrapsAtomicPathto return file objects likeopen()- cleans up the temp file if an error occurs, and if succeeds moves the temp file to the destination using atomic operations.
-
improved
fmt_bytes_to_human, better rounding of units -
added:
io_download, to download files usingAtomicOpen -
added:
basename_split_ext,basename_modify,path_basename_modifyto modify various attributes about the<basename>or<name>.<ext>of a path -
added: experimental proxy class
v0.4.0
v0.3.0
v0.2.0
v0.1.1
v0.1.0
Placeholder
This release is a pypi placholder
- Actual release version is coming soon!