Bayesian Experiment Design and analysis [Resource request]

Sounds like this might be at least close to what you want:

Doing Bayesian Data Analysis, Second Edition:

A Tutorial with R, JAGS, and Stan.

There’s a PyMC port which you can find the link to here Books — PyMC 5.3.1 documentation