Source Code Dython 2024 v6.2.2.19 build 20240929.020519
支持以多进程、多线程模式,快速编译指定源代码文件。
This applet is suitable for IT Programmer by comparing source code backup (or setting conditions) to some .PXD .PY .PYW .PYX files in the specified directory quickly convert and compile into the .PYD file based on C programming language .
Support to generate .PYD files and move them to the corresponding source code directory; .PY source code has some efficiency improvements after Cython, it's not obvious but it can be felt.
Cython documentation, the quick start tutorial is here.
Cython will first convert .PXD .PY .PYW .PYX file into .C intermediate code, then compiled into the .PYD module file; therefore, decompiling .PYD file can only get .C intermediate code (the original source code could not be obtained).
Depends on the version of Python interpreter used when compiling, automatic correct *.C intermediate code document 2.7 3.x language level; However, must write the setup.py compilation configuration file in strict accordance with the specified code form.
If there is no response for a long time after the *.C file is generated, please check the installed Visual Studio Build Tools for C/C++ version (compatible with 2017 and earlier versions) or configuration is correct or not.
If the Microsoft Visual C/C++ compiler is not installed or the configuration is incorrect when compiling, the prompt (including link address) dialog for installing the Visual C/C++ compiler will pop up.
If you use external or custom modules, please add the corresponding path to Console Config dialog PATH variable box.
If there is a problem with the source code during transcoding, the source code error summary prompt dialog will pop up.
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # __version__ = "0.1.7.1 build 20200301.060127" # With Full Text Replace applet to batch modify, check the file version checkbox will automatically update from distutils.core import setup from Cython.Build import cythonize #Below code layout forms must be strictly followed modules = [ "base.py", "text.py"] #Usually only modify the name of the module to be compiled here,__init__.py does not support compilation setup( ext_modules=cythonize(modules), )
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # __version__ = "0.1.7.1 build 20200301.060127" # With Full Text Replace applet to batch modify, check the file version checkbox will automatically update from distutils.core import setup from Cython.Build import cythonize #Below code layout forms must be strictly followed modules = [ "base.py", "text.py"] #Usually only modify the name of the module to be compiled here,__init__.py does not support compilation setup( ext_modules=cythonize(modules), )
Usage Scene | File Format | Usage Scene | File Format |
---|---|---|---|
Python Programming Language | .py .pyw | Cython Programming Language | .pxd .pyx |
What specific formats are supported, subject to the release version.