Skip to content

Commit 20379b8

Browse files
authored
VER: Release 0.23.0
2 parents 832b63f + b7fa98a commit 20379b8

File tree

22 files changed

+233
-69
lines changed

22 files changed

+233
-69
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1616
name: build - Python ${{ matrix.python-version }} (x86_64 ${{ matrix.os }})
1717
runs-on: ${{ matrix.os }}
1818

@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
python-version: ["3.9", "3.10", "3.11", "3.12"]
66+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6767
name: build - Python ${{ matrix.python-version }} (aarch64 linux)
6868
runs-on: ubuntu-latest
6969

@@ -110,7 +110,7 @@ jobs:
110110
strategy:
111111
fail-fast: false
112112
matrix:
113-
python-version: ["3.9", "3.10", "3.11", "3.12"]
113+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
114114
name: build - Python ${{ matrix.python-version }} (macOS)
115115
runs-on: macos-latest
116116

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
python-version: ["3.9", "3.10", "3.11", "3.12"]
50+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5151
runs-on: macos-latest
5252
steps:
5353
- name: Checkout repository
@@ -94,7 +94,7 @@ jobs:
9494
strategy:
9595
fail-fast: false
9696
matrix:
97-
python-version: ["3.9", "3.10", "3.11", "3.12"]
97+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
9898
runs-on: windows-latest
9999
steps:
100100
- name: Checkout repository
@@ -137,7 +137,7 @@ jobs:
137137
strategy:
138138
fail-fast: false
139139
matrix:
140-
python-version: ["3.9", "3.10", "3.11", "3.12"]
140+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
141141
target: [x86_64, aarch64]
142142
runs-on: ubuntu-latest
143143
steps:
@@ -181,7 +181,7 @@ jobs:
181181
strategy:
182182
fail-fast: false
183183
matrix:
184-
python-version: ["3.9", "3.10", "3.11", "3.12"]
184+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
185185
target: [x86_64-unknown-linux-musl, aarch64-unknown-linux-musl]
186186
runs-on: ubuntu-latest
187187
steps:

CHANGELOG.md

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

3+
## 0.23.0 - 2024-10-22
4+
5+
### Enhancements
6+
- Added new `None` `Action` variant that will be gradually rolled out
7+
to historical and live `GLBX.MDP3` data
8+
- Added consistent escaping of non-printable and non-ASCII values when text encoding
9+
`c_char` fields
10+
- Implemented `Default` for `Action` and `Side`
11+
- Added support for Python 3.13 to `databento_dbn`
12+
- Implemented missing `Serialize` for (with `serde` feature enabled) for `Venue`,
13+
`Dataset`, `Publisher`, `Compression`, `SType`, `Schema`, and `Encoding`
14+
315
## 0.22.1 - 2024-10-08
416

517
### Enhancements
@@ -14,7 +26,7 @@
1426
- Added Python type stubs for Record `__init__` methods
1527

1628
### Breaking changes
17-
- Combine `_reserved3` and `_reserved4` fields in `CbboMsg`
29+
- Combined `_reserved3` and `_reserved4` fields in `CbboMsg`
1830
- Changed setters for `char` Record fields to accept a single-character strings
1931
- Changed `rtype` and `length` to no longer be settable from Python. Users should
2032
use the Record type `__init__` methods to initialize records

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ resolver = "2"
1111
[workspace.package]
1212
authors = ["Databento <[email protected]>"]
1313
edition = "2021"
14-
version = "0.22.1"
15-
documentation = "https://docs.databento.com"
14+
version = "0.23.0"
15+
documentation = "https://databento.com/docs"
1616
repository = "https://github.com/databento/dbn"
1717
license = "Apache-2.0"
1818

python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "databento-dbn"
3-
version = "0.22.1"
3+
version = "0.23.0"
44
description = "Python bindings for encoding and decoding Databento Binary Encoding (DBN)"
55
authors = ["Databento <[email protected]>"]
66
license = "Apache-2.0"
@@ -17,7 +17,7 @@ build-backend = "maturin"
1717

1818
[project]
1919
name = "databento-dbn"
20-
version = "0.22.1"
20+
version = "0.23.0"
2121
authors = [
2222
{ name = "Databento", email = "[email protected]" }
2323
]

