Skip to main content

pomelo_data/
lib.rs

1//! pomelo-data — native I/O layer. Reads per-symbol price files into yuzu-core
2//! `Panel` matrices. Formats are detected by content: gzip CSV (`.csv.gz`),
3//! plain CSV (`.csv`), and — with the `parquet` feature — Apache Parquet
4//! (`.parquet`). NOT a dependency of yuzu-core (which stays WASM-pure);
5//! pomelo-data depends on yuzu-core, never the reverse.
6
7pub mod combined;
8pub mod csv_io;
9mod date;
10pub mod error;
11pub mod format;
12pub mod fundamentals;
13pub mod industry;
14pub mod loader;
15mod parallel;
16#[cfg(feature = "parquet")]
17mod parquet_io;
18pub mod source;
19
20pub use combined::{
21    assemble, load_combined_panel, rebuild_combined_panels, write_combined_panel, RebuildSummary,
22    PANELS_DIR,
23};
24pub use csv_io::{Field, OhlcvRow};
25pub use format::Format;
26pub use fundamentals::{
27    is_fundamental_series, load_fundamental_panel, parse_fundamentals, write_fundamentals,
28    FundamentalRow, FACTOR_PANEL_FIELDS, FUNDAMENTALS_DIR, FUNDAMENTAL_FIELDS, REPORT_EVENT_FIELD,
29};
30pub use loader::{load_panel, PRICES_DIR};
31pub use source::{LocalSource, ObjectSink, ObjectSource};