.. title:: Home ==================================================== sosw — bootstrap AWS Lambda functions ==================================================== .. image:: https://github.com/sosw/sosw/actions/workflows/run-unittests.yml/badge.svg :alt: Tests :target: https://github.com/sosw/sosw/actions/workflows/run-unittests.yml .. image:: https://github.com/sosw/sosw/actions/workflows/docs-builder-action.yaml/badge.svg :alt: Docs :target: https://github.com/sosw/sosw/actions/workflows/docs-builder-action.yaml .. image:: _static/images/coverage.svg :alt: Test Coverage :target: index.html .. image:: https://img.shields.io/pypi/dm/sosw?color=blue&label=pypi%20installs :alt: PyPI - Installs / month :target: https://pypi.org/project/sosw/ .. image:: https://img.shields.io/pypi/l/sosw?color=blue :alt: PyPI - License :target: https://github.com/sosw/sosw/blob/master/LICENSE **sosw** is a Python framework for bootstrapping AWS Lambda functions. It gives every Lambda in your account the same production-grade skeleton in a dozen lines of code: * :ref:`Processor` — a base class with layered configuration (code defaults + DynamoDB / SSM overrides), automatic initialization of AWS clients, statistics counters and a uniform entry point; * **warm start** — the generated ``lambda_handler`` caches the initialized Processor for the lifetime of the Lambda container, so warm invocations skip all the initialization work (see :ref:`Warm start `); * :doc:`LambdaApi ` — a declarative router base class for Lambdas behind API Gateway (routes, Cognito claims, CORS, uniform JSON error envelopes); * :doc:`durable functions support ` — an optional wrapper integrating the AWS Lambda Durable Execution SDK (``pip install sosw[durable]``); * **components and helpers** — battle-tested middleware for DynamoDB, SNS, configuration sources, SigV4-signed requests, sibling invocations and a large :doc:`helpers library `. The only mandatory runtime dependency is ``boto3``. Python 3.12 – 3.14 are supported. .. note:: Upgrading from the 0.7.x line? Read the :doc:`migration guide ` first — the major release removed a whole layer of the package. The documentation of the previous versions is preserved: `0.7.51 docs `__. Install it and build your first function in minutes: .. code-block:: bash pip install sosw .. note:: Please pronounce ``sosw`` correctly: */ˈsɔːsəʊ/* .. toctree:: :titlesonly: :caption: Contents: :maxdepth: 2 quickstart concepts/index lambda_api durable components/index tools/index tutorials/index migration_3_0 support contribution/index Previous versions ================= * `sosw 0.7.51 documentation `__ — the archived documentation of the 0.7.x line (covering everything this major release removed from the package). Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`