Issue #341

Come work on PyPI, the future of Python packaging, and more

Nov. 6, 2018

Come work on PyPI, the future of Python packaging, and more
#341 – NOVEMBER 6, 2018 VIEW IN BROWSER
The PyCoder’s Weekly Logo
PSF: Upcoming Contract Work on PyPI
If you have experience with security features or localization features in Python codebases, this is an opportunity to get involved with PyPI. You can register your interest to participate as a contractor online. The project begins in January 2019.
PYTHON SOFTWARE FOUNDATION

The Best Flake8 Extensions for Your Python Project
The flake8 code linter supports plugins that can check for additional rule violations. This post goes into the author’s favorite plugins. I didn’t know flake8-import-order was a thing and I will definitely try this out in my own projects.
JULIEN DANJOU

“Deal With It” Meme GIF Generator Using Python + OpenCV
How to create animated GIFs using OpenCV, Python, and ImageMagick. Super-detailed tutorial and the results are awesome.
ADRIAN ROSEBROCK

Find a Python Job Through Vettery
Vettery specializes in developer roles and is completely free for job seekers. Interested? Submit your profile, and if accepted onto the platform, you can receive interview requests directly from top companies seeking Python developers. Get Started.
VETTERYsponsor

Python 2.7 Halloween Facepaint
Scary!
REDDIT.COM

Writing Comments in Python (Guide)
How to write Python comments that are clean, concise, and useful. Get up to speed on what the best practices are, which types of comments it’s best to avoid, and how you can practice writing cleaner comments.
REAL PYTHON

pyproject.toml: The Future of Python Packaging
Deep dive with Brett Cannon into changes to Python packaging such as pyproject.toml, PEP 517, 518, and the implications of these changes. Lots of things happening in that area and this interview is a great way to stay up to date.
TESTANDCODE.COM podcast

Crash Reporting in Desktop Python Applications
The Dropbox desktop client is partly written in Python. This post goes into how their engineering teams do live crash-reporting in their desktop app. Also check out the related slide deck.
DROPBOX.COM


Discussions


When to Use @staticmethod vs Writing a Plain Function?
MAIL.PYTHON.ORG

Can a Non-Python-Programmer Set Up a Django Website With a Few Hours of Practice?
REDDIT.COM

Python Interview Question Post-Mortem
The question was how to merge two lists together in Python (without duplicates.) Interviewers want to see a for-loop solution, even though it’s much slower than what the applicant came up with initially. Good read on what to do/what to avoid if you have a coding interview coming up.
REDDIT.COM

I Just Got a $67k Job Before I Even Graduated, All Thanks to Python
REDDIT.COM


Python Jobs


Senior Software Engineer - Full Stack (Raleigh, North Carolina)
SUGARCRM

Head of Engineering (Remote, Work from Anywhere)
FINDKEEP.LOVE

Senior Developer (Chicago, Illinois)
PANOPTA

Senior Software Engineer (Los Angeles, California)
GOODRX

More Python Jobs >>>


Articles & Tutorials


Setting Up Python for Machine Learning on Windows
In this step-by-step tutorial, you’ll cover the basics of setting up a Python numerical computation environment for machine learning on a Windows machine using the Anaconda Python distribution.
REAL PYTHON

Diving Into Pandas Is Faster Than Reinventing It
How modern Pandas makes your life easier by making your code easier to read—and easier to write.
DEAN LANGSAM • Shared by Dean Langsam

Structure of a Flask Project
Suggestions for the folder structure of a Flask project. Nice and clean!
LEPTURE.COM • Shared by Python Bytes FM

Dockerizing Django With Postgres, Gunicorn, and Nginx
How to configure Django to run on Docker along with PostgreSQL, Nginx, and Gunicorn.
MICHAEL HERMAN

Making Python Project Executables With PEX
PEX files are distributable Python environments you can use to build executables for your project. These executables can then be copied to the target host and executed there without requiring an install step. This tutorial goes into how to build a PEX file for a simple Click CLI app.
PETER DEMIN

