dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.rdtypes.txtbase.TXTBase Class Reference
Inheritance diagram for dns.rdtypes.txtbase.TXTBase:
[legend]
Collaboration diagram for dns.rdtypes.txtbase.TXTBase:
[legend]

Public Member Functions

def __init__ (self, rdclass, rdtype, strings)
 
def to_text (self, origin=None, relativize=True, **kw)
 
def from_text (cls, rdclass, rdtype, tok, origin=None, relativize=True)
 
def to_wire (self, file, compress=None, origin=None)
 
def from_wire (cls, rdclass, rdtype, wire, current, rdlen, origin=None)
 
- Public Member Functions inherited from dns.rdata.Rdata
def __init__ (self, rdclass, rdtype)
 
def covers (self)
 
def extended_rdatatype (self)
 
def to_digestable (self, origin=None)
 
def validate (self)
 
def __repr__ (self)
 
def __str__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __lt__ (self, other)
 
def __le__ (self, other)
 
def __ge__ (self, other)
 
def __gt__ (self, other)
 
def __hash__ (self)
 
def choose_relativity (self, origin=None, relativize=True)
 

Public Attributes

 strings
 
- Public Attributes inherited from dns.rdata.Rdata
 rdclass
 
 rdtype
 

Static Private Attributes

list __slots__ = ['strings']
 

Detailed Description

Base class for rdata that is like a TXT record

@ivar strings: the strings
@type strings: list of binary
@see: RFC 1035

Definition at line 28 of file txtbase.py.

Constructor & Destructor Documentation

◆ __init__()

def dns.rdtypes.txtbase.TXTBase.__init__ (   self,
  rdclass,
  rdtype,
  strings 
)

Definition at line 38 of file txtbase.py.

Member Function Documentation

◆ from_text()

def dns.rdtypes.txtbase.TXTBase.from_text (   cls,
  rdclass,
  rdtype,
  tok,
  origin = None,
  relativize = True 
)

Reimplemented from dns.rdata.Rdata.

Definition at line 58 of file txtbase.py.

◆ from_wire()

def dns.rdtypes.txtbase.TXTBase.from_wire (   cls,
  rdclass,
  rdtype,
  wire,
  current,
  rdlen,
  origin = None 
)

Reimplemented from dns.rdata.Rdata.

Definition at line 85 of file txtbase.py.

◆ to_text()

def dns.rdtypes.txtbase.TXTBase.to_text (   self,
  origin = None,
  relativize = True,
**  kw 
)
Convert an rdata to text format.

Returns a ``text``.

Reimplemented from dns.rdata.Rdata.

Definition at line 49 of file txtbase.py.

References dns.rdata._escapify(), and dns.rdtypes.txtbase.TXTBase.strings.

◆ to_wire()

def dns.rdtypes.txtbase.TXTBase.to_wire (   self,
  file,
  compress = None,
  origin = None 
)
Convert an rdata to wire format.

Returns a ``binary``.

Reimplemented from dns.rdata.Rdata.

Definition at line 77 of file txtbase.py.

References dns.rdtypes.txtbase.TXTBase.strings.

Member Data Documentation

◆ __slots__

list dns.rdtypes.txtbase.TXTBase.__slots__ = ['strings']
staticprivate

Definition at line 36 of file txtbase.py.

◆ strings

dns.rdtypes.txtbase.TXTBase.strings

The documentation for this class was generated from the following file: