cython

The most widely used Python to C compiler

Github星跟蹤圖

Welcome to Cython!

Cython is a language that makes writing C extensions for
Python as easy as Python itself. Cython is based on
Pyrex, but supports more cutting edge functionality and
optimizations.

The Cython language is very close to the Python language, but Cython
additionally supports calling C functions and declaring C types on variables
and class attributes. This allows the compiler to generate very efficient C
code from Cython code.

This makes Cython the ideal language for wrapping external C libraries, and
for fast C modules that speed up the execution of Python code.

You can support the Cython project via
Github Sponsors <https://github.com/users/scoder/sponsorship>_ or
Tidelift <https://tidelift.com/subscription/pkg/pypi-cython>_.

Installation:

If you already have a C compiler, just do::

pip install Cython

otherwise, see the installation page <http://docs.cython.org/en/latest/src/quickstart/install.html>_.

License:

The original Pyrex program was licensed "free of restrictions" (see below).
Cython itself is licensed under the permissive Apache License.

See LICENSE.txt <https://github.com/cython/cython/blob/master/LICENSE.txt>_.

Contributing:

Want to contribute to the Cython project?
Here is some help to get you started <https://github.com/cython/cython/blob/master/docs/CONTRIBUTING.rst>_.

We are currently building the next great Cython edition:
Cython 3.0 <https://github.com/cython/cython/milestone/58>_.
You can help us make the life of Python 3.x users easier.

Get the full source history:

Note that Cython used to ship the full version control repository in its source
distribution, but no longer does so due to space constraints. To get the
full source history from a downloaded source archive, make sure you have git
installed, then step into the base directory of the Cython source distribution
and type::

make repo

The following is from Pyrex:

This is a development version of Pyrex, a language
for writing Python extension modules.

For more info, see:

  • Doc/About.html for a description of the language
  • INSTALL.txt for installation instructions
  • USAGE.txt for usage instructions
  • Demos for usage examples

Comments, suggestions, bug reports, etc. are
welcome!

Copyright stuff: Pyrex is free of restrictions. You
may use, redistribute, modify and distribute modified
versions.

The latest version of Pyrex can be found here <http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/>_., Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand

A citizen of NewZealandCorp, a wholly-owned subsidiary of USA Inc.

主要指標

概覽
名稱與所有者cython/cython
主編程語言Python
編程語言Python (語言數: 10)
平台
許可證Apache License 2.0
所有者活动
創建於2010-11-21 15:44:20
推送於2025-11-11 16:00:01
最后一次提交2025-11-11 16:00:01
發布數227
最新版本名稱3.2.0 (發布於 2025-11-05 18:00:23)
第一版名稱0.9.6.14 (發布於 2012-09-30 12:43:02)
用户参与
星數10.4k
關注者數232
派生數1.6k
提交數19.7k
已啟用問題?
問題數4076
打開的問題數1304
拉請求數2609
打開的拉請求數170
關閉的拉請求數433
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?