python/python/databento_dbn/_lib.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class Action(Enum):
8989
A new order was added.
9090
CLEAR
9191
Reset the book; clear all orders for an instrument.
92-
92+
NONE
93+
Has no effect on the book, but may carry `flags` or other information.
9394
"""
9495

9596
MODIFY: str
@@ -98,6 +99,7 @@ class Action(Enum):
9899
CANCEL: str
99100
ADD: str
100101
CLEAR: str
102+
NONE: str
101103

102104
@classmethod
103105
def from_str(cls, value: str) -> Action: ...

rust/dbn-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name = "dbn"
1616
path = "src/main.rs"
1717

1818
[dependencies]
19-
dbn = { path = "../dbn", version = "=0.22.1", default-features = false }
19+
dbn = { path = "../dbn", version = "=0.23.0", default-features = false }
2020

2121
anyhow = { workspace = true }
2222
clap = { version = "4.5", features = ["derive", "wrap_help"] }

rust/dbn/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ serde = ["dep:serde", "time/parsing", "time/serde"]
2525
trivial_copy = []
2626

2727
[dependencies]
28-
dbn-macros = { version = "=0.22.1", path = "../dbn-macros" }
28+
dbn-macros = { version = "=0.23.0", path = "../dbn-macros" }
2929

3030
async-compression = { version = "0.4.11", features = ["tokio", "zstd"], optional = true }
3131
csv = { workspace = true }

rust/dbn/src/decode/dbn/async.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,16 +656,18 @@ mod tests {
656656
dbn::{AsyncEncoder, AsyncRecordEncoder},
657657
DbnEncodable,
658658
},
659-
rtype, CbboMsg, Cmbp1Msg, Error, ErrorMsg, ImbalanceMsg, InstrumentDefMsg, MboMsg,
660-
Mbp10Msg, Mbp1Msg, OhlcvMsg, RecordHeader, Result, Schema, StatMsg, StatusMsg, TbboMsg,
661-
TradeMsg, WithTsOut,
659+
rtype, Bbo1SMsg, CbboMsg, Cmbp1Msg, Error, ErrorMsg, ImbalanceMsg, InstrumentDefMsg,
660+
MboMsg, Mbp10Msg, Mbp1Msg, OhlcvMsg, RecordHeader, Result, Schema, StatMsg, StatusMsg,
661+
TbboMsg, TradeMsg, WithTsOut,
662662
};
663663

664664
#[rstest]
665665
#[case::mbo(Schema::Mbo, MboMsg::default())]
666666
#[case::trades(Schema::Trades, TradeMsg::default())]
667667
#[case::cmbp1(Schema::Cmbp1, Cmbp1Msg::default_for_schema(Schema::Cmbp1))]
668-
#[case::cbbo(Schema::Cbbo1S, CbboMsg::default_for_schema(Schema::Cbbo1S))]
668+
#[case::cbbo1s(Schema::Cbbo1S, CbboMsg::default_for_schema(Schema::Cbbo1S))]
669+
#[case::bbo1s(Schema::Bbo1S, Bbo1SMsg::default_for_schema(Schema::Bbo1S))]
670+
#[case::bbo1m(Schema::Bbo1M, Bbo1SMsg::default_for_schema(Schema::Bbo1M))]
669671
#[case::tbbo(Schema::Tbbo, TbboMsg::default())]
670672
#[case::mbp1(Schema::Mbp1, Mbp1Msg::default())]
671673
#[case::mbp10(Schema::Mbp10, Mbp10Msg::default())]
@@ -711,6 +713,9 @@ mod tests {
711713
#[case::mbo(Schema::Mbo, MboMsg::default())]
712714
#[case::trades(Schema::Trades, TradeMsg::default())]
713715
#[case::cmbp1(Schema::Cmbp1, Cmbp1Msg::default_for_schema(Schema::Cmbp1))]
716+
#[case::cbbo1s(Schema::Cbbo1S, CbboMsg::default_for_schema(Schema::Cbbo1S))]
717+
#[case::bbo1s(Schema::Bbo1S, Bbo1SMsg::default_for_schema(Schema::Bbo1S))]
718+
#[case::bbo1m(Schema::Bbo1M, Bbo1SMsg::default_for_schema(Schema::Bbo1M))]
714719
#[case::tbbo(Schema::Tbbo, TbboMsg::default())]
715720
#[case::mbp1(Schema::Mbp1, Mbp1Msg::default())]
716721
#[case::mbp10(Schema::Mbp10, Mbp10Msg::default())]

0 commit comments

Comments
 (0)