ddns 4.0.0b5__tar.gz → 4.0.0b6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ddns might be problematic. Click here for more details.
- {ddns-4.0.0b5 → ddns-4.0.0b6}/PKG-INFO +2 -2
- {ddns-4.0.0b5 → ddns-4.0.0b6}/ddns.egg-info/PKG-INFO +2 -2
- {ddns-4.0.0b5 → ddns-4.0.0b6}/run.py +27 -14
- {ddns-4.0.0b5 → ddns-4.0.0b6}/LICENSE +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/README.md +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/ddns.egg-info/SOURCES.txt +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/ddns.egg-info/dependency_links.txt +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/ddns.egg-info/entry_points.txt +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/ddns.egg-info/top_level.txt +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/__init__.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/alidns.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/callback.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/cloudflare.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/dnscom.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/dnspod.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/dnspod_com.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/he.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/dns/huaweidns.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/setup.cfg +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/setup.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/util/__init__.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/util/cache.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/util/config.py +0 -0
- {ddns-4.0.0b5 → ddns-4.0.0b6}/util/ip.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ddns
|
|
3
|
-
Version: 4.0.
|
|
4
|
-
Summary: automatically update DNS records to
|
|
3
|
+
Version: 4.0.0b6
|
|
4
|
+
Summary: automatically update DNS records to my IP [域名自动指向本机IP]
|
|
5
5
|
Home-page: https://ddns.newfuture.cc
|
|
6
6
|
Author: NewFuture
|
|
7
7
|
Author-email: python@newfuture.cc
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ddns
|
|
3
|
-
Version: 4.0.
|
|
4
|
-
Summary: automatically update DNS records to
|
|
3
|
+
Version: 4.0.0b6
|
|
4
|
+
Summary: automatically update DNS records to my IP [域名自动指向本机IP]
|
|
5
5
|
Home-page: https://ddns.newfuture.cc
|
|
6
6
|
Author: NewFuture
|
|
7
7
|
Author-email: python@newfuture.cc
|
|
@@ -6,8 +6,6 @@ DDNS
|
|
|
6
6
|
@modified: rufengsuixing
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
-
# nuitka-project: --product-version=0.0.0
|
|
10
|
-
|
|
11
9
|
from os import path, environ, name as os_name
|
|
12
10
|
from io import TextIOWrapper
|
|
13
11
|
from subprocess import check_output
|
|
@@ -20,8 +18,8 @@ from util import ip
|
|
|
20
18
|
from util.cache import Cache
|
|
21
19
|
from util.config import init_config, get_config
|
|
22
20
|
|
|
23
|
-
__version__ = "v4.0.0-
|
|
24
|
-
__description__ = "automatically update DNS records to
|
|
21
|
+
__version__ = "v4.0.0-beta6@2025-06-12T17:22:06+00:00" # CI 时会被Tag替换
|
|
22
|
+
__description__ = "automatically update DNS records to my IP [域名自动指向本机IP]"
|
|
25
23
|
__doc__ = """
|
|
26
24
|
ddns[%s]
|
|
27
25
|
(i) homepage or docs [文档主页]: https://ddns.newfuture.cc/
|
|
@@ -29,7 +27,7 @@ ddns[%s]
|
|
|
29
27
|
Copyright (c) New Future (MIT License)
|
|
30
28
|
""" % (__version__)
|
|
31
29
|
|
|
32
|
-
environ["DDNS_VERSION"] = "v4.0.0-
|
|
30
|
+
environ["DDNS_VERSION"] = "v4.0.0-beta6"
|
|
33
31
|
|
|
34
32
|
|
|
35
33
|
def is_false(value):
|
|
@@ -127,12 +125,6 @@ def main():
|
|
|
127
125
|
更新
|
|
128
126
|
"""
|
|
129
127
|
init_config(__description__, __doc__, __version__)
|
|
130
|
-
# Dynamicly import the dns module as configuration
|
|
131
|
-
dns_provider = str(get_config('dns', 'dnspod').lower())
|
|
132
|
-
dns = getattr(__import__('dns', fromlist=[dns_provider]), dns_provider)
|
|
133
|
-
dns.Config.ID = get_config('id')
|
|
134
|
-
dns.Config.TOKEN = get_config('token')
|
|
135
|
-
dns.Config.TTL = get_config('ttl')
|
|
136
128
|
|
|
137
129
|
basicConfig(
|
|
138
130
|
level=get_config('log.level'),
|
|
@@ -140,8 +132,15 @@ def main():
|
|
|
140
132
|
datefmt='%m-%d %H:%M:%S',
|
|
141
133
|
filename=get_config('log.file'),
|
|
142
134
|
)
|
|
143
|
-
|
|
144
135
|
info("DDNS[ %s ] run: %s %s", __version__, os_name, sys.platform)
|
|
136
|
+
|
|
137
|
+
# Dynamically import the dns module as configuration
|
|
138
|
+
dns_provider = str(get_config('dns', 'dnspod').lower())
|
|
139
|
+
dns = getattr(__import__('dns', fromlist=[dns_provider]), dns_provider)
|
|
140
|
+
dns.Config.ID = get_config('id')
|
|
141
|
+
dns.Config.TOKEN = get_config('token')
|
|
142
|
+
dns.Config.TTL = get_config('ttl')
|
|
143
|
+
|
|
145
144
|
if get_config("config"):
|
|
146
145
|
info('loaded Config from: %s', path.abspath(get_config('config')))
|
|
147
146
|
|
|
@@ -169,9 +168,23 @@ def main():
|
|
|
169
168
|
|
|
170
169
|
|
|
171
170
|
if __name__ == '__main__':
|
|
172
|
-
|
|
173
|
-
if
|
|
171
|
+
encode = sys.stdout.encoding
|
|
172
|
+
if encode is not None and encode.lower() != 'utf-8' and hasattr(sys.stdout, 'buffer'):
|
|
174
173
|
# 兼容windows 和部分ASCII编码的老旧系统
|
|
175
174
|
sys.stdout = TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
|
176
175
|
sys.stderr = TextIOWrapper(sys.stderr.buffer, encoding='utf-8')
|
|
177
176
|
main()
|
|
177
|
+
|
|
178
|
+
# Nuitka Project Configuration
|
|
179
|
+
# nuitka-project: --mode=onefile
|
|
180
|
+
# nuitka-project: --output-filename=ddns
|
|
181
|
+
# nuitka-project: --product-name=DDNS
|
|
182
|
+
# nuitka-project: --product-version=0.0.0
|
|
183
|
+
# nuitka-project: --onefile-tempdir-spec="{TEMP}/{PRODUCT}_{VERSION}"
|
|
184
|
+
# nuitka-project: --no-deployment-flag=self-execution
|
|
185
|
+
# nuitka-project: --company-name="New Future"
|
|
186
|
+
# nuitka-project: --copyright=https://ddns.newfuture.cc
|
|
187
|
+
# nuitka-project: --assume-yes-for-downloads
|
|
188
|
+
# nuitka-project: --python-flag=no_site,no_asserts,no_docstrings,isolated,static_hashes
|
|
189
|
+
# nuitka-project: --nofollow-import-to=tkinter,unittest,pydoc,doctest,distutils,setuptools,lib2to3,test,idlelib,lzma
|
|
190
|
+
# nuitka-project: --noinclude-dlls=liblzma.*
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|