datasette / datasette-enrichments

Tools for running enrichments against data stored in Datasette
https://enrichments.datasette.io
Apache License 2.0
16 stars 0 forks source link

Use call_with_supported_arguments pattern #28

Closed simonw closed 7 months ago

simonw commented 7 months ago

Using the call_with_supported_arguments pattern from Datasette will mean methods like .enrich_batch() in plugins only need to take the arguments that they need.

Plus it will let me expand those methods with new arguments in the future without breaking anything.

simonw commented 7 months ago

Needs documentation.

simonw commented 7 months ago

Documented here: https://enrichments.datasette.io/en/latest/developing.html#enrichment-subclasses