Issue #398

MicroPython, PEP 591 ("final" qualifier), pytest Plugins, and More

Dec. 10, 2019

MicroPython, PEP 591 ("final" qualifier), pytest Plugins, and More
#398 – DECEMBER 10, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
MicroPython: An Intro to Programming Hardware in Python
Are you interested in the Internet of Things, home automation, and connected devices? In this tutorial, you’ll learn about MicroPython and the world of electronics hardware. You’ll set up your board, write your code, and deploy a MicroPython project to your own device.
REAL PYTHON

PEP 591: Adding a final Qualifier to Typing
This PEP proposes a final qualifier to be added to the typing module—in the form of a final decorator and a Final type annotation—to serve three related purposes: Declaring that a method should not be overridden, declaring that a class should not be subclassed, declaring that a variable or attribute should not be reassigned.
PYTHON.ORG

Monitor Your Python Environment With Datadog APM and Distributed Tracing
Use detailed flame graphs to identify bottlenecks and latency, and correlate log and trace data for individual requests. Plus, the Datadog APM’s tracing client auto-instruments popular frameworks and libraries like Flask, Tornado, Django, and more. Try it free with a 14-day trial of Datadog →
DATADOGsponsor

Doing Python Configuration Right
“Let’s talk about configuring Python applications, specifically the kind that might live in multiple environments – dev, stage, production, etc.”
MICHAEL WHALEN

8 Great pytest Plugins
“One of the best aspects of the popular Python testing tool is its robust ecosystem. Here are eight of the best pytest plugins available.”
OPENSOURCE.COM • Shared by Python Bytes FM

Two Malicious Python Libraries Caught Stealing SSH and GPG Keys
Also see the related discussion on Hacker News.
LUKAS MARTINI

Dismissing Python Garbage Collection at Instagram
How Instagram’s Django backend runs with GC disabled and gets a 10% performance gain.
INSTAGRAM ENGINEERING BLOG

Python Code Style & Pythonic Idioms
A review of general concepts, language idioms, and Pythonic coding conventions.
PYTHON-GUIDE.ORG

Monads Aren’t as Hard as You Think
Monads explained with Python code examples.
YING WANG

CPython 3.8.1rc1 Available for Testing
PYTHON.ORG


Python Jobs


Senior Python Engineer
STYLIGHT GMBH 📍 MUNICH, GERMANY

Senior Python/Django Developer
SENDCLOUD 📍 EINDHOVEN, NETHERLANDS

Django Full Stack Web Developer
ZEITCODE 📍 AUSTIN, TX

Contract Python / RaspPi / EPICS
D-PACE INC 📍 REMOTE

More Python Jobs >>>


Articles & Tutorials


Inflationary Constant Factors and Why Python is Faster Than C++ (PDF)
Why constant-factor differences in algorithm complexity do matter in practice.
MEHRDAD NIKNAMI

Beautiful Soup: Build a Web Scraper With Python
In this tutorial, you’ll walk through the main steps of the web scraping process. You’ll learn how to write a script that uses Python’s requests library to scrape data from a website. You’ll also use Beautiful Soup to extract the specific pieces of information that you’re interested in.
REAL PYTHON

See How the Top BI Platforms Compare to Mode Analytics
This month, Mode was named a leader in BI and analytics by G2 Crowd. G2 aggregated customer reviews for all the top BI platforms. See which companies do best in ease of setup, ease of admin, future direction, and more →
MODE ANALYTICSsponsor

Multithreading vs Multiprocessing in Python
A discussion of misconceptions about multithreading in Python.
AMINE BAATOUT

Variables in Python
Learn how every item of data in a Python program can be described by the abstract term “object,” and how to manipulate objects using symbolic names called “variables.”
REAL PYTHON video

3 Packages to Build a Spell Checker in Python
“Learn what packages can work as a spell checker in Python. We’ll discuss pyspellchecker, TextBlob, and autocorrect for performing this task.”
THEAUTOMATIC.NET

OCR in Python with Tesseract, OpenCV and Pytesseract
Get started with Tesseract and OpenCV for OCR in Python: preprocessing, deep learning OCR, text extraction and limitations.
FILIP ZELIC

Using Machine Learning to Learn How to Compress
shrynk is a Python package that uses machine learning to compress your Pandas DataFrame (or Python dictionaries).
VKS.AI • Shared by Pascal van Kooten

Installing & Updating Packages in Python
Learn how to install, use, and update Python packages using pip, conda, and Anaconda Navigator.
ERIK MARSJA

Python Strings and Character Data (Interactive Quiz)
Test your understanding of Python strings and character data.
REAL PYTHON

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

A Walkthrough of the DeepMind MuZero Pseudocode
DAVID FOSTER

Python Snippets That Might Come in Handy
MARTIN HEINZ

Creating an Email Service for Childhood Memories With Python
ROBIN WILSON


Projects & Code


Metaflow: Netflix’s Python Framework for Data Science
METAFLOW.ORG

GoCheese: Private Python Package Repository and Caching Proxy
CYPHERPUNKS.RU

parse: Parse Strings Using format() Syntax
PYPI.ORG

py27hash: Python 2.7 Hashing and Iteration in Python 3+
GITHUB.COM/DAVIDMEZZETTI • Shared by David Mezzetti

rotvpn: Run Your Own VPN in the Cloud With Python
GITHUB.COM/JAR-O • Shared by James Robson

schemathesis: Property-Based Testing for Open API Schemas
GITHUB.COM/KIWICOM • Shared by Dmitry Dygalo

📆🐍 Upcoming Python Events


Python Miami
December 14 to December 15, 2019

DFW Pythoneers 2nd Saturday Teaching Meeting
December 14, 2019

Inland Empire Python Users Group Monthly Meeting
December 17, 2019

Heidelberg Python Meetup
December 18, 2019

PiterPy Breakfast
December 18, 2019

PyData Bristol Meetup
December 19, 2019

Python Northwest
December 19, 2019

PyLadies Dublin
December 19, 2019

MadPUG
December 19, 2019
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.