#Python
147 posts
Build a Desktop App with PySide6 #1: What PySide6 Is — Desktop Apps with Qt and Python
A comparison of your options for building desktop apps in Python, and the case for PySide6, the official Qt bindings. We go from installation to showing your first window and understanding what the event loop means.
Microsoft Graph in Practice #7: Operations — Throttling, Pagination, Delta Queries, Change Notifications
Raising Graph automation to operational grade: retries that honor 429 and Retry-After, the pagination (@odata.nextLink) that silently truncates data when missed, delta queries replacing polling (deltaLink state management), change notification subscriptions (validation handshake, renewal, lifecycleNotificationUrl), and JSON batching — closing the series.
Microsoft Graph in Practice #6: Teams — Reading Messages, and the Three Routes for Sending Notifications
Facing the most famous wall in Graph's Teams integration head-on: reading teams, channels, and messages; why application permissions can't post to channels (migration-only), and the three alternative routes — a delegated automation account, Workflows incoming webhooks, and bots — with selection criteria.
Microsoft Graph in Practice #5: Files in OneDrive and SharePoint — Upload Sessions and Sharing
Automating files with Graph: the shared drive/driveItem model, the path differences between personal OneDrive and SharePoint site drives, downloads and simple uploads up to 250MB, upload sessions for large files (320KiB-multiple chunks, resume), creating sharing links, and narrowing permissions with Sites.Selected.
Microsoft Graph in Practice #4: Automating Mail and Calendar — Reading, Sending, Creating Events
Automating Outlook mail and calendar with Graph: inbox queries with filters, report delivery via sendMail and the cautions around bulk sending, attachments, creating meetings with invitations, availability lookups with getSchedule, and the classic trap of time zones — all in working code.
Microsoft Graph in Practice #3: First Calls with the Python SDK — Reading Users and Org Data
Building the Python skeleton for calling Graph: installing msgraph-sdk and azure-identity, implementing both device code (delegated) and client credentials (application) clients, the async pattern, expressing OData queries in the SDK, listing users and profiles, and token-level auth debugging.
Python's JIT Compiler: From the 3.13 Experiment to Realistic Expectations
A look at the experimental copy-and-patch JIT compiler that landed in CPython 3.13. How it works, how to enable it, what changed in 3.14, and what you can realistically expect from it today.
Python Without the GIL Is Here: Where Free-Threading Stands and When to Use It
The current state of free-threading, from the experimental build in Python 3.13 to official support in 3.14. Installation and verification, single-thread overhead, C extension compatibility, and the criteria for deciding whether it belongs in production today.
Python Data Analysis #7 A Taste of Polars: Your Next Move When pandas Slows Down
When pandas struggles against millions of rows, Polars is the alternative. We compare reading, filtering, and groupby side by side in pandas and Polars code, explain the idea behind lazy mode, lay out criteria for choosing between the two tools, and close out the series.
Python Data Analysis #6 Visualization: matplotlib Fundamentals and Choosing Charts
The minimal matplotlib structure understood through Figure and Axes, fast plotting with DataFrame.plot, picking the right chart for each purpose, fixing broken fonts in CJK environments, and saving with savefig — the visualization fundamentals in one post.
Python Data Analysis #5 Grouping and Joining: groupby, pivot_table, merge
Starting from the classic sales-by-branch-by-month question, we build a mental model for groupby, multi-stat aggregation with agg, pivot_table for Excel users, and merge and concat as the pandas counterparts of SQL JOIN — plus the habit of checking row counts after every join.
Python book now available free in full — Modern Python: From Basics to FastAPI in Production
From variable declarations to FastAPI, SQLAlchemy, JWT auth, and deployment, this 34-chapter, 5-part Python book is free to read in full on the site.