I Was Looking for a House, So I Built a Web Scraper in Python
MEDIUM.COM/@FNEVES • Shared by Ricky White

A Gentle Visual Intro to Data Analysis in Python Using Pandas
Short & sweet intro to basic Pandas concepts. Lots of images and visualizations in there make the article an easy read.
JAY ALAMMAR

Packaging and Developing Python Projects With Nested Git-Submodules
Working with repositories that have nested Git submodules of arbitrary depth, in the context of a Python project. Personally I’m having a hard time working effectively with Git submodules, but if they’re a good fit for your use case check out this article.
KONSTANTINOS DEMARTINOS

Python vs NumPy vs Nim Performance Comparison
Also check out the related discussion on Reddit.
NARIMIRAN.GITHUB.IO

Speeding Up JSON Schema Validation in Python
PETERBE.COM

Careful With Negative Assertions
A cautionary tale about testing that things are unequal…
NED BATCHELDER

Data Manipulation With Pandas: A Brief Tutorial
Covers three basic data manipulation techniques with Pandas: Modifying a DataFrame using the inplace parameter, grouping using groupby(), and handling missing data.
ERIK MARSJA

Full-Stack Developers, Unicorns and Other Mythological Beings
What’s a “Full-Stack” developer anyway?
MEDIUM.COM/DATADRIVENINVESTOR • Shared by Ricky White

Writing Custom Celery Task Loggers
The celery.task logger is used for logging task-specific information, which is useful if you need to know which task a log message came from.
BJOERN STIEL

Generating Software Tests Automatically
An online textbook on automating software testing, specifically by generating tests automatically. Covers random fuzzing, mutation-based fuzzing, grammar-based test generation, symbolic testing, and more. Examples use Python.
FUZZINGBOOK.ORG

Custom User Models in Django
How and why to add a custom user model to your Django project.
WSVINCENT.COM • Shared by Ricky White


Projects & Code


Vespene: Python CI/CD and Automation Server Written in Django
VESPENE.IO

zulu: A Drop-In Replacement for Native Python Datetimes That Embraces UTC
A drop-in replacement for native datetime objects that always uses UTC. Makes it easy to reason about zulu objects. Also conveniently parses ISO8601 and timestamps by default without any extra arguments.
DERRICK GILLAND • Shared by Derrick Gilland

My Python Examples (Scripts)
Little scripts and tools written by someone who says they’re “not a programmer.” Maybe the code quality isn’t perfect here—but hey, if you’re looking for problems to solve with Python, why not do something similar or contribute to this project by improving the scripts?
GITHUB.COM/GEEKCOMPUTERS

termtosvg: Record Terminal Sessions as SVG Animations
A Unix terminal recorder written in Python that renders your command line sessions as standalone SVG animations.
GITHUB.COM/NBEDOS

CPython Speed Center
A performance analysis tool for CPython. It shows performance regressions and allows comparing different applications or implementations over time.
SPEED.PYTHON.ORG

ase: Atomic Simulation Environment
A Python library for working with atoms. There’s a library on PyPI for everything…
GITLAB.COM/ASE

Various Pandas Solutions and Examples
PYTHONPROGRAMMING.IN • Shared by @percy_io

pymc-learn: Probabilistic Models for Machine Learning
Uses a familiar scikit-learn syntax.
PYMC-LEARN.ORG

ReviewNB: Jupyter Notebook Diff for GitHub
HTML-rendered diffs for Jupyter Notebooks. Say goodbye to messy JSON diffs and collaborate on notebooks via review comments.
REVIEWNB.COM


Events


Python LX
14 Nov. in Lisbon, Portugal
PYTHON.ORG

PyData Bristol Meetup (Nov 13)
PYTHON.ORG

Python Miami
10 Nov. – 11 Nov. in Miami, FL.
PYTHON.ORG

Happy Pythoning!
Copyright © 2018 PyCoder’s Weekly, All rights reserved.