Expand description
Rust/Python bindings, runtime and utilities.
This crates implements all the generic code needed to start and manage a Smithy Rust HTTP server where the business logic is implemented in Python, leveraging PyO3.
Modules
Rust
tracing
and Python logging
setup and utilities.Schedule pure Python middlewares as
Tower
layers.Python wrapped types from aws-smithy-types and aws-smithy-http.
Structs
A Python handler function representation.
Python compabible HTTP Version.
Exception that can be thrown from a Python middleware.
Tower [Layer] implementation of Python middleware handling.
Structure holding the list of Python middlewares that will be executed by this server.
Python-compatible Response object.
Socket implementation that can be shared between multiple Python processes.
Modifies the Python
logging
module to deliver its log messages using tracing::Subscriber events.Enums
Python error that implements foreign errors.
Traits
Trait defining a Python application.
Functions
Consumes a Python
logging.LogRecord
and emits a Rust tracing::Event instead.