Pages

Topics

Tools

↑↓navigate↵openescclose

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

Latest Python guides

A QR code with a centered logo, surrounded by error correction modules, illustrating the balance between logo placement and scannability.
Python

Adding 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.

QR codePythonPillowerror correction
Python QR code generation with custom size and color settings displayed on a developer workstation.
Python

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...

qrcodepythonpillowimage-generation
Diagram showing a PowerPoint slide with a bar chart and formatting controls in python-pptx
Python

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-pptxPowerPoint chartschart formattingslide layout
A slide with a text box, an image, and a table being assembled from code, representing python-pptx automation.
Python

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.

python-pptxPowerPoint automationpresentation generationslide creation
Python code generating a PowerPoint slide with text and shapes, illustrating automated presentation creation
Python

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-pptxPowerPoint automationslide generationoffice automation
Python code editing a Word document with headers, footers, and margin settings
Python

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-docxWord documentsdocument generationheaders and footers
A python-docx generated Word document showing an image, styled text, and formatted paragraphs.
Python

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.

python-docxdocxword-processingimages
Illustration of a Python script generating a Word document with paragraphs, headings, and a table.
Python

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-docxWord documentsdocument automationparagraphs
A developer using python-docx to create and edit Word documents programmatically.
Python

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-docxWord documentsdocument automationtext extraction
Illustration of a multipage PDF document with custom font glyphs and page break markers, representing ReportLab font registration and Platypus layout.
Python

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.

ReportLabPDF generationCustom fontsPlatypus