ryry-cli 2.63__tar.gz → 2.64__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.
- {ryry_cli-2.63 → ryry_cli-2.64}/PKG-INFO +1 -1
- ryry_cli-2.64/ryry/constant.py +4 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/upload.py +9 -5
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.63 → ryry_cli-2.64}/setup.py +1 -1
- ryry_cli-2.63/ryry/constant.py +0 -4
- {ryry_cli-2.63 → ryry_cli-2.64}/LICENSE +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/README.md +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/__init__.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/main.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/server_func.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/store.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/task.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry/utils.py +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.63 → ryry_cli-2.64}/setup.cfg +0 -0
|
@@ -172,21 +172,25 @@ SUBDOMAIN = {
|
|
|
172
172
|
},
|
|
173
173
|
]
|
|
174
174
|
}
|
|
175
|
+
|
|
175
176
|
def getSubdomain(targetDomain):
|
|
176
177
|
if len(targetDomain) <= 0:
|
|
177
178
|
return None
|
|
178
179
|
for ip in SUBDOMAIN.keys():
|
|
179
|
-
|
|
180
|
-
if
|
|
181
|
-
|
|
180
|
+
for host_item in SUBDOMAIN[ip]:
|
|
181
|
+
if targetDomain == host_item["readpath"]:
|
|
182
|
+
if _can_connect_ftp(ip, host_item["username"], host_item["port"], host_item["password"], host_item["writepath"]):
|
|
183
|
+
return host_item
|
|
182
184
|
return None
|
|
183
185
|
|
|
184
186
|
def getFirstSupportSubdomain():
|
|
185
187
|
for ip in SUBDOMAIN.keys():
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
for host_item in SUBDOMAIN[ip]:
|
|
189
|
+
if _can_connect_ftp(ip, host_item["username"], host_item["port"], host_item["password"], host_item["writepath"]):
|
|
190
|
+
return host_item
|
|
188
191
|
return None
|
|
189
192
|
|
|
193
|
+
|
|
190
194
|
def download(url, saveDir):
|
|
191
195
|
import uuid, requests, os
|
|
192
196
|
from urlparser import urlparser
|
ryry_cli-2.63/ryry/constant.py
DELETED
|
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
|
|
File without changes
|