Python guides
Every published Python guide, newest first, with practical examples you can copy into your own project.
3,965 guides across 14 topics
Topics
Popular Python guides
Most readLatest Python guides
Page 5 of 179Adding a Logo to a QR Code in Python: Error Correction and Pillow
Add a logo to a Python-generated QR code while keeping it scannable. Learn which error correction level to choose and how to paste a transparent logo with Pillow.
Python QR Code: Generate with Custom Size and Colors
python qrcode generate qr codes with custom size and colors: Learn how to generate QR codes in Python with custom size and colors using the qrcode library. Control dim...
python-pptx Charts Layouts and Formatting
Add charts to PowerPoint slides with python-pptx, control their position and size, and format titles, axes, series, and colors for a polished result.
python-pptx: Adding Text, Images, and Tables to Slides
Use python-pptx to generate PowerPoint slides from Python: add slide layouts, text boxes, images, tables, and control slide dimensions.
Create PowerPoint Presentations with Python and python-pptx
Learn how to create PowerPoint presentations programmatically with python-pptx: add slides, text, shapes, images, and tables, then save editable .pptx files.
Python-Docx: Headers, Footers, and Margins
Learn to control headers, footers, and margins in .docx files with python-docx, including section-specific layouts and different first-page settings.
python-docx Images, Fonts, and Formatting: A Practical Guide
Learn to insert images, set fonts, and control paragraph formatting in Word documents using python-docx. This practical guide covers core APIs, common pitfalls, styles, and compatibility considerations.
Working with Paragraphs, Headings, and Tables in python-docx
Use python-docx to add and style paragraphs, headings, and tables in Word documents. Includes practical code examples for cells, merging, and common pitfalls.
python-docx: Create, Read, and Edit Word Documents
Learn how to create, read, and edit Word documents programmatically with python-docx. Covers paragraphs, runs, styles, tables, images, headers, and footers.
Python ReportLab Multipage PDF and Custom Fonts
Generate multipage PDFs with custom fonts in Python ReportLab by registering TTF fonts, using Platypus flowables, controlling page breaks, and handling Unicode.