Source Code Dython Logo Source Code Dython 2023 v5.0.8.3 build 20230612.010735

 

支持以多进程、多线程模式,快速编译指定源代码文件。

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.

Related Application


Source Code PyInstaller      Source Code Cython

Digital C/C++ IDE     Digital Python IDE

Basic Usage


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.

Python3.x

#!/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),
)
			

Python2.7

#!/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),
)
			

Fit Format

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.