Once the adapters are installed, you can run scripts that use the idc module directly in Ghidra. The following example demonstrates how standard IDAPython calls like idc.here(), idc.MinEA(), and idc.Byte() function within the Ghidra environment via Daenerys.
#@category Daenerys.IDAPython.Examples
import idc
print("Hello world from Ghidra...")
print("Current address is: %x" % idc.here())
print("Min address: %x - Max address: %x" % (idc.MinEA(), idc.MaxEA()))
print("Byte at current address is: %02x" % idc.Byte(idc.here()))
print("BADADDR=%x" % idc.BADADDR)