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 (
CamelCase
⇄snake_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§
- Into
PyObject Posei Ext - Extend
IntoPyObjectExt
helper trait to unwrapPyObject
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 PythonRuntimeError
. - to_
pytype_ err - Converts any type that implements
Display
to a PythonTypeError
. - to_
pyvalue_ err - Converts any type that implements
Display
to a PythonValueError
.