Skip to content

Commit

Permalink
VER: Release 0.18.1
Browse files Browse the repository at this point in the history
See release notes.
  • Loading branch information
nmacholl authored Aug 16, 2023
2 parents 5b7d43a + a062a43 commit 617d006
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Changelog

## 0.18.1 - 2023-08-16

#### Bug fixes
- Fixed issue where extra `python` key was sent by the `Live` client

## 0.18.0 - 2023-08-14

#### Breaking changes
- Renamed the `TimeSeriesHttpAPI` class to `TimeseriesHttpAPI`

#### Bug Fixes
- Fixed an issue where `DBNStore.to_csv()`, `DBNStore.to_df()`, `DBNStore.to_json()`, and `DBNStore.to_ndarray()` would consume large amounts of memory.
#### Bug fixes
- Fixed an issue where `DBNStore.to_csv()`, `DBNStore.to_df()`, `DBNStore.to_json()`, and `DBNStore.to_ndarray()` would consume large amounts of memory

## 0.17.0 - 2023-08-10

Expand Down
2 changes: 0 additions & 2 deletions databento/live/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from databento_dbn import SType

from databento.common.enums import Dataset
from databento.version import __version__


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -109,7 +108,6 @@ class AuthenticationRequest(GatewayControl):
encoding: Encoding = Encoding.DBN
details: str | None = None
ts_out: str = "0"
client: str = f"Python {__version__}"


@dataclasses.dataclass
Expand Down
2 changes: 1 addition & 1 deletion databento/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.18.0"
__version__ = "0.18.1"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "databento"
version = "0.18.0"
version = "0.18.1"
description = "Official Python client library for Databento"
authors = [
"Databento <[email protected]>",
Expand Down
16 changes: 6 additions & 10 deletions tests/test_live_gateway_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from databento.live.gateway import Greeting
from databento.live.gateway import SessionStart
from databento.live.gateway import SubscriptionRequest
from databento.version import __version__
from databento_dbn import Encoding
from databento_dbn import Schema
from databento_dbn import SType
Expand All @@ -30,29 +29,27 @@
"line, expected",
[
pytest.param(
f"auth=abcd1234|dataset=GLBX.MDP3|encoding=json|client=Python {__version__}\n",
("abcd1234", "GLBX.MDP3", "json", None, "0", f"Python {__version__}"),
"auth=abcd1234|dataset=GLBX.MDP3|encoding=json\n",
("abcd1234", "GLBX.MDP3", "json", None, "0"),
),
pytest.param(
f"auth=abcd1234|dataset=GLBX.MDP3|ts_out=1|client=Python {__version__}\n",
"auth=abcd1234|dataset=GLBX.MDP3|ts_out=1\n",
(
"abcd1234",
"GLBX.MDP3",
str(Encoding.DBN),
None,
"1",
f"Python {__version__}",
),
),
pytest.param(
f"auth=abcd1234|dataset=XNAS.ITCH|client=Python {__version__}\n",
"auth=abcd1234|dataset=XNAS.ITCH\n",
(
"abcd1234",
"XNAS.ITCH",
str(Encoding.DBN),
None,
"0",
f"Python {__version__}",
),
),
pytest.param(
Expand All @@ -76,7 +73,6 @@ def test_parse_authentication_request(
msg.encoding,
msg.details,
msg.ts_out,
msg.client,
) == expected
else:
with pytest.raises(expected):
Expand All @@ -91,15 +87,15 @@ def test_parse_authentication_request(
auth="abcd1234",
dataset=Dataset.GLBX_MDP3,
),
f"auth=abcd1234|dataset=GLBX.MDP3|encoding=dbn|ts_out=0|client=Python {__version__}\n".encode(),
b"auth=abcd1234|dataset=GLBX.MDP3|encoding=dbn|ts_out=0\n",
),
pytest.param(
AuthenticationRequest(
auth="abcd1234",
dataset=Dataset.XNAS_ITCH,
ts_out="1",
),
f"auth=abcd1234|dataset=XNAS.ITCH|encoding=dbn|ts_out=1|client=Python {__version__}\n".encode(),
b"auth=abcd1234|dataset=XNAS.ITCH|encoding=dbn|ts_out=1\n",
),
],
)
Expand Down

0 comments on commit 617d006

Please sign in to comment.