Skip to content

Commit

Permalink
VER: Release 0.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
threecgreen authored Jan 23, 2024
2 parents b358775 + 5045234 commit 2ac8824
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 16 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

## 0.15.0 - 2023-01-16
## 0.15.1 - 2024-01-23

### Bug fixes
- Fixed an import error in the Python type stub file

## 0.15.0 - 2024-01-16
### Enhancements
- Improved `Debug` implementation for all record types
- Prices are formatted as decimals
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "databento-dbn"
authors = ["Databento <[email protected]>"]
version = "0.15.0"
version = "0.15.1"
edition = "2021"
description = "Python library written in Rust for working with Databento Binary Encoding (DBN)"
license = "Apache-2.0"
Expand Down
31 changes: 28 additions & 3 deletions python/databento_dbn.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import datetime as dt
from collections.abc import Iterable
from collections.abc import Sequence
from enum import Enum
from typing import BinaryIO, ClassVar, SupportsBytes, TextIO, TypedDict, Union

from . import SymbolMapping
from typing import BinaryIO, ClassVar, Protocol, SupportsBytes, TextIO, TypedDict, Union


FIXED_PRICE_SCALE: int
Expand Down Expand Up @@ -35,6 +33,33 @@ _DBNRecord = Union[
StatMsg,
]

class MappingInterval(Protocol):
"""
Represents a symbol mapping over a start and end date range interval.
Parameters
----------
start_date : dt.date
The start of the mapping period.
end_date : dt.date
The end of the mapping period.
symbol : str
The symbol value.
"""

start_date: dt.date
end_date: dt.date
symbol: str

class SymbolMapping(Protocol):
"""
Represents the mappings for one native symbol.
"""

raw_symbol: str
intervals: Sequence[MappingInterval]

class Compression(Enum):
"""
Data compression format.
Expand Down
4 changes: 2 additions & 2 deletions rust/dbn-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dbn-cli"
authors = ["Databento <[email protected]>"]
version = "0.15.0"
version = "0.15.1"
edition = "2021"
description = "Command-line utility for converting Databento Binary Encoding (DBN) files to text-based formats"
default-run = "dbn"
Expand All @@ -17,7 +17,7 @@ path = "src/main.rs"

[dependencies]
# Databento common DBN library
dbn = { path = "../dbn", version = "=0.15.0", default-features = false }
dbn = { path = "../dbn", version = "=0.15.1", default-features = false }

# Error handling
anyhow = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion rust/dbn-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dbn-macros"
authors = ["Databento <[email protected]>"]
version = "0.15.0"
version = "0.15.1"
edition = "2021"
description = "Proc macros for dbn crate"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions rust/dbn-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn derive_mock_pyo3(_item: TokenStream) -> TokenStream {
TokenStream::new()
}

/// Dummy derive macro to enable enable the `dbn` helper attribute for record types
/// Dummy derive macro to enable the `dbn` helper attribute for record types
/// using the `dbn_record` proc macro but neither `CsvSerialize` nor `JsonSerialize` as
/// helper attributes aren't supported for proc macros alone. See
/// <https://github.com/rust-lang/rust/issues/65823>.
Expand Down Expand Up @@ -72,7 +72,7 @@ pub fn derive_py_field_desc(input: TokenStream) -> TokenStream {
py_field_desc::derive_impl(input)
}

/// Attribute macro that acts like a derive macro for for `Debug` (with customization),
/// Attribute macro that acts like a derive macro for `Debug` (with customization),
/// `Record`, `RecordMut`, `HasRType`, `PartialOrd`, and `AsRef<[u8]>`.
///
/// Expects 1 or more paths to `u8` constants that are the RTypes associated
Expand Down
4 changes: 2 additions & 2 deletions rust/dbn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dbn"
authors = ["Databento <[email protected]>"]
version = "0.15.0"
version = "0.15.1"
edition = "2021"
description = "Library for working with Databento Binary Encoding (DBN)"
license = "Apache-2.0"
Expand All @@ -25,7 +25,7 @@ serde = ["dep:serde", "time/parsing", "time/serde"]
trivial_copy = []

[dependencies]
dbn-macros = { version = "=0.15.0", path = "../dbn-macros" }
dbn-macros = { version = "=0.15.1", path = "../dbn-macros" }

# async (de)compression
async-compression = { version = "0.4.5", features = ["tokio", "zstd"], optional = true }
Expand Down

0 comments on commit 2ac8824

Please sign in to comment.