Measuring Python Code Quality, Subtests, Parallel Processing, and More

#534 โ€“ JULY 19, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Measuring Code Quality, Simplicity, and Maintainability
How maintainable is your Python code? Is it possible to hold the code for your functions in your head? When is it appropriate to use measurements in a code review? This week on the show, Reka Horvath and Ben Martineau from Sourcery are here to discuss their recent PyCon talk, “Actionable insights vs ranking: How to use and how NOT to use code quality metrics.”
REAL PYTHON podcast

Subtests in Python
unittest.TestCase.subTest was originally introduced in Python 3.4 as a lightweight mechanism for test parameterization; it allows you to mark a section of your test as a separate test in its own right using a context manager.” Learn all about sub-tests in both the unittest module and pytest.
PAUL GANSSLE

Generating Fake Security Data With Python and Faker-Security
Snyk recently open sourced the faker-security Python package to help anyone working with security data. Learn more about what a Python package is and how to use it in combination with factory_boy to generate fake security data โ†’
SNYK.IOsponsor

Parallel Processing Large File in Python
When working with large amounts of data, using more than one CPU can lead to significant speed gains. Learn about various techniques that reduce data processing time by using multiprocessing, joblib, and tqdm.
ABID ALI AWAN

Python 3.11.0b4 Released
PYTHON.ORG


Discussions


Stop Allowing Packages to Delete Things on PyPI?
PYTHON.ORG

What To Code When Learning a New Language/Framework
HACKER NEWS


Python Jobs


Backend Engineering Manager
CLOSE ๐Ÿ“ ANYWHERE

Python/JavaScript Full-Stack Software Engineers, Remote US
UNITED STATES SENATE SERGEANT AT ARMS ๐Ÿ“ ANYWHERE

Senior Python Software Engineer
MYOME ๐Ÿ“ SAN FRANCISCO, CA, USA

Senior Full-Stack Web Developer
MONETIZEMORE ๐Ÿ“ ANYWHERE

Principal Python Engineer, 100% Remote
NIRA ๐Ÿ“ SAN FRANCISCO, CA, USA

Software Test Engineer Senior - Python - Remote
CSG ๐Ÿ“ ALLEN, TX, USA

More Python Jobs >>>


Articles & Tutorials


SQLite and SQLAlchemy in Python: Moving Beyond Flat Files
In this video course, you’ll learn how to store and retrieve data using Python, SQLite, and SQLAlchemy as well as with flat files. Using SQLite with Python brings with it the additional benefit of accessing data with SQL. By adding SQLAlchemy, you can work with data in terms of objects and methods.
REAL PYTHON course

NumPy’s max() and maximum(): Find Extreme Values
In this introduction to NumPy, you’ll learn how to find extreme values using the max() and maximum() functions. This includes finding the maximum element in an array or along a given axis of an array, as well as comparing two arrays to find the larger element in each index position.
REAL PYTHON

Find Your Next Tech Job Through Hired
Hired has 1000s of companies ranging from startups to Fortune 500s that are actively hiring developers, data scientists, mobile engineers, and more. It’s really simple: create a profile with your skills and preferences for hiring managers to reach you directly. Sign up today โ†’
HIREDsponsor

Yes, I Have Opinions on Your Open Source Contributions
James Bennett weighs in on the Internet’s response to PyPI starting to roll out 2FA and in particular to Armin Ronacher’s Congratulations: We Now Have Opinions on Your Open Source Contributions.
JAMES BENNETT opinion

Python and TOML: New Best Friends
TOML is a configuration file format that’s becoming increasingly popular in the Python community. In this tutorial, you’ll learn the syntax of TOML and explore how you can work with TOML files in your own projects.
REAL PYTHON

Pip Constraints Files
Sometimes, it is difficult to determine what the original dependencies of a Python application are. Since version 7.1, pip has supported the use of a constraints file which can help solve this problem.
LUMINOUSMEN

Optimizing the Django Admin Paginator
The Django Admin is a powerful tool for quickly making changes to your data, but at scale it can require some tweaking. Learn what you can do to improve the performance of pagination in the admin.
HAKI BENITA

Ways to Prepare Your Monolith Before Moving to Microservices
“Like tidying up a house before a total renovation, preparing your monolith is the first step towards transitioning to microservices.” Learn more about what you should do before you transition.
TOMAS FERNANDEZ

Low Quality Code Is 15x More Prone to Bugs. Cut Down on Bug Risk and Tech Debt With Sourcery
It’s easy for technical debt to creep up in any codebase. With Sourcery you can instantly review and fix tech debt issues and make sure your own teams code standards are being met.
SOURCERYsponsor

Making Heatmaps
Learn how to build a heatmap diagram using the ClickHouse and QGIS libraries. The article includes step-by-step instructions for building a heatmap using CSV data.
MARK LITWINTSCHIK

Tips and Tricks for Shipping a PyGame App on the Mac
Got some awesome PyGame you want to share with a Mac user? This post walks you through the ins-and-outs of using pyapp to ship to macOS.
GLYPH


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 โ†’

django-awl: Misc Tools for Admin, Tags, Testing, and More
GITHUB.COM/CLTRUDEAU

readysetdata: Scripts to Clean Specific Datasets
GITHUB.COM/SAULPW

design-by-contract: Decorator to Write Design-by-Contract Code
GITHUB.COM/STEFANULBRICH โ€ข Shared by Stefan Ulbrich

tasktiger: Python Task Queue Using Redis
GITHUB.COM/CLOSEIO

reloadium: Advanced Hot Reloading for Python
GITHUB.COM/RELOADWARE

๐Ÿ“†๐Ÿ Upcoming Python Events


Heidelberg Python Meetup
July 20, 2022

PyStaDa
July 20, 2022

Weekly Real Python Office Hours Q&A (Virtual)
July 20, 2022

PyLadies Dublin
July 21, 2022

MadPUG
July 21 to July 22, 2022
Happy Pythoning!
Copyright ยฉ 2022 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. ยท #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

TOML in Python 3.11, Django and Angular, Constrain With assert, and More

Tuesday, July 12, 2022

Python 3.11 Preview: TOML and tomllib #533 – JULY 12, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Python 3.11 Preview: TOML and tomllib Python 3.11 will be released in the fall of 2022. In this

Functional Programming, Single Page Apps with Pyodide, Composing Music, and More

Tuesday, July 5, 2022

Exploring Functional Programming With Bruce Eckel #532 – JULY 5, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring Functional Programming With Bruce Eckel Would you like to explore the

Tic-Tac-Toe With Tkinter, 6 Steps After Django startproject, AsyncIO for Web Apps, and More

Tuesday, June 28, 2022

Build a Tic-Tac-Toe Game With Python and Tkinter #531 – JUNE 28, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Build a Tic-Tac-Toe Game With Python and Tkinter In this step-by-step project, you

Objects, Functions, Generators, & Coroutines; Combining Data in pandas; Lazy Imports; and More

Tuesday, June 21, 2022

Objects, Functions, Generators, and Coroutines #530 – JUNE 21, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Objects, Functions, Generators, and Coroutines Although different concepts, objects,

PyScript, Debugging in Django, Password Handling, and More

Tuesday, June 14, 2022

A First Look at PyScript: Python in the Web Browser #529 – JUNE 14, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo A First Look at PyScript: Python in the Web Browser In this tutorial, you'll

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your