diff --git a/CHANGELOG.md b/CHANGELOG.md index 27759cb..a16ab7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.74.0 - 2026-03-24 + +#### Enhancements +- Changed `SlowReaderBehavior.SKIP` to send "skip" instead of "drop" to the gateway +- Upgraded `databento-dbn` to 0.52.0: + - Added `SYMBOL_CSTR_LEN` constant and versioned variants (`SYMBOL_CSTR_LEN_V1`, + `SYMBOL_CSTR_LEN_V2`, `SYMBOL_CSTR_LEN_V3`) to Python, including in each versioned + module (`v1`, `v2`, `v3`) as `SYMBOL_CSTR_LEN` + - Added `v1`, `v2`, and `v3` submodule imports to `databento_dbn.__init__` so they are + accessible as attributes (e.g. `databento_dbn.v1`) + ## 0.73.0 - 2026-03-10 #### Enhancements diff --git a/README.md b/README.md index 1e83b38..5c7fccc 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ The library is fully compatible with distributions of Anaconda 2023.x and above. The minimum dependencies as found in the `pyproject.toml` are also listed below: - python = "^3.10" - aiohttp = "^3.8.3" -- databento-dbn = "~0.51.0" +- databento-dbn = "~0.52.0" - numpy = ">=1.23.5" - pandas = ">=1.5.3" - pip-system-certs = ">=4.0" (Windows only) @@ -49,7 +49,7 @@ To install the latest stable version of the package from PyPI: The library needs to be configured with an API key from your account. [Sign up](https://databento.com/signup) for free and you will automatically receive a set of API keys to start with. Each API key is a 32-character -string starting with `db-`, that can be found on the API Keys page of your [Databento user portal](https://databento.com/platform/keys). +string starting with `db-`, that can be found on the API Keys page of your [Databento user portal](https://databento.com/portal/keys). A simple Databento application looks like this: diff --git a/databento/live/gateway.py b/databento/live/gateway.py index 4dee1d0..76a9f64 100644 --- a/databento/live/gateway.py +++ b/databento/live/gateway.py @@ -124,11 +124,6 @@ class AuthenticationRequest(GatewayControl): slow_reader_behavior: SlowReaderBehavior | str | None = None client: str = USER_AGENT - def __post_init__(self) -> None: - # Temporary work around for LSG support - if self.slow_reader_behavior in [SlowReaderBehavior.SKIP, "skip"]: - self.slow_reader_behavior = "drop" - @dataclasses.dataclass class SubscriptionRequest(GatewayControl): diff --git a/databento/version.py b/databento/version.py index 160a513..f9ecada 100644 --- a/databento/version.py +++ b/databento/version.py @@ -1 +1 @@ -__version__ = "0.73.0" +__version__ = "0.74.0" diff --git a/pyproject.toml b/pyproject.toml index 3e9d425..7dadbf1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "databento" -version = "0.73.0" +version = "0.74.0" description = "Official Python client library for Databento" readme = "README.md" requires-python = ">=3.10" @@ -10,7 +10,7 @@ dynamic = [ "classifiers" ] dependencies = [ "aiohttp>=3.8.3,<4.0.0; python_version < '3.12'", "aiohttp>=3.9.0,<4.0.0; python_version >= '3.12'", - "databento-dbn~=0.51.0", + "databento-dbn~=0.52.0", "numpy>=1.23.5; python_version < '3.12'", "numpy>=1.26.0; python_version >= '3.12'", "pandas>=1.5.3,<4.0.0", diff --git a/tests/test_live_client.py b/tests/test_live_client.py index 40e78c0..75aa7bb 100644 --- a/tests/test_live_client.py +++ b/tests/test_live_client.py @@ -363,11 +363,7 @@ async def test_live_connect_auth_with_slow_reader_behavior( assert message.dataset == live_client.dataset assert message.encoding == Encoding.DBN - # Temporary handling of renamed variant - if slow_reader_behavior == SlowReaderBehavior.SKIP: - assert message.slow_reader_behavior == "drop" - else: - assert message.slow_reader_behavior == slow_reader_behavior + assert message.slow_reader_behavior == slow_reader_behavior async def test_live_connect_auth_two_clients(