Skip to content

Commit 5eb00d5

Browse files
committed
VER: Release databento-python 0.8.0
1 parent 9c32915 commit 5eb00d5

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

3-
## 0.8.0 - TBD
4-
- Renamed 'dbz' encoding to 'dbn'
3+
## 0.8.0 - 2023-03-03
4+
- Integrate DBN encoding `0.3.2`
55
- Renamed `timeseries.stream` to `timeseries.get_range`
66
- Renamed `timeseries.stream_async` to `timeseries.get_range_async`
77
- Deprecated `timeseries.stream(...)` method
@@ -12,6 +12,7 @@
1212
- Changed `.to_df(...)` `pretty_ts` default argument to `True`
1313
- Changed `.to_df(...)` `pretty_px` default argument to `True`
1414
- Changed `.to_df(...)` `map_symbols` default argument to `True`
15+
- Drop support for DBZ encoding
1516

1617
## 0.7.0 - 2023-01-10
1718
- Added support for `definition` schema

databento/historical/http.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
import aiohttp
77
import requests
88
from aiohttp import ClientResponse
9-
from databento.common.logging import log_info
109
from databento.historical.error import BentoClientError, BentoServerError
1110
from databento.version import __version__
1211
from requests import Response
1312
from requests.auth import HTTPBasicAuth
1413

1514

16-
_NO_DATA_FOUND = b"No data found for query."
1715
_32KB = 1024 * 32 # 32_768
1816

1917

@@ -114,9 +112,6 @@ def _stream(
114112
check_http_error(response)
115113

116114
for chunk in response.iter_content(chunk_size=_32KB):
117-
if chunk == _NO_DATA_FOUND:
118-
log_info("No data found for query.")
119-
break
120115
writer.write(chunk)
121116

122117
async def _stream_async(
@@ -141,11 +136,7 @@ async def _stream_async(
141136
await check_http_error_async(response)
142137

143138
async for chunk in response.content.iter_chunks():
144-
data: bytes = chunk[0]
145-
if data == _NO_DATA_FOUND:
146-
log_info("No data found for query.")
147-
break
148-
writer.write(data)
139+
writer.write(chunk[0])
149140

150141

151142
def is_400_series_error(status: int) -> bool:

0 commit comments

Comments
 (0)