Posts tagged with: #python

How to Structure a Python AWS Serverless Project

I haven't been able to find much guidance on how to structure larger AWS serverless projects in Python. What is the best way to share code between different lambdas? How to overcome module resolution issues when accessing code deployed as a layer from handlers? How to set things up so that Python tooling - language servers, type checkers and test runners - all work as expected?

Read more →

Protocols and Composition in Python

It's a source of heartbreak and distress for me when instrumentation-related side-effects (like logging, metrics, tracing, retrying logic, error handling, etc.) begin making their way inside the business logic layer of an application. If only there was a way to overlay instrumentation on top of business logic without touching it directly... It would be even better if we could keep the various instrumentation concerns separate from one another, while we're at it...

Read more →