Issue #400

Python Performance Tips, ASGI Web Frameworks, Dict Iteration Tips, and More

Dec. 24, 2019

Python Performance Tips, ASGI Web Frameworks, Dict Iteration Tips, and More
#400 – DECEMBER 24, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python Dictionary Iteration: Advanced Tips & Tricks
In this intermediate-level course, you’ll take a deep dive into how to iterate through a dictionary in Python. Dictionaries are a fundamental data structure, and you’ll be able to solve a wide variety of programming problems by iterating through them.
REAL PYTHON video

Introduction to ASGI: Emergence of an Async Python Web Ecosystem
“If you were thinking Python had been getting locked into data science, think again! Python web development is back with an async spin, and it’s exciting.” Great writeup!
FLORIMOND MANCA

Scout APM for Python
Check out Scout’s developer-friendly application performance monitoring solution for Python. Scout continually tracks down N+1 database queries, sources of memory bloat, performance abnormalities, and more. Get back to coding with Scout →
SCOUT APMsponsor

12 Trending Alternatives for Distributing Python Applications in 2020
A look at the various systems to choose from for packaging and distributing Python code.
CRISTIAN MEDINA • Shared by Cristian Medina

NumPy, SciPy, and Pandas: Correlation With Python
Learn what correlation is and how you can calculate it with Python. You’ll use SciPy, NumPy, and Pandas correlation methods to calculate three different correlation coefficients. You’ll also see how to visualize data, regression lines, and correlation matrices with Matplotlib.
REAL PYTHON

Python Performance Tips
Various tips and tricks that help improve the performance of your Python programs.
SKIP MONTANARO

Django Security Releases Issued: 3.0.1, 2.2.9, and 1.11.27
Addresses CVE-2019-19844: Potential account hijack via password reset form.
DJANGOPROJECT.COM

Python 3.8.1 Released
PYTHON.ORG


Python Jobs


Python Web Developer (Remote)
PREMIERE DIGITAL

Senior Python Engineer (Munich, Germany)
STYLIGHT GMBH

Software Engineer (Bristol, UK)
ENVELOP RISK

Python Contractor RaspPi/EPICS (Nelson, BC, Canada)
D-PACE INC

More Python Jobs >>>


Articles & Tutorials


Running Python With Docker: How to Try the Latest CPython Release
Learn how to run different Python versions in Docker. By following the examples, you’ll see how you can play with the latest development version of Python, and how to use Dockerfiles to set up Python environments and package your own scripts.
REAL PYTHON

How to Make Python Wait
“For many types of applications, at times it is necessary to pause the running of the program until some external condition occurs. […] In this article I’m going to show you a few different ways to wait.”
MIGUEL GRINBERG

Python Tricks: A Buffet of Awesome Python Features
Discover Python’s best practices with simple examples and start writing even more beautiful + Pythonic code. “Python Tricks: The Book” shows you exactly how. You’ll master intermediate and advanced-level features in Python with practical examples and a clear narrative. Get the book + video bundle 33% off →
DAN BADERsponsor

Python’s Built In IDE Isn’t Just Sitting IDLE
An episode about the IDLE package built into Python and how it reduces the friction associated with learning to program by having an easy to use IDE out of the box.
PYTHONPODCAST.COM podcast

Creating Interactive Dashboards From Jupyter Notebooks
This article discusses how to build an interactive dashboard to analyze reddit content and display interactive graphs of the result using Voilà.
CHRIS MOFFITT

Prioritizing Simplicity in Your Python Code
This is part of a series about the Zen of Python. This article focuses on the third and fourth principles: simplicity and complexity.
MOSHE ZADKA

Working With Redis in Python With Django
This post introduces you to Redis as a key-value store and uses it in a Django project to explore its functionality.
ROBLEY GORI

Dependency Injection in Python With Pinject
Learn the basic principles of Dependency Injection and how to implement it in Python using the Pinject library.
PEPY.TECH • Shared by Petru Rares Sincraian

Precise Unit Tests With PyHamcrest
Hamcrest is a Python framework designed to make test assertions easier to write and more precise.
MOSHE ZADKA

Mocking Python Like a Boss
The Mock Generator is a library to simplify and shorten the time it takes to write Python mocks.
PETER KOGAN • Shared by Peter Kogan

Create a Simple Telegram Bot With Telethon
Quick tutorial for creating your own bot for the Telegram messenger.
MISHA BEHERSKY • Shared by Misha Behersky

Guide to Python Import Statements
How to resolve common importing problems in Python 2 and 3.
CHRIS YEH • Shared by Jonathan Willitts

High-Level Intro to “SOLID” OOP Design Principles
LARA KATTAN


Projects & Code


nlp-recipes: Natural Language Processing Best Practices & Examples
GITHUB.COM/MICROSOFT

assembly: Pythonic OOP Web Framework Built on Flask
GITHUB.COM/MARDIX

pretty-errors: Prettier Python Stacktraces
PYPI.ORG

osxphotos: Access to macOS Photos.app Library With Python
GITHUB.COM/RHETTBULL

wemake-python-package: Cookiecutter Template for Creating New Python Packages
GITHUB.COM/WEMAKE-SERVICES

django-admin-shell: Python Shell for Django Admin Site
GITHUB.COM/DJK2

pylightxl: Light Weight Excel Read/Writer With No Dependencies
PYPI.ORG

Typical: Data-Validation Library Using Python 3 Type Annotations
PYTHON-TYPICAL.ORG • Shared by Sean Stewart

📆🐍 Upcoming Python Events


⋅ SPb Python Drinkup December 26, 2019

⋅ PythOnRio Meetup December 28, 2019

⋅ Python Sheffield December 31, 2019

⋅ Heidelberg Python Meetup January 1, 2020

⋅ STL Python January 1, 2020

⋅ PiterPy Breakfast January 1, 2020
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.