Training Python Academy

Training goals

code: PA-FCCC

The Python programming language has been used successfully in a large number of application domains. Even performance critical applications, such as scientific computation frameworks or text processing applications, have been realized using Python in order to benefit from short development cycles and highly maintainable code.

However, the interpreted language also has its weaknesses. Tight algorithms in numerical computations and character processing often suffer from the overhead of object operations in arithmetic expressions or memory copies in string slicing. In high performance applications, the optimizations that can be performed at the language level may not be sufficient.

This is where the Cython programming language shows its strength. Cython is a general purpose programming language that forms a best-of-both-worlds cross between the Python language and the ubiquitous datatypes of the C/C++ language. It comes with an optimising compiler that translates Python code into C code for Python extension modules, and tightly adapts the generated code to the available static type information.

Cython code can be written as high-level Python code and manually optimised in well selected hot-spots by statically declaring data types or calling directly into external code written in C, C++ or compatible languages. This makes the entire range from simple, expressive Python code down to highly optimised, low-level C code available for programming in a single language.

The objective of this course is to get to know the Cython language, and to learn how to use it to speed up Python code by orders of magnitude. You will also learn how to wrap external C libraries to efficiently and comfortably use them from Python.

Conspect Show list

  1. Using pyximport to quickly (re-)build extension modules.
  2. Using cython.inline() to compile code at runtime.
  3. Building extension modules with distutils.
  4. Fast access to Python's builtin types.
  5. Fast looping over Python iterables and C types.
  6. String processing.
  7. Fast arithmetic.
  8. Incrementally optimizing Cython code.
  9. Multi-threading outsife od the GIL(Global Interpreter Lock).
  10. Calling into external C libraries.
  11. Building against C libraries.
  12. Writing Python wrapper APIs.
  13. Calling C functions across extension module boundaries.
Download conspect training as PDF

Additional information

Prerequisites
  • Knowledge of Python and C language.
Difficulty level
Duration 1 day
Certificate

The participants will obtain certificates signed by Python Academy.

Trainer

Authorized Python Academy Trainer.

Other training Python Academy | On Demand

Training thematically related

Programming

Python

Contact form

Please fill form below to obtain more info about this training.







* Fields marked with (*) are required !!!

Information on data processing by Compendium - Centrum Edukacyjne Spółka z o.o.

TRAINING PRICE FROM 400 EUR

  • In order to propose a date for this training, please contact the Sales Department

Upcoming Python Academy training

Training schedule
Python Academy