diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0688a57..1c30115 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v2.11.0 + rev: v2.15.0 hooks: - id: pyupgrade args: [--py36-plus] @@ -39,12 +39,12 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 21.5b0 hooks: - id: black args: [--quiet, --target-version=py36] - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.0 + rev: 3.9.2 hooks: - id: flake8 additional_dependencies: [flake8-bugbear] diff --git a/CHANGELOG.md b/CHANGELOG.md index 45b40da..2caf946 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 4.1.0 - 5/9/2021 + +### New + +- HTTP connections are now re-used when possible (using [`httpx.Client()`](https://www.python-httpx.org/advanced/#client-instances)) to improve download performance. + +### Fixed + +- Requests are now retried at most 5 times if a request fails. This should solve the `500 Server Error`s that some users are experiencing when downloading a large number of filings. + +### Changed + +- Replaced the internal `requests` package with [`httpx`](https://github.com/encode/httpx), a more modern and performant alternative. + ## 4.0.3 - 4/6/2021 ### Fixed diff --git a/sec_edgar_downloader/_version.py b/sec_edgar_downloader/_version.py index c7a18d1..7039708 100644 --- a/sec_edgar_downloader/_version.py +++ b/sec_edgar_downloader/_version.py @@ -1 +1 @@ -__version__ = "4.0.3" +__version__ = "4.1.0"