pyarmor 8.5.2__zip → 8.5.3__zip
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.
- {pyarmor-8.5.2 → pyarmor-8.5.3}/PKG-INFO +1 -1
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/__init__.py +1 -1
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/__main__.py +4 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/context.py +16 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/default.cfg +19 -2
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/config.py +1 -1
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor.egg-info/PKG-INFO +1 -1
- pyarmor-8.5.3/pyarmor.egg-info/requires.txt +1 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/setup.py +1 -1
- pyarmor-8.5.2/pyarmor.egg-info/requires.txt +0 -1
- {pyarmor-8.5.2 → pyarmor-8.5.3}/MANIFEST.in +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/README.md +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/README.rst +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/__init__.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/benchmark.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/build_meta.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/bootstrap.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/bug.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/config.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/core.data.1 +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/core.data.2 +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/core.data.3 +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/docker.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/generate.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/hdinfo.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/merge.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/mixer.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/plugin.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/public_capsule.zip +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/register.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/repack.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/resource.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cli/shell.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/cobuilder.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/README-ZH.md +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/README.md +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/build-for-exe.bat +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/build-for-freeze.bat +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/build-with-project.bat +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/build-with-project.sh +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/cx_Freeze/hello.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/cx_Freeze/queens.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/cx_Freeze/setup.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/helloworld/foo.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/obfuscate-app.bat +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/obfuscate-app.sh +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/obfuscate-pkg.bat +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/obfuscate-pkg.sh +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pack-obfuscated-scripts.bat +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pack-obfuscated-scripts.sh +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/py2exe/hello.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/py2exe/queens.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/py2exe/setup.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Arithmetic.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Calls.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/CommandLine.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Constructs.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Dict.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Exceptions.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Imports.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Instances.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Lists.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Lookups.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/NewInstances.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Numbers.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Setup.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Strings.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/Tuples.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/With.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/clockres.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/package/__init__.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/package/submodule.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/pybench.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/pybench/systimes.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/simple/queens.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/testmod/hello.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/testmod/queens.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/testpkg/main.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/testpkg/mypkg/__init__.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/examples/testpkg/mypkg/foo.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/__init__.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/build_data_module.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/buildext.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/get_bind_key.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/get_license_info.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/get_platform_name.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/merge.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/repack.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/helper/superuntime.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/license.tri +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/packer.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/platforms/darwin/x86_64/_pytransform.dylib +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/platforms/linux/x86/_pytransform.so +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/platforms/linux/x86_64/_pytransform.so +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/platforms/windows/x86/_pytransform.dll +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/platforms/windows/x86_64/_pytransform.dll +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/plugins/README.md +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/plugins/check_ntp_time.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/polyfills/__init__.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/polyfills/argparse.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/product.key +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/project.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/protect_code.pt +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/protect_code2.pt +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/public.key +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/public_capsule.zip +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/pyarmor-deprecated.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/pyarmor-webui.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/pyarmor.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/pyimcore.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/pyshield.key +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/pyshield.lic +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/pytransform.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/reform.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/register.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/sppmode.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor/utils.py +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor.egg-info/SOURCES.txt +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor.egg-info/dependency_links.txt +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor.egg-info/entry_points.txt +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/pyarmor.egg-info/top_level.txt +0 -0
- {pyarmor-8.5.2 → pyarmor-8.5.3}/setup.cfg +0 -0
|
@@ -107,6 +107,10 @@ def format_gen_args(ctx, args):
|
|
|
107
107
|
options['no_runtime'] = True
|
|
108
108
|
options['use_runtime'] = args.use_runtime
|
|
109
109
|
|
|
110
|
+
if (options.get('restrict_module', 0) == 2
|
|
111
|
+
and ctx.cfg['builder'].get('private_module_as_restrict', 0)):
|
|
112
|
+
options['restrict_module'] = 3
|
|
113
|
+
|
|
110
114
|
if options.get('assert_call') or options.get('assert_import'):
|
|
111
115
|
if options.get('restrict_module', 0) < 2:
|
|
112
116
|
logger.debug('implicitly set restrict_module = 2')
|
|
@@ -701,3 +701,19 @@ class Context(object):
|
|
|
701
701
|
port = http_proxy[j+1:]
|
|
702
702
|
url = b'http://pyarmor.dashingsoft.com'
|
|
703
703
|
return b'\x00'.join([host, port, url, header, b'\x00'])
|
|
704
|
+
|
|
705
|
+
def request_token(self, url, timeout=6.0):
|
|
706
|
+
from urllib.request import urlopen
|
|
707
|
+
|
|
708
|
+
def get_response(host):
|
|
709
|
+
try:
|
|
710
|
+
from ssl import _create_unverified_context
|
|
711
|
+
context = _create_unverified_context()
|
|
712
|
+
req = 'https://%s%s' % (host, url)
|
|
713
|
+
except Exception:
|
|
714
|
+
context = None
|
|
715
|
+
req = 'http://%s%s' % (host, url)
|
|
716
|
+
return urlopen(req, None, timeout, context=context)
|
|
717
|
+
|
|
718
|
+
with get_response('pyarmor.dashingsoft.com') as res:
|
|
719
|
+
return res.read()
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
;; Pyarmor version
|
|
4
4
|
major = 8
|
|
5
5
|
minor = 5
|
|
6
|
-
patch =
|
|
6
|
+
patch = 3
|
|
7
7
|
|
|
8
8
|
;; Compatible core version
|
|
9
|
-
cli.core = 6.5.
|
|
9
|
+
cli.core = 6.5.1
|
|
10
10
|
|
|
11
11
|
;; Deprecated since Pyarmor 8.2.5
|
|
12
12
|
; cli.runtime = 3.2.5
|
|
@@ -192,6 +192,23 @@ clear_frame_locals = 0
|
|
|
192
192
|
;; Whether encrypt name in statement import
|
|
193
193
|
rft_mix_import_name = 0
|
|
194
194
|
|
|
195
|
+
;;
|
|
196
|
+
;; Compatiable options
|
|
197
|
+
;;
|
|
198
|
+
|
|
199
|
+
;; Since pyarmor 8.5.3, pyarmor.core 6.5.1
|
|
200
|
+
;;
|
|
201
|
+
;; If private_module_same_as_restrict is set to 1, --private is same as --restrict, it's default behaviours in previous version. Both --private and --restrict don't allow plain scripts to import the obfsucated modules
|
|
202
|
+
;;
|
|
203
|
+
;; But the right way should be
|
|
204
|
+
;;
|
|
205
|
+
;; --private allow
|
|
206
|
+
;; --restrict not allow
|
|
207
|
+
;;
|
|
208
|
+
;; When need this behaviours, set private_module_same_as_restrict is to 0
|
|
209
|
+
;;
|
|
210
|
+
private_module_same_as_restrict = 0
|
|
211
|
+
|
|
195
212
|
[runtime]
|
|
196
213
|
|
|
197
214
|
;; Generate extension for all Python3.7+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pyarmor.cli.core~=6.5.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pyarmor.cli.core~=6.5.0
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|