Skip to content

v0.19.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jan 03:53
· 14 commits to main since this release

Release Notes

Internal Changes

  • Replace max_connection argument in all retrieve* functions with limit_per_host. This uses the aiohttp argument limit_per_host to limit the number of connections per host which prevents the server from being overwhelmed with too many connections. The default value is set to 5.
  • Add aiofiles as a new dependency for writing responses to a file in the stream_write function. This should speed up the writing process and make it more efficient.

Bug Fixes

  • Fix an issue with running the library inside IPython terminal. (50{.interpreted-text role="issue_async"})

Breaking Changes

  • Move stream_write function to its own module called streaming. This is to separate the streaming functionality from the main module and make it easier to maintain.
  • Simplify the stream_write function to only accept a list of URLs and a directory path to save the files. It no longer accepts passing keyword arguments and assumes that the user has added the necessary arguments to the URLs itself and is encoded correctly. Additionally, the chunk size by default is set to 1 MB.