Skip to content

Commit b19aa52

Browse files
committed
MOD: Historical.batch.download improvements
1 parent 26c4319 commit b19aa52

File tree

5 files changed

+361
-230
lines changed

5 files changed

+361
-230
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 0.33.0 - TBD
4+
5+
#### Enhancements
6+
- The `Historical.batch.download` and `Historical.batch.download_async` methods will now automatically retry the download if a rate limit (HTTP 429) error is received
7+
- The `Historical.batch.download` and `Historical.batch.download_async` methods will now retry failed downloads automatically
8+
- The `Historical.batch.download` and `Historical.batch.download_async` methods will now download files concurrently
9+
- The `output_dir` parameter for `Historical.batch.download` and `Historical.batch.download_async` is now optional and will default to the current working directory if unspecified
10+
11+
#### Breaking changes
12+
- The `enable_partial_downloads` parameter for `Historical.batch.download` and `Historical.batch.download_async` has been removed, partial files will always be resumed which was the default behavior
13+
- The parameters for `Historical.batch.download` and `Historical.batch.download_async` have been reordered because `output_dir` is now optional, `job_id` now comes first
14+
315
## 0.32.0 - 2024-04-04
416

517
#### Enhancements

databento/common/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def validate_path(value: PathLike[str] | str, param: str) -> Path:
3838
return Path(value)
3939
except TypeError:
4040
raise TypeError(
41-
f"The `{param}` was not a valid path type. " "Use any of [str, bytes, os.PathLike].",
41+
f"The `{param}` was not a valid path type. " "Use any of [PathLike[str], str].",
4242
) from None
4343

4444

0 commit comments

Comments
 (0)