#dataframe #serde #finance-data

paft-utils

Utility helpers shared across the paft workspace

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

Download history 223/week @ 2025-10-23 84/week @ 2025-10-30 31/week @ 2025-11-06 47/week @ 2025-11-13 34/week @ 2025-11-20 55/week @ 2025-11-27 29/week @ 2025-12-04 38/week @ 2025-12-11 102/week @ 2025-12-18 117/week @ 2025-12-25 99/week @ 2026-01-01 72/week @ 2026-01-08 70/week @ 2026-01-15 76/week @ 2026-01-22 191/week @ 2026-01-29 250/week @ 2026-02-05

596 downloads per month
Used in 13 crates (6 directly)

MIT license

16KB
142 lines

paft-utils

Shared utilities for the paft workspace: canonical string helpers and optional DataFrame traits.

Crates.io Docs.rs

  • 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: enable polars integration 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");

Dependencies

~0.1–14MB
~115K SLoC