@Adamant Sadly haven't read it, but it looks interesting. I read 'The Golem and the Jinni' a while back and can recommend it; sounds vaguely similar (and was probably what made me think of
this question). Also sounds a bit like Jonathan Strange and Mr Norrell in concept, but probably not in execution. I enjoyed that but it was... unusual.