10 releases (4 breaking)
Uses new Rust 2024
| 0.7.1 | Oct 31, 2025 |
|---|---|
| 0.7.0 | Oct 28, 2025 |
| 0.6.0 | Oct 21, 2025 |
| 0.5.2 | Oct 19, 2025 |
| 0.3.2 | Oct 3, 2025 |
#580 in Finance
596 downloads per month
Used in 13 crates
(6 directly)
16KB
142 lines
paft-utils
Shared utilities for the paft workspace: canonical string helpers and optional DataFrame traits.
- Canonical string utilities:
Canonical,canonicalize,StringCode - Optional Polars helpers:
ToDataFrame,ToDataFrameVec
Install
Prefer the facade crate for most applications:
[dependencies]
paft = "0.7.1"
Advanced (direct dependency):
[dependencies]
paft-utils = { version = "0.7.1", default-features = false }
With DataFrame helpers:
[dependencies]
paft-utils = { version = "0.7.1", default-features = false, features = ["dataframe"] }
Features
dataframe: enablepolarsintegration for fast columnar conversions
Quickstart
use paft_utils::{canonicalize, Canonical};
assert_eq!(canonicalize("Euronext Paris"), "EURONEXT_PARIS");
let c = Canonical::try_new("nasdaq").unwrap();
assert_eq!(c.as_str(), "NASDAQ");
Links
- API docs: https://docs.rs/paft-utils
- Workspace overview: https://github.com/paft-rs/paft/blob/main/README.md
- License: https://github.com/paft-rs/paft/blob/main/LICENSE
Dependencies
~0.1–14MB
~115K SLoC