File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 66import aiohttp
77import requests
88from aiohttp import ClientResponse
9- from databento .common .logging import log_info
109from databento .historical .error import BentoClientError , BentoServerError
1110from databento .version import __version__
1211from requests import Response
1312from 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
151142def is_400_series_error (status : int ) -> bool :
You can’t perform that action at this time.
0 commit comments