Issue #516

CLIs, Cython, 3.11's Better Error Messages, and More

March 15, 2022

CLIs, Cython, 3.11's Better Error Messages, and More
#516 – MARCH 15, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
How to Write User-Friendly CLIs in Python
How to write user-friendly Command Line Interface applications and an overview of several of the popular CLI libraries: argparse, Click, Typer, Docopt, and Fire.
XIAOXU GAO

Just Enough Cython to Be Useful
Cython is a superset of of Python designed to give C-like performance. Ever wanted to learn the basics? This article shows you how to get started.
PETER BAUMGARTNER

Scout APM: Built for Developers, By Developers
Scout APM is an application performance monitoring tool designed to help developers find and fix performance issues quickly. Scout will tie bottlenecks to source code so you can quickly pinpoint and resolve performance abnormalities with ease. Give Scout a try with a 14-day free trial today →
SCOUT APMsponsor

Python 3.11 Preview: Even Better Error Messages
Python 3.11 will be released in October 2022. This article explores the more precise error messages now available in the latest alpha release.
REAL PYTHON

Python 3.11.0a6 Is Available
CPYTHON DEV BLOG

EuroPython 2022 Call for Proposals
EUROPYTHON.EU


Discussions


Is Python a Good Language to Learn for Automation Testing?
REDDIT

Where Can I Find Like-Minded Programmers to Talk to Without Necessarily Going Out?
REDDIT


Python Jobs


Senior Platform Engineer
PARADE 📍 USA

Senior Backend Software Engineer
PARADE 📍 USA

Senior Backend Software Engineer
CLAY 📍 USA

Advanced Python Engineer
RESEARCH AFFILIATES 📍 NEWPORT BEACH, CA, USA

Senior Full-Stack Web Developer
MONETIZEMORE 📍 WHITE ROCK, BC, CANADA

Python Software Engineer
FLASHPOINT 📍 ANYWHERE

Mid/Senior Django Developer
TYPE/CODE 📍 BROOKLYN, NY, USA

Sr Python Engineer
FLASHPOINT 📍 ANYWHERE

Senior Backend Engineer - Django
DATAPANE 📍 UK, EUROPE

Full Stack Software Engineer - Python
DEEP SENTINEL 📍 USA

Senior Software Engineer
DROICE LABS 📍 ANYWHERE

Python Trainer
PHYSIKALISCH-TECHNISCHE BUNDESANSTALT 📍 JAKARTA, INDONESIA

More Python Jobs >>>


Articles & Tutorials


Python Built-in Functions to Know
Python has dozens of built-in functions, the standard library has hundreds more, and then third-party libraries make the whole list unknowable. How do you know what to learn early on? This article highlights the important functions every developer should know.
TREY HUNNER

Modify Iterables While Iterating in Python
If you try to mutate a sequence while traversing through it, Python doesn’t complain, but that doesn’t mean it did what you want. This article explores the problems of modifying iterables and how to work around it.
REDOWAN DELOWAR

Python RCE Vulnerability Discovered in Celery
Learn about the object traversal pattern common in the wider Python ecosystem, and how this led to the discovery of a stored command injection vulnerability in Celery. This step-by-step analysis also includes remediation guidance →
SNYK.IOsponsor

What Are pyc Files and __pycache__ Folders in Python?
What are those weird extra files for and what do you do about them? This article explains pyc files, where they live, and how to ignore them in your development environment, and how to clean up after them.
JOHN LOCKWOOD

Exploring the Fibonacci Sequence With Python
In this video course, you’ll explore the Fibonacci sequence in Python, which serves as an invaluable springboard into the world of recursion, and learn how to optimize recursive algorithms in the process.
REAL PYTHON course

Understand Django: Security and Django
You want to protect your users’ privacy, right? The goal is noble and users demand it, but how do you do it? This article, looks at some areas that improve the security of your application.
MATT LAYMAN • Shared by Matt Layman

How to Design Better REST APIs
15 language-agnostic, tips on REST API design, including: good naming conventions, how to specify dates, versioned APIs, authentication keys, pagination, and when to use which HTTP methods.
RONALD BLÜTHL

Scale Web Scraping Projects Without Challenges
Improve your performance with the new Oxylabs Scraper APIs. The SERP Scraper API provides real-time results. The E-Commerce Scraper API gets data from most marketplaces, and the Web Scraper API handles JavaScript-heavy websites. Try for free.
OXYLABSsponsor

Pass-by-Value, Reference, and Assignment
Different programming languages use different ways of passing arguments. By value? By reference? What does Python do? Pass-by-assignment.
RODRIGO GIRÃO SERRÃO

Counting With Python’s Counter
Counting several repeated objects at once is a common problem in programming. Python offers a bunch of tools and techniques you can use to approach this problem. However, Python’s collections.Counter class provides a clean, efficient, and Pythonic solution.
REAL PYTHON course


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

asciimatics: Cross Platform TUI and ASCII Animation Package
GITHUB.COM/PETERBRITTAIN

fastapi-events: Event Control Library for FastAPI
GITHUB.COM/MELVINKCX • Shared by Melvin Koh

miniboss: Manage a Collection of Docker Services
GITHUB.COM/AFROISALREADYINU

pytermgui: Simple Yet Powerful TUI Framework
GITHUB.COM/BCZSALBA

skillmap: Generatie Skill Map-Tree Diagrams
GITHUB.COM/NIYUE

WhyProfiler: CPU Profiler for Jupyter Notebooks
GITHUB.COM/ROBUSTA-DEV

📆🐍 Upcoming Python Events


Heidelberg Python Meetup
March 16, 2022

Weekly Real Python Office Hours Q&A (Virtual)
March 16, 2022

PyData Bristol Meetup
March 17, 2022

PyLadies Dublin
March 17, 2022

MadPUG
March 17 to March 18, 2022

Karlsruhe Python User Group (KaPy)
March 18, 2022

Python Web Conference 2022 (Virtual)
March 21 to March 25, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.