__init__.py 946 B

123456789101112131415161718192021222324252627282930
  1. """
  2. SleekXMPP: The Sleek XMPP Library
  3. Copyright (C) 2010 Nathanael C. Fritz
  4. This file is part of SleekXMPP.
  5. See the file LICENSE for copying permission.
  6. """
  7. import logging
  8. if hasattr(logging, 'NullHandler'):
  9. NullHandler = logging.NullHandler
  10. else:
  11. class NullHandler(logging.Handler):
  12. def handle(self, record):
  13. pass
  14. logging.getLogger(__name__).addHandler(NullHandler())
  15. del NullHandler
  16. from sleekxmpp.stanza import Message, Presence, Iq
  17. from sleekxmpp.jid import JID, InvalidJID
  18. from sleekxmpp.xmlstream.stanzabase import ET, ElementBase, register_stanza_plugin
  19. from sleekxmpp.xmlstream.handler import *
  20. from sleekxmpp.xmlstream import XMLStream, RestartStream
  21. from sleekxmpp.xmlstream.matcher import *
  22. from sleekxmpp.basexmpp import BaseXMPP
  23. from sleekxmpp.clientxmpp import ClientXMPP
  24. from sleekxmpp.componentxmpp import ComponentXMPP
  25. from sleekxmpp.version import __version__, __version_info__