Skip to content

Releases: nmichlo/doorway

v0.6.2

02 Mar 21:01
00d58d3

Choose a tag to compare

What's Changed

Full Changelog: v0.6.0...v0.6.2

major refactors and improvements

28 Feb 23:52

Choose a tag to compare

docs

  • README examples
  • added extensive typing for missing modules doorway.x._proxy, doorway._shard and many more

added

  • added ctx_do_undo, pass in do fn and undo fn as part of a context manager
  • additional SI/IEC units ronna R and quetta Q (coming after yotta) for fmt_bytes_to_human
  • added progress: bool to io_download
  • added new proxy scraper for proxylist.geonode.com
  • added support for python 3.9 through python 3.13

breaking

  • renamed sharded_and_grouped to sharded_weighted to better reflect the nature of this API
  • renamed sharded_weighted param from group_sizes to shard_weights
  • re-write the EnvVar system
  • changed default mode for AtomicFile from x to r
  • replaced overwrite_existing in io_download with exists_mode
  • fixed io_download should not require tqdm
  • fixed ProxyDownloader.download_threaded should allow iterator instead of sequence
  • renamed various proxy functions and classes to start with [Pp]roxy as the prefix
  • drop support for python 3.8

fixed

  • kB instead of KB in fmt_bytes_to_human
  • added support for pathlib.Path to proxies and other APIs
  • use None for return type instead of NoReturn which 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

17 Aug 01:17

Choose a tag to compare

  • 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 of a and r+, the destination is copied to the temp file
    • AtomicOpen (any more supported by open(...)) -- wraps AtomicPath to return file objects like open()
    • 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 using AtomicOpen

  • added: basename_split_ext, basename_modify, path_basename_modify to modify various attributes about the <basename> or <name>.<ext> of a path

  • added: experimental proxy class

v0.4.0

27 May 09:46

Choose a tag to compare

Sharding API changes

v0.3.0

27 May 00:44

Choose a tag to compare

Sharding with key based function

v0.2.0

25 May 21:21

Choose a tag to compare

Add context managers & rename shard functions

v0.1.1

25 May 08:15

Choose a tag to compare

Enable unstable components import doorway.x

v0.1.0

25 May 01:37

Choose a tag to compare

Initial Release

Placeholder

01 May 22:17

Choose a tag to compare

Placeholder Pre-release
Pre-release

This release is a pypi placholder

  • Actual release version is coming soon!