Skip to content

Releases: nmichlo/doorway

v0.7.2

Choose a tag to compare

@github-actions github-actions released this 13 Sep 18:17
838901c

What's Changed

  • ci: upload coverage over OIDC instead of a token #patch by @nmichlo in #5

Full Changelog: v0.7.1...v0.7.2

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 13 Sep 15:22
773e812

What's Changed

  • ci: report a fixed-name check for branch protection #patch by @nmichlo in #4

Full Changelog: v0.7.0...v0.7.1

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 09 Sep 09:54
ff57d37

What's Changed

  • chore!: modernise tooling, raise the python floor to 3.12 #minor by @nmichlo in #3

Full Changelog: v0.6.3...v0.7.0

v0.6.2

Choose a tag to compare

@nmichlo nmichlo released this 02 Mar 21:01
00d58d3

What's Changed

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

major refactors and improvements

Choose a tag to compare

@nmichlo nmichlo released this 28 Feb 23:52

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

Choose a tag to compare

@nmichlo nmichlo released this 17 Aug 01:17
  • 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

Choose a tag to compare

@nmichlo nmichlo released this 27 May 09:46

Sharding API changes

v0.3.0

Choose a tag to compare

@nmichlo nmichlo released this 27 May 00:44

Sharding with key based function

v0.2.0

Choose a tag to compare

@nmichlo nmichlo released this 25 May 21:21

Add context managers & rename shard functions

v0.1.1

Choose a tag to compare

@nmichlo nmichlo released this 25 May 08:15

Enable unstable components import doorway.x