Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit ee6affd

Browse files
committed
fixed imports
1 parent c083221 commit ee6affd

File tree

2 files changed

+2
-41
lines changed

2 files changed

+2
-41
lines changed

pyonos/__init__.py

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,2 @@
11
# __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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# --- setting up ---
3030
setup(
3131
name="pyonos",
32-
version='0.1.0',
32+
version='0.1.1',
3333
author="aaronlyy (Aaron Levi)",
3434
author_email="<[email protected]>",
3535
url="https://github.com/aaronlyy/pyonos",

0 commit comments

Comments
 (0)