Python Code

Sample python code generation

Prompt

You must write a python Fastapi program with graceful shutdown and healthchecks. You expose port 3000 with 2 routes which supports GET requests like this: /api/v1/{num} The {num} parameter is the input to a Fibbonacci function that computes fibbonacci using Generating Functions. First route uses last recent used cache strategy, second one doesn't have this facility. Write this program using SOLID principles. Hint: Use eventloop events.

Drag to resize
Drag to resize

Response not available

Drag to resize
Drag to resize
Drag to resize