Include epplibwrapper module

This commit is contained in:
Seamus Johnston 2023-04-21 09:08:47 -05:00
parent d3cc3853c1
commit ce7cfc1a53
No known key found for this signature in database
GPG key ID: 2F21225985069105
14 changed files with 325 additions and 49 deletions

View file

@ -0,0 +1,48 @@
import logging
from types import SimpleNamespace
try:
from epplib import constants
except ImportError:
pass
logger = logging.getLogger(__name__)
NAMESPACE = SimpleNamespace(
EPP="urn:ietf:params:xml:ns:epp-1.0",
XSI="http://www.w3.org/2001/XMLSchema-instance",
FRED="noop",
NIC_CONTACT="urn:ietf:params:xml:ns:contact-1.0",
NIC_DOMAIN="urn:ietf:params:xml:ns:domain-1.0",
NIC_ENUMVAL="noop",
NIC_EXTRA_ADDR="noop",
NIC_HOST="urn:ietf:params:xml:ns:host-1.0",
NIC_KEYSET="noop",
NIC_NSSET="noop",
)
SCHEMA_LOCATION = SimpleNamespace(
XSI="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd",
FRED="noop fred-1.5.0.xsd",
NIC_CONTACT="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd",
NIC_DOMAIN="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd",
NIC_ENUMVAL="noop enumval-1.2.0.xsd",
NIC_EXTRA_ADDR="noop extra-addr-1.0.0.xsd",
NIC_HOST="urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd",
NIC_KEYSET="noop keyset-1.3.2.xsd",
NIC_NSSET="noop nsset-1.2.2.xsd",
)
try:
constants.NAMESPACE = NAMESPACE
constants.SCHEMA_LOCATION = SCHEMA_LOCATION
except NameError:
pass
# Attn: these imports should NOT be at the top of the file
from .client import CLIENT, commands
__all__ = [
"CLIENT",
"commands",
]