Module python

Source
Expand description

Python bindings and interoperability helpers built on top of PyO3.

This sub-module groups together the Rust code that is only required when compiling the python feature flag. It provides thin adapters so that PoseiTrader functionality can be consumed from the posei_trader Python package without sacrificing type-safety or performance.

Modules§

casing
String-case conversion helpers (CamelCasesnake_case).
datetime
Date/time utility wrappers exposed to Python.
enums
Macro-generated enum utilities for PyO3.
parsing
JSON / string parsing helpers for Python inputs.
serialization
(De)serialization utilities bridging Rust ↔︎ Python types.
uuid
UUID helpers for PyO3.
version
Functions for introspecting the running Python interpreter & installed packages.

Traits§

IntoPyObjectPoseiExt
Extend IntoPyObjectExt helper trait to unwrap PyObject after conversion.

Functions§

core
Loaded as nautilus_pyo3.core.
get_pytype_name
Gets the type name for the given Python obj.
to_pyruntime_err
Converts any type that implements Display to a Python RuntimeError.
to_pytype_err
Converts any type that implements Display to a Python TypeError.
to_pyvalue_err
Converts any type that implements Display to a Python ValueError.