Skip to content

Comment on Playback-studio: record and replay the input to any Python functionparent

Comments

Yes this is one of the main use cases we've built this framework for, you can check a full example which uses flask provided in the repo: https://github.com/Optibus/playback/tree/main/examples/flask

You will need to decorate the input, typically the request data, and if you access other external data source, such as database access or other services, you should decorate that access as well so it will be part of the recording. During playback everything will be fetched from the recording when the intercepted methods are invoked with the same parameters.

It is suited for other actions as well, we are also using to record and replay our celery based tasks

(I am one of the main contributors to this framework)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.