#534 – JULY 19, 2022
View in Browser »
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
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 →
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
ABID ALI AWAN
Python 3.11.0b4 Released
Stop Allowing Packages to Delete Things on PyPI?
What To Code When Learning a New Language/Framework
Backend Engineering Manager (Anywhere)
United States Senate Sergeant at Arms
Senior Python Software Engineer (San Francisco, CA, USA)
Senior Full-Stack Web Developer (Anywhere)
Principal Python Engineer, 100% Remote (San Francisco, CA, USA)
Software Test Engineer Senior – Python – Remote (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
maximum(): Find Extreme Values
In this introduction to NumPy, you’ll learn how to find extreme values using the
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.
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 →
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 your opinion
Python and TOML: New Best Friends
TOML is a configuration file format that’s becoming 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.
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.
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.
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.
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.
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.
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.
Projects & Code
django-awl: Misc Tools for Admin, Tags, Testing, and More
readysetdata: Scripts to Clean Specific Datasets
design-by-contract: Decorator to Write Design-by-Contract Code
GITHUB.COM/STEFANULBRICH • Shared by Stefan Ulbrich
tasktiger: Python Task Queue Using Redis
reloadium: Advanced Hot Reloading for Python
Heidelberg Python Meetup
July 20, 2022
July 20, 2022
Weekly Real Python Office Hours Q&A (Virtual)
July 20, 2022
July 21, 2022
July 21 to July 22, 2022
This was PyCoder’s Weekly Issue #534.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]