Having to write your own Python extensions in C can be caused by different circumstances. You might need to use a library, which is available only from the C level, for example OpenSSL bignum. Sometimes, performance requirements for a certain fragment of the codebase make an implementation in C the only possible solution. Other times you need to use a system call which is unavailable from Python and writing C code is the only way to get to it.
In this training we will show you how to write Python extensions, how to easily call functions from libraries without Python interfaces and how to connect code written in high level languages (like Python) with bits of low level code in C. We will take a closer look at Python’s garbage collection system and the ways in which our code can cooperate with it. We will describe the most common problems and how to solve them.
Our trainers are seasoned Python developers, with many years of experience in creating applications in Python, including writing custom C extensions.
- Python interfaces for C
- Defining functions
- Fetching and returning data
- Cooperation with the garbage collector
- Defining classes and exceptions
- Working with the GIL
- the _setup.py_file, defining extensions
- Linking dynamic libraries
- Writing portable code
- Other methods of mixing Python and C
- the ctypes library
- Loading shared libraries
- Calling functions, passing arguments
- Writing programs in Pyrex
- Embedding the Python interpreter in C programs
During our courses we use the latest Python version (branch 2). In case of on-demand courses, it’s possible to use any version required by the Client, according to his needs.
- the ctypes library
Audience and prerequisites
Good knowledge of Python, solid knowledge of C, experience in compiling software on Linux.
Course participants receive completion certificates signed by ALX.
There are currently no entries
Enter your e-mail address and we will notify you about future dates
- Online (English) – your home, office or wherever you want
- Warsaw (English) – Jasna 14/16A
- any other location (London, UK, EU) on request
Open training groups are no larger than 8 participants.
Private training can be conducted for groups of any size, according to the Customer's preference. To assure high quality and good learning environment, the group size should not exceed 12.
On-demand training costs and registration
The prices provided in the general tables cover the cost of an open (public) training for one person.
In the case of an on-demand training at the Customer's premises, you are required to provide the necessary facilities (room, computers, projector) and we will send an instructor to run the training. The price for a session is calculated for the whole group.
The cost does not change significantly along with the number of participants. There is no minimum number of participants but we recommend no more than 10-12 people because the training becomes much less effective with a bigger group..
The cost of an on-demand training consists of:
- the base training cost, plus
- travel and accommodation charges for the instructor
The base price of an on-demand training varies, but it is usually around the price of an open training for 3-5 persons (regardless of your group size).
The typical travel and accommodation price for the EU/Schengen zone is under 1250 GBP (1500 EUR) for a 5 day session. We do our best to keep it as low as possible in your location.
The payment can be in GBP or EUR, whichever you prefer. The quotation we will send you with the exact amount in your currency will be valid for 3 months, regardless of any changes in the exchange rate.
For more information, or to register to a group, please contact us at email@example.com and tell us know:
- the course(s) that you are interested in,
- your location,
- your preferred dates,
- the number of people you wish to train,
And any other questions that you may have.
We can also customise the training program of any of our trainings (or create a new one) according to your needs – whether you want to focus on particular solution used in your company, include material concerning a technology we do not usually cover, or create a tailor-made training.
For individual persons for whom all scheduled open training is inconvenient, we offer individual consultation. Virtually all of our training courses are available as such.
During individual consultations, while it can be a direct equivalent of a group training in terms of subject covered, we can also provide more than that – we can solve problems, help choose appropriate solutions and provide advice on the most effective use of chosen tools.
The price includes:
- course materials,
- snacks, coffee, tea and soft drinks,
- course completion certificate,
- one-time consultation with the instructor after course completion.