Python-EPP
Python-EPP copied to clipboard
cannot import name contact
from epp import EPP, Contact, Domain, Nameserver
config = {
'host': 'epp-server.com',
'port': 700,
'user': 'user',
'pass': '*****',
}
epp = epp(**config)
domain = Domain(epp, 'nextgear.nl')
print domain.token()
ns = epp.Nameserver(epp, ns[0])
print ns.get_ip()
contact = epp.Contact(epp, 'JOO011933-NEXTG')
print contact.info()
Traceback (most recent call last):
File "epp-TEST.py", line 1, in <module>
from epp import EPP, Contact, Domain, Nameserver
File "/usr/local/lib/python2.7/dist-packages/epp/EPP.py", line 8, in <module>
from commands import contact
ImportError: cannot import name contact
Test script not work, plese fix.