This repository was archived by the owner on May 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-41
lines changed Expand file tree Collapse file tree 2 files changed +2
-41
lines changed Original file line number Diff line number Diff line change 1
1
# __init__.py
2
-
3
- from api import Dns
4
- import json
5
- # from domains import Domains
6
- # from ssl import Ssl
7
-
8
- if __name__ == "__main__" :
9
- from os .path import exists
10
- from pprint import pprint
11
- if exists ("./pyonos/config.py" ):
12
- from config import PREFIX , SECRET
13
-
14
- records = [
15
- {
16
- "name" : "cuminsi.de" ,
17
- "type" : "TXT" ,
18
- "content" : "hallo" ,
19
- "ttl" : 3600 ,
20
- "prio" : 0 ,
21
- "disabled" : False
22
- }
23
- ]
24
-
25
- record = {
26
- "name" : "cuminsi.de" ,
27
- "type" : "TXT" ,
28
- "content" : "by7984375e" ,
29
- "ttl" : 3600 ,
30
- "prio" : 0 ,
31
- "disabled" : False
32
- }
33
-
34
- dns = Dns (PREFIX , SECRET )
35
- zone_id = dns .get_zones ()[1 ][0 ]["id" ]
36
- record_id = dns .get_zone (zone_id )[1 ]["records" ][0 ]["id" ]
37
- # pprint(dns.post_records(zone_id, records))
38
- pprint (dns .put_record (zone_id , record_id , record ))
39
-
40
- else :
41
- print ("missing config.py" )
2
+ from .api import Dns
Original file line number Diff line number Diff line change 29
29
# --- setting up ---
30
30
setup (
31
31
name = "pyonos" ,
32
- version = '0.1.0 ' ,
32
+ version = '0.1.1 ' ,
33
33
author = "aaronlyy (Aaron Levi)" ,
34
34
author_email = "<[email protected] >" ,
35
35
url = "https://github.com/aaronlyy/pyonos" ,
You can’t perform that action at this time.
0 commit comments