PyArmor Documentation v6.2.7
installed in the runtime machine Generating License For Obfuscated Scripts Use command licenses to generate new license.lic for obfuscated scripts. By default there is dist/pytransform/license.lic generated generated by command obfuscate. It allows obfuscated scripts run in any machine and never expired. Generate an expired license for obfuscated script: pyarmor licenses --expired 2019-01-01 product-001 PyArmor 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware information: pyarmor hdinfo Then generate new license bind to harddisk serial number0 码力 | 159 页 | 123.91 KB | 1 年前3PyArmor Documentation v6.3.1
installed in the runtime machine Generating License For Obfuscated Scripts Use command licenses to generate new license.lic for obfuscated scripts. By default there is dist/pytransform/license.lic generated generated by command obfuscate. It allows obfuscated scripts run in any machine and never expired. Generate an expired license for obfuscated script: pyarmor licenses --expired 2019-01-01 product-001 PyArmor 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware information: pyarmor hdinfo Then generate new license bind to harddisk serial number0 码力 | 161 页 | 124.89 KB | 1 年前3FISCO BCOS 1.3 中文文档
cripts/ #bash generate_chain_cert.sh -o 根证书生成的目录 bash generate_chain_cert.sh -o /mydata 配置机构证书 生成机构(agency)证书,假设生成机构test_agency cd /mydata/FISCO-BCOS/tools/scripts/ #bash generate_agency_cert.sh -c -c 生成机构证书所需的根证书所在目录 -o 机构证书 生成目录 -n 机构名 bash generate_agency_cert.sh -c /mydata -o /mydata -n test_agency 配置SDK证书 区块链环境搭建完成之后Web3SDK需要连接节点时需要SDK证书文件,SDK 证书需要在机构证书生成之后才能生成,我们为上面生成的机构test_agency生 成SDK证书 /mydata/FISCO-BCOS/tools/scripts/ # bash generate_sdk_cert.sh -d 机构证书的目录 bash generate_sdk_cert.sh -d /mydata/test_agency/ 生成过程中需要输入几次密码,测试环境的默认输入123456即可. bash generate_sdk_cert.sh -d /mydata/test_agency/0 码力 | 491 页 | 5.72 MB | 1 年前3PyArmor Documentation v8.5.10
script foo.py: $ pyarmor gen foo.py The command gen could be replaced with g or generate: $ pyarmor g foo.py $ pyarmor generate foo.py This command generates an obfuscated script dist/foo.py, which is a the whole path dist2 to another machine. But it’s not convenience, the better way is using -i to generate all the required files inside package path: $ pyarmor gen -O dist3 -r -i src/mypkg Check the output: Expiring obfuscated scripts It’s easy to set expire date for obfuscated scripts by -e. For example, generate obfuscated script with the expire date to 30 days: $ pyarmor gen -O dist4 -e 30 foo.py Run the0 码力 | 193 页 | 154.05 KB | 1 年前3PyArmor Documentation v5.5.7
refer to The Security of PyArmor Generating License For Obfuscated Scripts Use command licenses to generate new license.lic for obfuscated scripts. By default there is dist/license.lic generated by command command obfuscate. It allows obfuscated scripts run in any machine and never expired. Generate an expired license for obfuscated script: pyarmor licenses --expired 2019-01-01 code-001 PyArmor generates 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware information: pyarmor hdinfo Then generate new license bind to harddisk serial number0 码力 | 104 页 | 85.70 KB | 1 年前3PyArmor Documentation v5.6.0
refer to The Security of PyArmor Generating License For Obfuscated Scripts Use command licenses to generate new license.lic for obfuscated scripts. By default there is dist/license.lic generated by command command obfuscate. It allows obfuscated scripts run in any machine and never expired. Generate an expired license for obfuscated script: pyarmor licenses --expired 2019-01-01 code-001 PyArmor generates 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware information: pyarmor hdinfo Then generate new license bind to harddisk serial number0 码力 | 103 页 | 85.82 KB | 1 年前3PyArmor Documentation v5.6.5
refer to The Security of PyArmor Generating License For Obfuscated Scripts Use command licenses to generate new license.lic for obfuscated scripts. By default there is dist/license.lic generated by command command obfuscate. It allows obfuscated scripts run in any machine and never expired. Generate an expired license for obfuscated script: pyarmor licenses --expired 2019-01-01 code-001 PyArmor generates 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware information: pyarmor hdinfo Then generate new license bind to harddisk serial number0 码力 | 103 页 | 86.97 KB | 1 年前3Mypy 1.10.0+dev Documentation
hooks Useful tools Automatic stub generation (stubgen) Specifying what to stub Specifying how to generate stubs Additional flags Automatic stub testing (stubtest) What stubtest does and does not do Example (or erased) at runtime. They are basically treated as comments, and thus the above code does not generate a runtime error, even though s gets an int value when the program is run, while the declared type static type checking, as s has type Any show_heading(1) # OK (runtime error only; mypy won't generate an error) You should give a statically typed function an explicit None return type even if it0 码力 | 318 页 | 270.84 KB | 1 年前3Mypy 1.8.0 Documentation
hooks Useful tools Automatic stub generation (stubgen) Specifying what to stub Specifying how to generate stubs Additional flags Automatic stub testing (stubtest) What stubtest does and does not do Example (or erased) at runtime. They are basically treated as comments, and thus the above code does not generate a runtime error, even though s gets an int value when the program is run, while the declared type static type checking, as s has type Any show_heading(1) # OK (runtime error only; mypy won't generate an error) You should give a statically typed function an explicit None return type even if it0 码力 | 318 页 | 271.55 KB | 1 年前3CakePHP Cookbook Documentation 5.x
controller delegates response creation to the View to generate the output resulting from the model data. 8. The view uses Helpers and Cells to generate the response body and headers. 9. The response is sent that is inserted inside the application’s layout. While we’ll be creating HTML here, Views can also generate JSON, CSV or even binary files like PDFs. A layout is presentation code that is wrapped around about Helpers in their chapter, but what’s important to note here is that the link() method will generate an HTML link with the given link text (the first parameter) and URL (the second parameter). When0 码力 | 1080 页 | 939.39 KB | 1 年前3
共 604 条
- 1
- 2
- 3
- 4
- 5
- 6
- 61