diff --git a/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html b/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html index 5742fe5..70a9884 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1TXT-members.html @@ -105,7 +105,7 @@ $(function(){initNavTree('classdnscode_1_1dnscode_1_1TXT.html',''); initResizabl

This is the complete list of members for dnscode.dnscode.TXT, including all inherited members.

- + diff --git a/docs/html/classdnscode_1_1dnscode_1_1TXT.html b/docs/html/classdnscode_1_1dnscode_1_1TXT.html index c75f134..2dd0535 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1TXT.html +++ b/docs/html/classdnscode_1_1dnscode_1_1TXT.html @@ -118,8 +118,8 @@ Inheritance diagram for dnscode.dnscode.TXT:
__init__(self, str name='@', int ttl=3600, str txt='example.com')dnscode.dnscode.TXT
__init__(self, str name='@', int ttl=3600, str text='example.com')dnscode.dnscode.TXT
datadnscode.dnscode.TXT
namednscode.dnscode.TXT
rtypednscode.dnscode.TXT
- - + + @@ -132,7 +132,7 @@ Public Attributes - +

Public Member Functions

 __init__ (self, str name='@', int ttl=3600, str txt='example.com')
 
 __init__ (self, str name='@', int ttl=3600, str text='example.com')
 
- Public Member Functions inherited from dnscode.dnscode.Record
 __str__ (self)
 
 
 ttl = ttl
 
 data = txt
 data = text
 

@@ -151,8 +151,8 @@ Additional Inherited Members

Detailed Description

Represents a 'CNAME' (Canonical Name) record.

Constructor & Destructor Documentation

- -

◆ __init__()

+ +

◆ __init__()

@@ -175,7 +175,7 @@ Additional Inherited Members - str txt = 'example.com' ) + str text = 'example.com' )
@@ -190,7 +190,7 @@ Additional Inherited Members
- +
dnscode.dnscode.TXT.data = txtdnscode.dnscode.TXT.data = text
diff --git a/docs/html/classdnscode_1_1dnscode_1_1TXT.js b/docs/html/classdnscode_1_1dnscode_1_1TXT.js index dde00cd..3d1cdf7 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1TXT.js +++ b/docs/html/classdnscode_1_1dnscode_1_1TXT.js @@ -1,6 +1,6 @@ var classdnscode_1_1dnscode_1_1TXT = [ - [ "__init__", "classdnscode_1_1dnscode_1_1TXT.html#a00bd3fc2d0156b9d48318137ec294255", null ], + [ "__init__", "classdnscode_1_1dnscode_1_1TXT.html#ab698e33e29b9e8e7e2807d0ef08124e9", null ], [ "data", "classdnscode_1_1dnscode_1_1TXT.html#afa4964ab5586285b6e80af2a4dad4dc0", null ], [ "name", "classdnscode_1_1dnscode_1_1TXT.html#ad31d74420dc82dd99964f9878cf003f8", null ], [ "rtype", "classdnscode_1_1dnscode_1_1TXT.html#a79ae2d3a0cd38d2332bc19b9f608a088", null ], diff --git a/docs/html/doxygen_crawl.html b/docs/html/doxygen_crawl.html index 45ec11c..52b58f5 100644 --- a/docs/html/doxygen_crawl.html +++ b/docs/html/doxygen_crawl.html @@ -150,9 +150,9 @@ - + diff --git a/docs/html/functions.html b/docs/html/functions.html index fa08b5f..b8b80d9 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -102,7 +102,7 @@ $(function(){initNavTree('functions.html',''); initResizable(true); });
Here is a list of all class members with links to the classes they belong to:

- _ -

diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html index 44a91e6..eea2ab4 100644 --- a/docs/html/functions_func.html +++ b/docs/html/functions_func.html @@ -100,7 +100,7 @@ $(function(){initNavTree('functions_func.html',''); initResizable(true); });
Here is a list of all functions with links to the classes they belong to:
    -
  • __init__() : dnscode.dnscode.A, dnscode.dnscode.AAAA, dnscode.dnscode.CNAME, dnscode.dnscode.InvalidDataException, dnscode.dnscode.MX, dnscode.dnscode.NS, dnscode.dnscode.PTR, dnscode.dnscode.SOA, dnscode.dnscode.SRV, dnscode.dnscode.TXT
  • +
  • __init__() : dnscode.dnscode.A, dnscode.dnscode.AAAA, dnscode.dnscode.CNAME, dnscode.dnscode.InvalidDataException, dnscode.dnscode.MX, dnscode.dnscode.NS, dnscode.dnscode.PTR, dnscode.dnscode.SOA, dnscode.dnscode.SRV, dnscode.dnscode.TXT
  • __post_init__() : dnscode.dnscode.Zone
  • __str__() : dnscode.dnscode.Record, dnscode.dnscode.Zone
  • add() : dnscode.dnscode.Zone
  • diff --git a/docs/html/navtreeindex0.js b/docs/html/navtreeindex0.js index c290140..9e8db74 100644 --- a/docs/html/navtreeindex0.js +++ b/docs/html/navtreeindex0.js @@ -140,12 +140,12 @@ var NAVTREEINDEX0 = "classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5":[5,0,0,0,9,9], "classdnscode_1_1dnscode_1_1TXT.html":[4,0,0,0,10], "classdnscode_1_1dnscode_1_1TXT.html":[5,0,0,0,10], -"classdnscode_1_1dnscode_1_1TXT.html#a00bd3fc2d0156b9d48318137ec294255":[4,0,0,0,10,0], -"classdnscode_1_1dnscode_1_1TXT.html#a00bd3fc2d0156b9d48318137ec294255":[5,0,0,0,10,0], "classdnscode_1_1dnscode_1_1TXT.html#a79ae2d3a0cd38d2332bc19b9f608a088":[4,0,0,0,10,3], "classdnscode_1_1dnscode_1_1TXT.html#a79ae2d3a0cd38d2332bc19b9f608a088":[5,0,0,0,10,3], "classdnscode_1_1dnscode_1_1TXT.html#aa1a7962a740d84279b6a136fb91f57de":[4,0,0,0,10,4], "classdnscode_1_1dnscode_1_1TXT.html#aa1a7962a740d84279b6a136fb91f57de":[5,0,0,0,10,4], +"classdnscode_1_1dnscode_1_1TXT.html#ab698e33e29b9e8e7e2807d0ef08124e9":[4,0,0,0,10,0], +"classdnscode_1_1dnscode_1_1TXT.html#ab698e33e29b9e8e7e2807d0ef08124e9":[5,0,0,0,10,0], "classdnscode_1_1dnscode_1_1TXT.html#ad31d74420dc82dd99964f9878cf003f8":[4,0,0,0,10,2], "classdnscode_1_1dnscode_1_1TXT.html#ad31d74420dc82dd99964f9878cf003f8":[5,0,0,0,10,2], "classdnscode_1_1dnscode_1_1TXT.html#afa4964ab5586285b6e80af2a4dad4dc0":[4,0,0,0,10,1], diff --git a/docs/html/search/all_0.js b/docs/html/search/all_0.js index e0261ff..4b83cf1 100644 --- a/docs/html/search/all_0.js +++ b/docs/html/search/all_0.js @@ -1,6 +1,6 @@ var searchData= [ - ['_5f_5finit_5f_5f_0',['__init__',['../classdnscode_1_1dnscode_1_1InvalidDataException.html#ae0a05fa4d708dd9eab0c1ead5b2098a8',1,'dnscode.dnscode.InvalidDataException.__init__()'],['../classdnscode_1_1dnscode_1_1A.html#a6ff40033bfd3ae0f293b7e1719e75e71',1,'dnscode.dnscode.A.__init__()'],['../classdnscode_1_1dnscode_1_1AAAA.html#a238b346327f47595ac7246766e987ae6',1,'dnscode.dnscode.AAAA.__init__()'],['../classdnscode_1_1dnscode_1_1CNAME.html#a286b2c39577989c78bb09c23ffcfb4c0',1,'dnscode.dnscode.CNAME.__init__()'],['../classdnscode_1_1dnscode_1_1MX.html#a4dafe8f75646ca4ec6e2ea77a2d838f5',1,'dnscode.dnscode.MX.__init__()'],['../classdnscode_1_1dnscode_1_1NS.html#a30214975313b4fdc1af03b45cc2bd414',1,'dnscode.dnscode.NS.__init__()'],['../classdnscode_1_1dnscode_1_1PTR.html#a97e7c140d6bd930a2611e68753a0d8eb',1,'dnscode.dnscode.PTR.__init__()'],['../classdnscode_1_1dnscode_1_1SOA.html#a3318d09d5bead318b42aa9f939262982',1,'dnscode.dnscode.SOA.__init__()'],['../classdnscode_1_1dnscode_1_1SRV.html#a488bf7130d42c3eb3316cf9903d5454e',1,'dnscode.dnscode.SRV.__init__()'],['../classdnscode_1_1dnscode_1_1TXT.html#a00bd3fc2d0156b9d48318137ec294255',1,'dnscode.dnscode.TXT.__init__()']]], + ['_5f_5finit_5f_5f_0',['__init__',['../classdnscode_1_1dnscode_1_1InvalidDataException.html#ae0a05fa4d708dd9eab0c1ead5b2098a8',1,'dnscode.dnscode.InvalidDataException.__init__()'],['../classdnscode_1_1dnscode_1_1A.html#a6ff40033bfd3ae0f293b7e1719e75e71',1,'dnscode.dnscode.A.__init__()'],['../classdnscode_1_1dnscode_1_1AAAA.html#a238b346327f47595ac7246766e987ae6',1,'dnscode.dnscode.AAAA.__init__()'],['../classdnscode_1_1dnscode_1_1CNAME.html#a286b2c39577989c78bb09c23ffcfb4c0',1,'dnscode.dnscode.CNAME.__init__()'],['../classdnscode_1_1dnscode_1_1MX.html#a4dafe8f75646ca4ec6e2ea77a2d838f5',1,'dnscode.dnscode.MX.__init__()'],['../classdnscode_1_1dnscode_1_1NS.html#a30214975313b4fdc1af03b45cc2bd414',1,'dnscode.dnscode.NS.__init__()'],['../classdnscode_1_1dnscode_1_1PTR.html#a97e7c140d6bd930a2611e68753a0d8eb',1,'dnscode.dnscode.PTR.__init__()'],['../classdnscode_1_1dnscode_1_1SOA.html#a3318d09d5bead318b42aa9f939262982',1,'dnscode.dnscode.SOA.__init__()'],['../classdnscode_1_1dnscode_1_1SRV.html#a488bf7130d42c3eb3316cf9903d5454e',1,'dnscode.dnscode.SRV.__init__()'],['../classdnscode_1_1dnscode_1_1TXT.html#ab698e33e29b9e8e7e2807d0ef08124e9',1,'dnscode.dnscode.TXT.__init__()']]], ['_5f_5finit_5f_5f_2epy_1',['__init__.py',['../____init_____8py.html',1,'']]], ['_5f_5fpost_5finit_5f_5f_2',['__post_init__',['../classdnscode_1_1dnscode_1_1Zone.html#ad696206776c2c68471126d950fa178d1',1,'dnscode::dnscode::Zone']]], ['_5f_5fstr_5f_5f_3',['__str__',['../classdnscode_1_1dnscode_1_1Record.html#a9cdd32b3cc1e61c0242e1df4ac88570f',1,'dnscode.dnscode.Record.__str__()'],['../classdnscode_1_1dnscode_1_1Zone.html#a31e74a07a8f0b0f95a14662d20f1df8c',1,'dnscode.dnscode.Zone.__str__()']]] diff --git a/docs/html/search/functions_0.js b/docs/html/search/functions_0.js index 434b28b..c1058d4 100644 --- a/docs/html/search/functions_0.js +++ b/docs/html/search/functions_0.js @@ -1,6 +1,6 @@ var searchData= [ - ['_5f_5finit_5f_5f_0',['__init__',['../classdnscode_1_1dnscode_1_1InvalidDataException.html#ae0a05fa4d708dd9eab0c1ead5b2098a8',1,'dnscode.dnscode.InvalidDataException.__init__()'],['../classdnscode_1_1dnscode_1_1A.html#a6ff40033bfd3ae0f293b7e1719e75e71',1,'dnscode.dnscode.A.__init__()'],['../classdnscode_1_1dnscode_1_1AAAA.html#a238b346327f47595ac7246766e987ae6',1,'dnscode.dnscode.AAAA.__init__()'],['../classdnscode_1_1dnscode_1_1CNAME.html#a286b2c39577989c78bb09c23ffcfb4c0',1,'dnscode.dnscode.CNAME.__init__()'],['../classdnscode_1_1dnscode_1_1MX.html#a4dafe8f75646ca4ec6e2ea77a2d838f5',1,'dnscode.dnscode.MX.__init__()'],['../classdnscode_1_1dnscode_1_1NS.html#a30214975313b4fdc1af03b45cc2bd414',1,'dnscode.dnscode.NS.__init__()'],['../classdnscode_1_1dnscode_1_1PTR.html#a97e7c140d6bd930a2611e68753a0d8eb',1,'dnscode.dnscode.PTR.__init__()'],['../classdnscode_1_1dnscode_1_1SOA.html#a3318d09d5bead318b42aa9f939262982',1,'dnscode.dnscode.SOA.__init__()'],['../classdnscode_1_1dnscode_1_1SRV.html#a488bf7130d42c3eb3316cf9903d5454e',1,'dnscode.dnscode.SRV.__init__()'],['../classdnscode_1_1dnscode_1_1TXT.html#a00bd3fc2d0156b9d48318137ec294255',1,'dnscode.dnscode.TXT.__init__()']]], + ['_5f_5finit_5f_5f_0',['__init__',['../classdnscode_1_1dnscode_1_1InvalidDataException.html#ae0a05fa4d708dd9eab0c1ead5b2098a8',1,'dnscode.dnscode.InvalidDataException.__init__()'],['../classdnscode_1_1dnscode_1_1A.html#a6ff40033bfd3ae0f293b7e1719e75e71',1,'dnscode.dnscode.A.__init__()'],['../classdnscode_1_1dnscode_1_1AAAA.html#a238b346327f47595ac7246766e987ae6',1,'dnscode.dnscode.AAAA.__init__()'],['../classdnscode_1_1dnscode_1_1CNAME.html#a286b2c39577989c78bb09c23ffcfb4c0',1,'dnscode.dnscode.CNAME.__init__()'],['../classdnscode_1_1dnscode_1_1MX.html#a4dafe8f75646ca4ec6e2ea77a2d838f5',1,'dnscode.dnscode.MX.__init__()'],['../classdnscode_1_1dnscode_1_1NS.html#a30214975313b4fdc1af03b45cc2bd414',1,'dnscode.dnscode.NS.__init__()'],['../classdnscode_1_1dnscode_1_1PTR.html#a97e7c140d6bd930a2611e68753a0d8eb',1,'dnscode.dnscode.PTR.__init__()'],['../classdnscode_1_1dnscode_1_1SOA.html#a3318d09d5bead318b42aa9f939262982',1,'dnscode.dnscode.SOA.__init__()'],['../classdnscode_1_1dnscode_1_1SRV.html#a488bf7130d42c3eb3316cf9903d5454e',1,'dnscode.dnscode.SRV.__init__()'],['../classdnscode_1_1dnscode_1_1TXT.html#ab698e33e29b9e8e7e2807d0ef08124e9',1,'dnscode.dnscode.TXT.__init__()']]], ['_5f_5fpost_5finit_5f_5f_1',['__post_init__',['../classdnscode_1_1dnscode_1_1Zone.html#ad696206776c2c68471126d950fa178d1',1,'dnscode::dnscode::Zone']]], ['_5f_5fstr_5f_5f_2',['__str__',['../classdnscode_1_1dnscode_1_1Record.html#a9cdd32b3cc1e61c0242e1df4ac88570f',1,'dnscode.dnscode.Record.__str__()'],['../classdnscode_1_1dnscode_1_1Zone.html#a31e74a07a8f0b0f95a14662d20f1df8c',1,'dnscode.dnscode.Zone.__str__()']]] ]; diff --git a/pyproject.toml b/pyproject.toml index 35fb031..0b204b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "dnscode" -version = "1.5.0" +version = "1.5.1" authors = [ { name="Minecraftchest1", email="me@minec1.us" }, ] diff --git a/src/dnscode/dnscode.py b/src/dnscode/dnscode.py index 12e93be..62dc974 100644 --- a/src/dnscode/dnscode.py +++ b/src/dnscode/dnscode.py @@ -206,11 +206,11 @@ class TXT(Record): #target: str - def __init__(self, name: str = '@', ttl: int = 3600, txt: str = 'example.com'): + def __init__(self, name: str = '@', ttl: int = 3600, text: str = 'example.com'): self.rtype = 'CNAME' self.name = str(name) self.ttl = ttl - self.data = txt + self.data = text @dataclass class Zone: @@ -286,7 +286,7 @@ class Zone: def new_TXT(self, name: str = '@', ttl: int = 3600, text: str = 'example.com'): """Creates and adds a new CNAME record to the zone.""" name = self.__mkfqdn(name) - self.add(CNAME(name=name, ttl=ttl, txt=txt)) + self.add(CNAME(name=name, ttl=ttl, text=text)) def new_record(self, name: str = '@', ttl: int = 3600, rtype: str = 'A', data: str = '0.0.0.0'): """Creates and adds a generic DNS record to the zone."""