Make your team more productive with my hands-on training classes
Note: My training services are now on hiatus due to limited time.
There’s always more to learn in the world of Python, an ever-growing number of tools and techniques—but there’s only so much time in the workday. While your team is focusing on shipping the features that matter to your business, it’s easy for their technical skills to fall behind. Out-of-date tools, stale techniques, and missing skills can kill your velocity.
In contrast, investing in new skills and best practices can speed up your feature delivery—and keep your team happy and engaged.
My training classes build on 20 years’ experience working with Python, and years of experience explaining and teaching complex software concepts. My classes are taught online using Zoom, at least until the pandemic is over.
- I’ve taught online and in-person training classes to developers at Deloitte Digital and Cisco, and students around the world, from the US, UK, Germany, Norway, and Australia.
- I’ve spoken at EuroPython 2020, PyCon 2020, PyData NYC 2019, PyGotham 2019, PyCon 2019, PyCon 2017, and many more conferences over the years.
Interested in upgrading your teams’ skills? Get in touch.
Note: I prefer not to take money from teams working on projects for (A) the military, surveillance, or national security (B) prisons or police, (C) fossil fuel extraction or blockchain. If any of these categories apply to you, please don’t purchase this product.
5% of sales in 2024 will donated to UNRWA.
Separately, if you live in a low-income country, email me about purchasing price parity (PPP) discounts.
Available corporate training courses
Docker packaging for Python: The basics
“I thought it was really really good, and feedback from the team was that we would love to have you back again for another class.”
—Julian Berman, VP of Decisioning, Deloitte Digital
Two 4-hour sessions
Whether you want reproducible builds, the ability to build isolated environments, or you’re running software with frameworks like Kubernetes, you’re likely using Docker to package your software. Unfortunately, most online tutorials won’t help you understand how Docker works: when builds break, new users won’t know what to do or how to fix it.
This hands-on class will teach your team how Docker packaging works, not just the syntax but also the underlying model of how it works.
Syllabus
- What is this Docker thing?
- Docker as client/server application.
- Containers as isolated processes: networking, filesystem, processes, and users.
- Running containers interactively.
- Port-forwarding.
- Images as self-contained executables.
- Minimal packaging, from Python code to runnable image:
- Getting an image with Python.
- Installing dependencies.
- Installing the code.
- Setting the entrypoint.
- Networking inside and outside containers.
- Understanding port forwarding and its implications for interface binding.
- Identifying network servers with environment variables and well-known hostnames.
- Configuring your application to run in a container:
- Persistent data: logs.
- Persistent data: volumes.
- Command-line arguments.
- Sharing images:
- Pulling vs. building.
- Understanding image names: image registry, image name, tag.
- Tagging images.
- Pushing images.
- The Docker Hub and official images.
- Faster and smaller builds, the basics:
- The Docker build caching model.
- Improving caching by changing
Dockerfile
order. - Reducing image size with
.dockerignore
.
- Debugging techniques.
Interested in upgrading your teams’ skills? Get in touch.
Docker packaging for Python: Production-ready packaging
“This intensive training goes really deep into very practical topics. I learned a lot about why I need to do things in a certain way. Highly recommended if you want to take your Docker knowledge to the next level.”
–Dr. Mike Müller, CEO and Trainer at Python Academy
Three 4-hour sessions
Bad packaging can result in security and production problems, not to mention wasted time: waiting for slow builds, debugging the build system, and debugging issues caused by non-reproducible builds.
Your team wants to know best practices, so they can build and ship secure, fast images with confidence. To help you get there, I can teach your team how to build production-ready Docker images for Python applications, based on my extensive guide.
Syllabus
- Securing your images:
- Don’t run as root.
- Dropping capabilities.
- Build secrets.
- Ensure security updates, and the problem with caching.
- Build secrets:
- Insecure options (
COPY
,ARG
). - BuildKit secrets.
- Other alternatives.
- Insecure options (
- Running in CI:
- Writing smoke tests for your build.
- Warming the cache.
- Warming the cache with multiple branches.
- Avoiding
latest
.
- Identifiable images:
- Why tags aren’t useful, but not enough.
- Labels.
- Build arguments.
- Preparing for failure:
- Debugging C crashes with
faulthandler
. - A python prompt in your process with Manhole.
- Debugging C crashes with
- Operational correctness:
- Why bash is broken, and how to make it a little less so.
- Ensuring signal delivery for clean, fast shutdown.
- Health checks.
- Docker-style.
- The problem with slow queries.
- Persistence and container lifetime.
- The problem with coupling database migrations to startup.
- An alternative.
- Reproducible builds:
- Choosing a stable base image.
- Installing specific versions of Python dependencies.
- Maintaining two versions of Python dependencies, logical and pinned.
- Custom base images.
- Faster and smaller images, advanced topics:
- Don’t use Alpine.
- System packages.
- Pip packages.
- Separate dependency installation from code installation.
- Build arguments and cache invalidation.
- Faster and smaller builds, using multi-stage builds:
- The problem with build tools, and multi-stage builds as a solution.
- Setting up virtualenvs in Dockerfiles.
- Multi-stage builds for Python.
Interested in upgrading your teams’ skills? Get in touch.
Planned courses
There are other topics I am planning on teaching; I can teach them, but with increased lead time.
Processing large amounts of data, for data scientists and scientists
Scientists and data scientists need to write software, but don’t always have the same software engineering background that software developers do. To help fill those gaps, this particular class will cover the techniques you will need processing large amounts of data without having to switch to a complex distributed system.
The focus will be on managing memory usage, the critical bottleneck in computing:
- Understanding memory usage as a critical bottleneck.
- Measuring memory use.
- Python-level techniques for reducing memory usage
- Generic data techniques (compression, indexing batching).
- Applying the generic techniques to Pandas and NumPy.
Interested in upgrading your teams’ skills? Get in touch.