# Python class for the ring $\mathbb{Z}[\sqrt{d}]$ ?

How to define and use the ring $\mathbb{Z}[\sqrt{d}]$ in Python? Is there a class for it? The purpose is to use Sage to verify some long calculations in an ideal generated by two elements. I don't know the name of the ring so it is difficult to declare proper tags.