Issue #380

Django Security, PEP 589 (Typed Dicts), Python Memory Management, and More

Aug. 6, 2019

Django Security, PEP 589 (Typed Dicts), Python Memory Management, and More
#380 – AUGUST 6, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
What You Need to Know to Manage Users in Django Admin
Learn what you need to know to manage users in Django admin. Out of the box, Django admin doesn’t enforce special restrictions on the user admin. This can lead to dangerous scenarios that might compromise your system.
REAL PYTHON

Why Your Mock Doesn’t Work
“Mocking is a powerful technique for isolating tests from undesired interactions among components. But often people find their mock isn’t taking effect, and it’s not clear why. Hopefully this explanation will clear things up.”
NED BATCHELDER

Try the Python IDE for Professional Developers
PyCharm provides smart code completion, code inspections, on-the-fly error highlighting and quick-fixes, along with automated code refactorings and rich navigation capabilities. Try it now →
JETBRAINSsponsor

Django Security Releases Issued: 2.2.4, 2.1.11 and 1.11.23
Addresses DoS possibilities in django.utils.text.Truncator, strip_tags(), django.utils.encoding.uri_to_iri(), and a potential SQL injection issue in JSONField/HStoreField.
DJANGOPROJECT.COM

First Steps With PySpark and Big Data Processing
Take your first steps with Spark, PySpark, and Big Data processing concepts using intermediate Python concepts.
REAL PYTHON

Improve Your Django Tests With Fakes and Factories
This blog post is an introduction into unit testing in Django. It offers an explanation on what are faker and factories and code examples illustrating them.
MARTIN ANGELOV

Memory Management in Python
This article describes memory management in CPython 3.6 and how it uses a pool allocator called PyMalloc to speed-up memory operations and reduce fragmentation.
ARTEM GOLUBIN

PEP 589 – TypedDict: Type Hints for Dictionaries With a Fixed Set of Keys
PYTHON.ORG


Discussions


Do You Know That You Can Now Upload PyPI Packages Using API Tokens?
TWITTER.COM/NLHKABU

Matlab vs Python
REDDIT


Python Jobs


Senior Python Developer (Austin, TX)
INQUEST

Backend and DataScience Engineers (London – Relocation & Visa Possible)
CITYMAPPER LTD

Software Engineering Lead (Houston, TX)
SIMPLELEGAL

Software Engineer (Multiple US Locations)
INVITAE

Python Software Engineer (Munich, Germany)
STYLIGHT GMBH

Senior Back-End Web Developer (Vancouver, Canada)
7GEESE

Lead Data Scientist (Buffalo, NY)
UTILANT LLC

Python Developer (Remote)
418 MEDIA

Sr. Python Engineer (Arlington, VA)
PUBLIC BROADCASTING SERVICE

Senior Backend Software Engineer (Remote)
CLOSE

More Python Jobs >>>


Articles & Tutorials


Exploring Mathematics With Matplotlib and Python
“Data Visualization can be a great tool for mathematical exploration and experimentation. In this article, I show you an example using Matplotlib and Python.”
ANTONIO CANGIANO

How to Make a Scatter Plot in Python Using Seaborn
Learn how to make scatter plots, adding trend lines, text, rotating the labels, changing color, and markers, among other things.
ERIK MARSJA

All-in-One Visual Testing and Review Platform
Visually test your web app, component library, or static site across browsers and responsive widths to catch UI bugs and ship with complete confidence. Get started for free →
PERCYsponsor

A Python Prompt Into a Running Process: Debugging With Manhole
“Sometimes your Python process will behave strangely, run slowly, or give you the wrong answers. And while hopefully you have logging, the logging isn’t always enough. So how do you debug this process?”
ITAMAR TURNER-TRAURING

11 Beginner Tips for Learning Python
In this course, you’ll see several learning strategies and tips that will help you jumpstart your journey towards becoming a rockstar Python programmer!
REAL PYTHON video

Image Classification With Transfer Learning and PyTorch
In this article you’ll go over the theory behind transfer learning and see how to carry out an example of transfer learning on Convolutional Neural Networks (CNNs) in PyTorch.
DAN NELSON

Implementing a Photo Stylizer in Python Using a QuadTree Algorithm
Learn how to write a Python script to create a quadtree based filter for stylizing photos.
RICHARD BARELLA

A Simple Explanation of the Softmax Function
What Softmax is, how it’s used, and how to implement it in Python.
VICTOR ZHOU

Python Basics: A Practical Introduction to Python 3
Make the leap from Beginner to Intermediate in Python with this complete curriculum freshly updated for Python 3.7. Includes exercises, interactive quizzes, and sample projects so you’ll always know what to focus on next. Get the book today and save 27% →
REAL PYTHONbook sponsor

Understanding Decision Trees for Classification (Python)
MICHAEL GALARNYK

Set Up File Uploads to S3 via Django in 10 Minutes
DAVID BRUTON

How to Set Up a Python Project With Linting, Type-Checking, Testing, etc.
SOURCERY.AI

Visualizing Data With Pairs Plots in Python
WILL KOEHRSEN

Using Twitter With Python and Tweepy
MIKE DRISCOLL


Projects & Code


awesome-asgi: List of Awesome ASGI Servers, Frameworks, Apps, Libraries, and Other Resources
GITHUB.COM/FLORIMONDMANCA

Xylene: Discord Bot That Fetches Weather Info, Reddit Posts, …
GITHUB.COM/XITHRIUS • Shared by Charles Buell

py-gui: Library for Making Desktop Apps Like React
GITHUB.COM/JAKECOXON

alive-progress: Animated and Smart Progress Bar for Python
GITHUB.COM/RSALMEI

kubetest: Kubernetes Integration Tests in Python
GITHUB.COM/VAPOR-WARE

handout: Turn Python Scripts Into Handouts With Markdown and Figures
GITHUB.COM/DANIJAR

Python Oberon: An Emulator Written for the Project Oberon RISC Processor
PYTHONOBERON.READTHEDOCS.IO

BASIC Interpreter Implemented in a Jupyter Notebook
GITHUB.COM/NORVIG

📆🐍 Upcoming Python Events


⋅ Python Atlanta Meetup August 8, 2019

⋅ Python Miami August 10 to August 11, 2019

⋅ DFW Pythoneers 2nd Saturday Teaching Meeting August 10, 2019

⋅ Python North East August 14, 2019

⋅ pyCologne User Group Treffen August 14, 2019

⋅ PyBay August 15 to August 19, 2019

⋅ PyCon Korea 2019 August 15 to August 19, 2019
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.