PyWebIO v1.8.1 Documentationor integrate it to a web framework. ## Libraries support ## Build stand-alone App PyInstaller [https://pyinstaller.readthedocs.io/en/stable/] bundles a Python application and all its dependencies into Python interpreter or any modules. You can use PyInstaller to packages PyWebIO application into a stand-alone executable or folder: 1. Create a pyinstaller spec (specification) file: pyi-makespecpywebio.utils import pyinstaller_datas a = Analysis( ... datas=pyinstaller_datas(), ... 3. Build the application by passing the spec file to the pyinstaller command: pyinstaller app.spec If you 0 码力 | 160 页 | 7.47 MB | 2 年前3
PyWebIO v1.8.2 使用手册8.1 构建 stand-alone App PyInstaller 用于将一个 Python 应用及其依赖打包到文件夹或可执行文件中,用户可以在不安装 Python 解释器以及任何模块的情况下运行打包后的应用程序。 可以使用 PyInstaller 来将 PyWebIO 应用打包成一个单独的可执行文件或文件夹: 1. 创建 pyinstaller spec (specification) 文件: import pyinstaller_datas a = Analysis( ... datas=pyinstaller_datas(), ... 3. 使用 spec 文件来构建可执行文件: pyinstaller app.spec 如果你希望生成一个单独的可执行文件而不是文件夹,你需要在第一步时传入 --onefile 选项。 更多 PyInstaller 用法请见: 用法请见: https://pyinstaller.readthedocs.io/en/stable/spec-files.html #### 4.8.2 数据可视化 PyWebIO 支持使用第三方库进行数据可视化 ## Bokeh Bokeh 是一个支持创建实时交互的数据可视化库。 在 PyWebIO 会话中调用 bokeh.io.output_notebook(notebook_type='pywebio')0 码力 | 135 页 | 1.75 MB | 2 年前3
PyWebIO v1.8.1 使用手册0 码力 | 158 页 | 7.48 MB | 2 年前3
PyArmor Documentation v8.5.10Packing Scripts Automatically 4.3.2. Packing obfuscated scripts manually 4.3.3. Packing with PyInstaller Bundle 4.3.4. Segment fault in Apple M1 4.4. Insight Into RFT Mode 4.4.1. Enable RFT scripts Pyarmor need PyInstaller to pack the obfuscated scripts, so first make sure PyInstaller has been installed. If not, simple install it by this command: $ pip install pyinstaller ###### 1.3.9.1. Packing New in version 8.5.8. If the plain script has been packed by one spec file. For example: $ pyinstaller foo.spec $ dist/foo Then pass this specfile to --pack to let Pyarmor pack the obfuscated scripts0 码力 | 193 页 | 154.05 KB | 1 年前3
PyArmor Documentation v6.2.7Scripts Use command pack to pack obfuscated scripts into the bundle. First install PyInstaller: pip install pyinstaller Set the current directory to the location of your program myscript.py and execute: obfuscate myscript.py • Execute pyinstaller myscript.py to create myscript.spec • Update myscript.spec, replace original scripts with obfuscated ones • Execute pyinstaller myscript.spec to bundle the obfuscated lic of obfuscated scripts to the final executable file. By option --runtime-hook of PyInstaller [https://www.pyinstaller.org/], the specified script copy_licesen.py will be executed before any obfuscated0 码力 | 159 页 | 123.91 KB | 1 年前3
PyArmor Documentation v6.3.1Scripts Use command pack to pack obfuscated scripts into the bundle. First install PyInstaller: pip install pyinstaller Set the current directory to the location of your program myscript.py and execute: obfuscate myscript.py • Execute pyinstaller myscript.py to create myscript.spec • Update myscript.spec, replace original scripts with obfuscated ones • Execute pyinstaller myscript.spec to bundle the obfuscated lic of obfuscated scripts to the final executable file. By option --runtime-hook of PyInstaller [https://www.pyinstaller.org/], the specified script copy_license.py will be executed before any obfuscated0 码力 | 161 页 | 124.89 KB | 1 年前3
PyArmor Documentation v5.9.5Scripts Use command pack to pack obfuscated scripts into the bundle. First install PyInstaller: pip install pyinstaller Set the current directory to the location of your program myscript.py and execute: obfuscate myscript.py • Execute pyinstaller myscript.py to create myscript.spec • Update myscript.spec, replace original scripts with obfuscated ones • Execute pyinstaller myscript.spec to bundle the obfuscated the license.lic of obfuscated scripts to the final executable file. By option --runtime-hook of PyInstaller, the specified script copy_licesen.py will be executed before any obfuscated scripts are imported0 码力 | 131 页 | 428.65 KB | 1 年前3
PyArmor Documentation v6.4.4Scripts Use command pack to pack obfuscated scripts into the bundle. First install PyInstaller: pip install pyinstaller Set the current directory to the location of your program myscript.py and execute: obfuscate myscript.py • Execute pyinstaller myscript.py to create myscript.spec • Update myscript.spec, replace original scripts with obfuscated ones • Execute pyinstaller myscript.spec to bundle the obfuscated the license.lic of obfuscated scripts to the final executable file. By option --runtime-hook of PyInstaller, the specified script copy_license.py will be executed before any obfuscated scripts are imported0 码力 | 167 页 | 510.99 KB | 1 年前3
PyArmor Documentation v6.2.8Scripts Use command pack to pack obfuscated scripts into the bundle. First install PyInstaller: pip install pyinstaller Set the current directory to the location of your program myscript.py and execute: obfuscate myscript.py • Execute pyinstaller myscript.py to create myscript.spec • Update myscript.spec, replace original scripts with obfuscated ones • Execute pyinstaller myscript.spec to bundle the obfuscated the license.lic of obfuscated scripts to the final executable file. By option --runtime-hook of PyInstaller, the specified script copy_licesen.py will be executed before any obfuscated scripts are imported0 码力 | 153 页 | 483.38 KB | 1 年前3
PyArmor Documentation v5.5.7Script - Special Handling of Entry Script - How To Pack Obfuscated Scripts - Work with PyInstaller - Work with py2exe - Work with cx_Freeze 5 - Using Project - Managing Obfuscated Scripts Use command pack to pack obfuscated scripts into the bundle. First install PyInstaller: pip install pyinstaller Set the current directory to the location of your program myscript.py and execute: obfuscate myscript.py • Execute pyinstaller myscript.py to create myscript.spec • Update myscript.spec, replace original scripts with obfuscated ones • Execute pyinstaller myscript.spec to bundle the obfuscated0 码力 | 104 页 | 85.70 KB | 1 年前3
共 221 条
- 1
- 2
- 3
- 4
- 5
- 6
- 23













