Issue #364

Python Concurrency, Black Holes, a 111 LOC Chess Engine in Python, and More

April 16, 2019

Python Concurrency, Black Holes, a 111 LOC Chess Engine in Python, and More
#364 – APRIL 16, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Hands-On Python 3 Concurrency With the asyncio Module
Learn how to speed up your Python 3 programs using concurrency and the asyncio module in the standard library. See step-by-step how to leverage concurrency and parallelism in your own programs, all the way to building a complete HTTP downloader example app using asyncio and aiohttp.
REAL PYTHON video

Python Used to Take Photo of Black Hole
“Scientists have used a new algorithm to take a photo of a black hole. One of the most exciting parts about it to me is that they used a lot of Python libraries to do the magic.”
MIKE DRISCOLL

Monitor Python Applications With Datadog APM and Distributed Tracing
Datadog’s tracing client integrates with asynchronous libraries like asyncio, gevent, and Tornado. Trace requests across service boundaries to identify bottlenecks, and get the necessary context to debug critical errors. Dive into your Python applications today with a free 14-day trial of Datadog →
DATADOGsponsor

Django: Keeping Logic Out of Templates (And Views)
Solid advice! Keep your Django templates and views clean by moving application logic into model methods and model managers.
BLOT.IM

How to Create an Index in Django Without Downtime
In this step-by-step Python tutorial, you’ll get a solid understanding of the limitations of Django migrations by tackling a well known problem: creating an index in Django without downtime.
REAL PYTHON

Meet Python Content Creators at PyCharm’s PyCon Booth
I’ll be there, the Real Python team will be there, and so will Mike Kennedy from Talk Python, Brian Okken from Test & Code, Matt Harrison, the PyBites team, Chris Medina, and Miguel Grinberg. Be sure to stop by and say hi :) Thanks JetBrains!
JETBRAINS.COM

list.sort() vs sorted(list)
Taking a closer look at Python’s built-in list sorting methods with regards to memory consumption and time efficiency. Nice writeup!
FLORIAN DAHLITZ

PyCon 2019 Close to Sell Out
Get your ticket before it’s too late :)
PYCON.BLOGSPOT.COM


Discussions


Just Found the Best Python Book…Cover
(Potentially not safe for work)
REDDIT


Python Jobs


Brought to you by Indeed Primesponsor
Apply today to see what job opportunities are waiting for you!

Senior Python Developer
GAMEANALYTICS LTD. 📍 COPENHAGEN, DENMARK

Senior Python Engineer
RECHARGE PAYMENTS 📍 REMOTE

Python Engineer in Healthcare
NUANCE COMMUNICATIONS 📍 BURLINGTON, MA

Machine Learning and Data Science Developer
PROTECTION ENGINEERING CONSULTANTS LLC 📍 AUSTIN, TX

More Python Jobs >>>


Articles & Tutorials


Python String Formatting Tips & Best Practices
Learn the four main approaches to string formatting in Python, as well as their strengths and weaknesses. You’ll also get a simple rule of thumb for how to pick the best general purpose string formatting approach in your own programs.
REAL PYTHON video

Python App Settings Management With Dynaconf
Nice little project for managing settings in your Python apps: “The only line of code you need to manage your Python 3 configurations”
BRUNO ROCHA

Stop Reviewing Code Manually
Take the hassle out of code reviews—Codacy flags errors so you can fix them quickly. Address security concerns, code duplication, code complexity and drops in coverage, directly from your workflow. Click here to get started →
CODACYsponsor

Introduction to the Python Calendar Module
Short & sweet intro to the calendar module in the Python standard library.
STACKABUSE.COM

Be Your Own Certificate Authority
How to create a simple, internal CA for your microservice architecture or integration testing—with Python.
MOSHE ZADKA

Linear Regression in Python
In this step-by-step tutorial, you’ll get started with linear regression in Python. Linear regression is one of the fundamental statistical and machine learning techniques, and Python is a popular choice for machine learning.
REAL PYTHON

LSTMs for Human Activity Recognition
An example of using TensorFlow for Human Activity Recognition (HAR) on a smartphone data set in order to classify types of movement, e.g. “walking”, “sitting”, “standing” etc.
GUILLAUME CHEVALIER

Raspberry Pi for Computer Vision and Deep Learning
You can teach your Raspberry Pi to “see” using Computer Vision, Deep Learning, and OpenCV. Let Adrian Rosebrock show you how →
PYIMAGESEARCH sponsor

How to Write a Python Web Framework (Part 4)
In this part of Jahongir’s blog post series you’ll see how to expand your web framework with custom exception handlers, support for static files, and middleware processing.
JAHONGIR RAHMONOV

Using Python to Analyze Game of Thrones
Want to learn Python? What better way to learn than by having a Game of Thrones project to complete as motivation.
ROCKY KEV • Shared by Ricky White


Projects & Code


eht-imaging: The Code Behind the Black Hole Image
Imaging, analysis, and simulation software for radio interferometry used for generating the famous black hole image. Python FTW!
GITHUB.COM/ACHAEL

aiodnsresolver: Pure Python Asyncio DNS Resolver
GITHUB.COM/MICHALC

sunfish: Sunfish: A Python Chess Engine in 111 Lines of Code
GITHUB.COM/THOMASAHLE

Djaneiro: Django Snippets for VS Code
SCOTT BARKMAN

pyts: Series Transformation and Classification
GITHUB.COM/JOHANNFAOUZI

python-broqer: Processing Continuous Data Streams in a Reactive Style
GITHUB.COM/SEMIVERSUS • Shared by Günther Jena

fastapi: Python Web Framework for Building APIs
GITHUB.COM/TIANGOLO

python-ext-wasm: Run WebAssembly Binaries in Python
GITHUB.COM/WASMERIO

📆🐍 Upcoming Python Events


PyColorado 2019 CFP
September 6 to September 8 in Denver, CO

San Francisco PyData Meetup Group
April 23

PyLadies Dublin
April 18, 2019

Karlsruhe Python User Group (KaPy)
April 19, 2019

BangPypers
April 20, 2019

SciPy Japan 2019
April 23 to April 25, 2019
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.