Crate aws_smithy_http_server_python

Source
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§

context
Python context definition.
lambda
Python wrappers for Lambda related types.
logging
Rust tracing and Python logging setup and utilities.
middleware
Schedule pure-Python middlewares as tower::Layers.
py_tracing_event
tls
TLS related types for Python.
types
Python wrapped types from aws-smithy-types.

Macros§

mutable_mapping_pymethods
Macro that provides mixin methods of collections.abc.MutableMapping to the implementing type.

Structs§

PyHandler
A Python handler function representation.
PyMiddlewareException
Exception that can be thrown from a Python middleware.
PyMiddlewareHandler
A Python middleware handler function representation.
PyMiddlewareLayer
Tower Layer implementation of Python middleware handling.
PyRequest
Python-compatible Request object.
PyResponse
Python-compatible Response object.
PySocket
Socket implementation that can be shared between multiple Python processes.
PyTracingHandler
Modifies the Python logging module to deliver its log messages using tracing::Subscriber events.
RichPyErr
Wraps PyErr with a richer debug output that includes traceback and cause.

Enums§

PyError
Python error that implements foreign errors.

Traits§

PyApp
Trait defining a Python application.

Functions§

py_tracing_event
Consumes a Python logging.LogRecord and emits a Rust tracing::Event instead.
rich_py_err
Wrap err with RichPyErr to have a richer debug output.