Issue #392

Pythonic GUIs With PyQT, Auto-Formatting Your Code, Switching to Python 3.8, and More

Oct. 29, 2019

Pythonic GUIs With PyQT, Auto-Formatting Your Code, Switching to Python 3.8, and More
#392 – OCTOBER 29, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Black 19.10b0 Released
I’ve been using Black to automatically format most of my Python code since it came out last year, and it’s been an incredibly helpful tool. Stable release coming soon. More about how to use Black here.
GITHUB.COM/PSF

Python and PyQt: Building a GUI Desktop Calculator
In this step-by-step tutorial, you’ll learn how to create Graphical User Interface (GUI) applications with Python and PyQt. Once you’ve covered the basics, you’ll build a fully-functional desktop calculator that can respond to user events with concrete actions.
REAL PYTHON

Manage and Optimize Your Python Applications With a Free 14-day Trial of Datadog APM
Visualize every layer of your Python stack in minutes. Trace requests as they travel across distributed services, and inspect detailed flame graphs to identify bottlenecks and other performance issues. Navigate seamlessly between Python traces to related logs and metrics in seconds →
DATADOGsponsor

Performance of System V Style Shared Memory Support in Python 3.8
“To evaluate the performance gains from shared memory, I ran the following simple test—create a list of integers and double each integer in the list in parallel by chunking the list and processing each chunk in parallel.” Surprising results!
VENKATESH-PRASAD RANGANATH

When to Switch to Python 3.8
A quick rundown of the problems you might encounter when switching major Python versions.
PYTHONSPEED.COM

Consider memoryview and bytearray for Zero-Copy Interactions With bytes
BRETT SLATKIN

Manipulating TTF Font Files With Python
READEVALPRINT.COM


Python Jobs


Full Stack Developer
BEANFIELD METROCONNECT 📍 TORONTO, ON, CANADA

Python Software Engineer
FRAGCITY, INC. 📍 REMOTE

Python Developer
CYBER SPACE TECHNOLOGIES LLC 📍 REMOTE

Sr. Security Software Engineer Python & DevOps
TER CONSULTING GROUP 📍 REMOTE

More Python Jobs >>>


Articles & Tutorials


Python Type Checking 101
Write better code with this step-by-step intro to Python type checking. Traditionally, types have been handled by the Python interpreter in a flexible but implicit way. Recent versions of Python allow you to specify explicit type hints that can be used by different tools to help you develop your code more efficiently.
REAL PYTHON video

3 Ways to Create a Keras Model With TensorFlow 2.0
Keras and TensorFlow 2.0 provide you with three methods to implement your own neural network architectures:, Sequential API, Functional API, and Model subclassing. Inside of this tutorial you’ll learn how to utilize each of these methods, including how to choose the right API for the job.
ADRIAN ROSEBROCK

Automated Python Code Reviews, Directly From Your Git Workflow
Codacy lets developers spend more time shipping code and less time fixing it. Set custom standards and automatically track quality measures like coverage, duplication, complexity and errors. Integrates with GitHub, GitLab and Bitbucket, and works with 28 different languages. Get started today for free →
CODACYsponsor

Python Community Interview With Al Sweigart
Al Sweigart is an accomplished developer, conference speaker, teacher, and origamist. But some may know him best for his numerous Python programming books, such as Automate the Boring Stuff with Python.
REAL PYTHON

Debugging TensorFlow coverage
“It started with a coverage.py issue: Coverage not working for TensorFlow Model call function. A line in the code is executing, but coverage.py marks it as unexecuted. How could that be?”
NED BATCHELDER

Cleaning Up Currency Data With Pandas
Tips on how to clean up messy currency data in Pandas so that you may convert the data to numeric formats for further analysis.
CHRIS MOFFITT

Python & OpenGL for Scientific Visualization
An open-source book about Python and OpenGL for Scientific Visualization.
NICOLAS P. ROUGIER

Dockerizing Flask With Postgres, Gunicorn, and Nginx
MICHAEL HERMAN

Weird Things You Can, but Probably Shouldn’t Do in Python
WILL CIPRIANO

Measure and Improve Python Code Performance With Blackfire.io
Profile in development, test/staging, and production, with no overhead for end users! Blackfire supports any Python version from 2.7.x and 3.x. Find bottlenecks in wall-time, I/O, CPU, memory, HTTP requests, and SQL queries.
BLACKFIREsponsor

Napari: A Fast N-Dimensional Image Viewer in Python
ILOVESYMPOSIA.COM

Creating a Keylogger for Linux Using Python
DOTWEAK.COM

Obfuscating Python Code
GITHUB.COM/SHAKNA-ISRAEL


Projects & Code


removestar: Automatically Replace Import * With Explicit Imports
ASMEURER.COM

safe-assert: Safe and Composable Assertions
GITHUB.COM/SOBOLEVN • Shared by Nikita Sobolev

pydantic: Data Parsing & Validation Using Python Type Hinting
GITHUB.COM/SAMUELCOLVIN

pythonfuzz: Coverage Guided Fuzz Testing for Python
GITHUB.COM/FUZZITDEV

pygeos: Wraps GEOS Geometry Functions in NumPy ufuncs
GITHUB.COM/PYGEOS

ipynb-quicklook: macOS QuickLook Generator for Jupyter/IPython Notebooks
GITHUB.COM/TUXU

📆🐍 Upcoming Python Events


PyCon Sweden 2019
October 31 to November 2, 2019

PyCon France 2019
October 31 to November 4, 2019

PiterPy 2019
November 1 to November 2, 2019

Django Girls Groningen
November 2 to November 3, 2019

PyCon Canada 2019
November 16 to November 19, 2019 in Toronto
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.