Video description
In this Learning Cython training course, expert author Caleb Hattingh will teach you how to create your own simple extension modules in Cython, analyze performance of Cython code, and package your Cython extension module so it can be shared with others. This course is designed for users that already have a basic working knowledge of Python.
You will start by learning the basics of Cython, such as how to compile Cython, add tests, and add types. From there, Caleb will teach you how to explore Cython with the Jupyter Notebook. This video tutorial will also teach you about the Cython language, such as adding types to code, exceptions and docstrings, and loops and memoryviews. You will also cover extension types, wrapping C and C++ libraries, Cython compiler directives, and concurrency. Finally, Caleb will leave you with some tips and tricks.
Once you have completed this computer based training course, you will have learned how to create your own simple extension modules in Cython, analyze the performance of Cython code, and how to package your own Cython extension module so that it can be shared with others.
Table of contents
-
Introduction
- Introduction 00:02:15
- About The Author 00:02:11
- The Optimization Process 00:04:25
-
Setup And Workflow
- Python Setup 00:02:33
- What Does Cython Do? 00:05:07
-
First Steps
- Using Cython 00:04:46
- Compiling Cython 00:04:24
- Adding Tests - Part 1 00:04:41
- Adding Tests - Part 2 00:04:42
- Profiling 00:05:10
- Annotation 00:02:52
- Adding Types - Part 1 00:04:16
- Adding Types - Part 2 00:05:03
-
Exploring Cython With The Jupyter Notebook
- Exploring Cython In The Notebook 00:02:46
- Tour Of The Notebook 00:03:58
- Timing Magic And Markdown 00:04:21
- Cython Case Study With Color 00:06:26
-
The Cython Language
- Fundamentals Of Types 00:04:27
- C Types In Detail 00:05:34
- Adding Types To Code 00:04:26
- Adding Types To Functions 00:05:09
- Exceptions And Docstrings 00:04:33
- Type Declaration For Built-In Python Types 00:04:12
- Type Declaration For Native Structured Types 00:05:48
- Python Native Types Vs Cython Native Types 00:04:10
- Loops And Memoryviews - Part 1 00:02:57
- Loops And Memoryviews - Part 2 00:03:46
- Loops And Memoryviews - Part 3 00:04:14
- Introduction To Strings In Cython 00:03:05
- String Examples 00:03:54
- Pointers In Cython 00:03:22
- Pointers In Cython - Examples 00:03:19
- Type-Casting 00:05:32
- Fused Types 00:04:44
-
Extension Types
- Extension Types 00:04:53
- Attributes And Members 00:05:38
- Initialization And Finalization 00:04:21
- Initialization And Finalization - Case Study 00:06:16
- Methods Of Extension Types 00:05:22
- OOP Features - Inheritance And Polymorphism 00:04:07
- OOP Features By Example 00:04:40
- Be Careful Of Multiple Constructor Calls 00:02:04
- Special Methods 00:03:03
- Operator Overloading 00:04:06
- Operator Overloading - Case Studies 00:06:49
- Properties And Iterators 00:02:16
-
Wrapping C And C++ Libraries
- Working With C And C++ Libraries 00:06:18
- .pxd Interface Files - Part 1 00:04:52
- .pxd Interface Files - Part 2 00:03:45
- .pxd Example - Mac 00:11:16
- .pxd Example - Windows 00:11:09
- Pre-Made .pxd Files 00:05:22
- Standard .pxds Examples 00:03:43
- Cython, C++ And You 00:04:58
- C++ By Example 00:05:37
-
Cython Compiler Directives
- Cython Switches And Directives 00:03:24
- How To Set Compiler Directives 00:03:04
- A Tour Of Popular Directives 00:04:21
-
Concurrency
- Concurrency 00:06:41
- Cython Parallel 00:03:09
- Cython Parallel - Examples 00:05:12
- Examples Using Threads 00:05:51
-
Modules And Packages
- Packaging For Fun And Profit 00:05:42
- Building Cython Extensions 00:03:40
- Making Wheels 00:02:31
- Packages With .pxd Files 00:03:30
- Packages Wrapping C Code - Easy Way 00:05:13
- Packages Wrapping C Code - Hard Way 00:02:46
- Packages Wrapping C Libraries 00:04:51
-
Tips, Tricks, And Extras
- Making Executables 00:06:36
- Case Study - Pandas Datetimes 00:07:14
- pyximport 00:02:07
- Faster Object Creation 00:02:29
-
Conclusion
- Conclusion 00:02:20
Product information
- Title: Learning Cython
- Author(s):
- Release date: March 2016
- Publisher(s): Infinite Skills
- ISBN: 9781771375610
You might also like
book
Cython
Build software that combines Python’s expressivity with the performance and control of C (and C++). It’s …
book
High Performance Python, 2nd Edition
Your Python code may run correctly, but you need it to run faster. Updated for Python …
book
Learning Algorithms
When it comes to writing efficient code, every software professional needs to have an effective working …
book
Using Asyncio in Python
If you’re among the Python developers put off by asyncio’s complexity, it’s time to take another …