Issue #414

Django vs Flask, Feature Importance, Making Python Games, and More

March 31, 2020

Django vs Flask, Feature Importance, Making Python Games, and More
#414 – MARCH 31, 2020 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Automatically Finding Codenames Clues With GloVe Vectors
In the Czech boardgame Codenames, one player must come up with a single-word clue that prompts their teammates to select certain words from a 5x5 board while simultaneously avoiding a “bomb” word that, if selected, causes the team to lose. In this article, James Somers explores how to generate clues automatically using Global Vectors for Word Representations—with surprising results.
JAMES SOMERS

Learn Python Skills While Creating Games
In this episode, Christopher interviews Jon Fincher from the Real Python Team. Jon talks about his recent articles on PyGame and Arcade. They discuss if game programming is a good way to develop your Python programming skills, and if a game would make a good portfolio piece.
REAL PYTHON podcast

Automate & Standardize Code Reviews for Python
Take the hassle out of code reviews - Codacy flags errors automatically, directly from your Git workflow. Customize standards on coverage, duplication, complexity & style violations. Use in the cloud or on your servers for 30 different languages. Get started for free →
CODACYsponsor

SimPy: Simulating Real-World Processes With Python
See how you can use the SimPy package to model real-world processes with a high potential for congestion. You’ll create an algorithm to approximate a complex system, and then you’ll design and run a simulation of that system in Python.
REAL PYTHON

psycopg3: A First Report
“What’s left? Well, a lot! Now that the basic machinery is in place, and Python can send and retrieve bytes to and from Postgres, it’s time to attack the adaptation layer.”
DANIELE VARRAZZO

Cognitive Biases in Software Development
“In this post, I will try to answer the question: why do we feel weird about technical solutions?” Not strictly Python-focused, but absolutely worth a read.
STANISLAV MYACHENKOV

Learning Pandas by Exploring COVID-19 Data
“Use the pandas data analysis tool to explore the free COVID-19 data set provided by the European Centre for Disease Prevention and Control.”
MATT MAKAI

How Long Did It Take You to Learn Python?
“Wait, don’t answer that. It doesn’t matter.”
NED BATCHELDER


Discussions


Are F-Strings Good Practice?
REDDIT

What Resources Would You Recommend to Learn Socket Programming?
LOBSTE.RS


Python Jobs


Python Tutorial Authors Wanted (100% Remote)
REAL PYTHON

Software Engineer - PyTorch (Remote)
CYBERCODERS

Senior Python Engineer (Remote)
CYBERCODERS

Python Quant Developer With Data Focus (Remote)
EFINANCIAL CAREERS

Senior Python Developer With Django or Flask (Remote)
BOTSFORD ASSOCIATES LLC

More Python Jobs >>>


Articles & Tutorials


Django vs. Flask in 2019: Which Framework to Choose [2019]
”[…] Django and Flask are by far the two most popular Python web frameworks… In the end, both frameworks are used to develop web applications. The key difference lies in how they achieve this goal. Think of Django as a car and Flask as a bike. Both can get you from point A to point B, but their approaches are quite different.”
MICHAEL HERMAN

How to Calculate Feature Importance With Python
“Feature importance scores play an important role in a predictive modeling project, including providing insight into the data, insight into the model, and the basis for dimensionality reduction and feature selection that can improve the efficiency and effectiveness of a predictive model on the problem. In this tutorial, you will discover feature importance scores for machine learning in Python.”
JASON BROWNLEE

Get Inspiration for Your Next Machine Learning Project
Python is a leading language for machine learning, and businesses worldwide are using the technology to get ahead. Explore 22 examples of how ML is being applied across four industries →
STXNEXTsponsor

Using Markdown in Django
“As developers, we rely on static analysis tools to check, lint and transform our code. We use these tools to help us be more productive and produce better code. However, when we write content using markdown the tools at our disposal are scarce. In this article we describe how we developed a Markdown extension to address challenges in managing content using Markdown in Django sites.”
HAKI BENITA

Using WSL to Build a Python Development Environment on Windows
Learn how to set-up a development environment on Windows that leverages the power of the Windows Subsystem for Linux (WSL). From installing WSL, interfacing with Windows Terminal, setting up VS Code, and even running graphical Linux apps, this comprehensive tutorial covers everything you need to know to set-up a development workflow.
CHRIS MOFFITT

How to Use any() in Python
If you’ve ever wondered how to simplify complex conditionals by determining if at least one in a series of conditions is true, then look no further. This tutorial will teach you all about how to use any() in Python to do just that.
REAL PYTHON

Profile, Understand & Optimize Code Performance
You can’t improve what you can’t measure. Profile and understand Python code’s behavior and performance (Wall-time, I/O, CPU, HTTP requests, SQL queries). Browse through appealing graphs. Blackfire.io is now available as Public Beta. New features added regularly.
BLACKFIREsponsor

Comparing Python Objects the Right Way: “is” vs “==”
Learn when to use the Python is, is not, == and != operators. You’ll see what these comparison operators do under the hood, dive into some quirks of object identity and interning, and define a custom class.
REAL PYTHON video

The Usefulness of Python’s Permutations and Combinations Functions
Learn how the permutations() and combinations() functions in Python’s itertools module can help you writer cleaner and faster for loops.
KEVIN DAWE

TLDR Newsletter: Byte Sized News for Techies
TLDR is a daily, curated newsletter with links and TLDRs of the most interesting stories in tech, science, and programming.
TLDRNEWSLETTER.COM


Projects & Code


streamz: Build Pipelines to Manage Continuous Streams of Data
GITHUB.COM/PYTHON-STREAMZ

pyliveupdate: Runtime Code Manipulation Framework for Profiling, Debugging and Bugfixing
GITHUB.COM/DEVOPSPP

meshy: Interactive Graph of Your Django Model Structure
GITHUB.COM/MESHY • Shared by Charlie Denton

rain: Live Example to Illustrate Python Packaging, Testing, Building, and Deploying
GITHUB.COM/ANKUR-GUPTA

pm4py-source: Process Mining for Python
GITHUB.COM/PM4PY

convtools: Generates Python Code of Conversions, Aggregations, Joins
GITHUB.COM/ITECHART-ALMAKOV

rapidfuzz: Rapid Fuzzy String Matching in Python
GITHUB.COM/RHASSPY

Python 3 Maze Generator With Disjoint Set
GITHUB.COM/SCHEDUTRON

glow: Compiler for Neural Network Hardware Accelerators
GITHUB.COM/PYTORCH

pywharf: Host Your Python Package on GitHub
GITHUB.COM/PYWHARF • Shared by HUNT ZHAN

typer-cli: Run Typer Scripts With Auto-Completion
GITHUB.COM/TIANGOLO • Shared by Sebastián Ramírez

📆🐍 Upcoming Python Events


⋅ PyLadies Remote Lightning Talks March 28th, 2020 (Remote via Zoom)
Happy Pythoning!
Copyright © 2020 PyCoder’s Weekly, All rights reserved.