pyjabber.features package

Subpackages

Submodules

pyjabber.features.InBandRegistration module

class pyjabber.features.InBandRegistration.InBandRegistration(tag='register', attrib=None, **extra)[source]

Bases: Element

InBandRegistration Stream message.

It allows the user to register itself on the server if there is no credentials stored with the given JID

pyjabber.features.ResourceBinding module

class pyjabber.features.ResourceBinding.ResourceBinding[source]

Bases: Element

ResourceBinding Stream message.

Allows the user to use a specific identifier for his session. If not provided, the server will automatically assign one in behalf of the client.

pyjabber.features.SASLFeature module

pyjabber.features.StartTLSFeature module

class pyjabber.features.StartTLSFeature.StartTLSFeature(tag='starttls', attrib=None, required=True, **extra)[source]

Bases: Element

STARTTLS Stream message.

Indicates to the user that the server is ready for the TLS upgrade (handshake).

pyjabber.features.StartTLSFeature.proceed_response()[source]

Proceed Stream message.

Indicates that the TLS upgrade process has started.

Return type:

bytes

pyjabber.features.StreamFeature module

exception pyjabber.features.StreamFeature.NonUniqueFeature[source]

Bases: Exception

Exception raised when a non-unique feature is found on the manager

class pyjabber.features.StreamFeature.StreamFeature(tag='stream:features', **extra)[source]

Bases: Element

Class to manage server features

register(feature)[source]

Register a new feature

reset()[source]

Remove all features registered in the StreamFeature object.

to_bytes()[source]

Return an encoded xml message

Return type:

bytes

tostring()[source]

Return a string representation of the xml message

Return type:

str

unregister(feature)[source]

Unregister a feature

Module contents