# Protocols as shapes **🟢 Beginner · Lesson 17** Protocols describe a SHAPE; bindings fill it - two implementations of one Protocol, chosen by binding name, called through the shared shape. Static duck typing meets dependency injection, gently. ## Before you run Use the [Beginner guide](../../beginner/index.md) for prerequisite concepts. Run from a checkout with Melder installed and Python 3.14 free-threading selected. The collection download includes the level's local helper modules. ## Run the saved script ```bash python UX_and_AIX_experiences/01_beginner/17_protocols_as_shapes.py ``` ```powershell py -3.14t UX_and_AIX_experiences/01_beginner/17_protocols_as_shapes.py ``` {download}`Download this collection <../../downloads/beginner-examples.zip>` · [Source on GitHub](https://github.com/Synaptic724/melder/blob/a30a754d0bb61db0b142936010cdb82cffecec6f/UX_and_AIX_experiences/01_beginner/17_protocols_as_shapes.py) ## Public surface typing.Protocol + named bindings ## Code ```{literalinclude} ../../downloads/01_beginner/17_protocols_as_shapes.py :language: python :linenos: ``` ## Check the outcome The script contains its own assertions or demonstrated refusal paths. Run it to evaluate those checks against your installed version. The code above is taken directly from the saved file; no run output is invented here. [More beginner examples](index.md) · [Level guide](../../beginner/index.md) ## Related guides - [Spellframes and categories](../../beginner/spellframes.md)