Issue #359

Beautiful Pythonic Code, OOP Tips, Setting Up Python Projects, and More

March 12, 2019

Beautiful Pythonic Code, OOP Tips, Setting Up Python Projects, and More
#359 – MARCH 12, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Writing Beautiful Pythonic Code With PEP 8
Learn how to write high-quality, readable code by using the Python style guidelines laid out in PEP 8. Following these guidelines helps you make a great impression when sharing your work with potential employers and team mates.
REAL PYTHON video

Enforcing The Single Responsibility Principle (SRP) in Python
The Single Responsibility Principle (or SRP) is an important concept in software development. The main idea of this concept is: all pieces of software must have only a single responsibility. Nikita’s article guides you through the complex process of writing simple code with some hands-on refactoring examples. You’ll use callable classes, SRP, dependency injection, and composition to write simple Python code. Nice read!
NIKITA SOBOLEV

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, you can receive interview requests directly from top companies seeking Python devs. Get started →
VETTERYsponsor

How to Set Up Your Python Project for Success With Tests, CI, and Code Coverage
How to add tests, CI, code coverage, and more. Very detailed writeup.
JEFF HALE

Detecting Real vs Fake Faces With Python and OpenCV
Learn how to detect liveness with OpenCV, Deep Learning, and Keras. You’ll learn how to detect fake faces and perform anti-face spoofing in face recognition systems with OpenCV.
ADRIAN ROSEBROCK

Managing Multiple Python Versions With pyenv
In this step-by-step tutorial, you’ll learn how to install multiple Python versions and switch between them with ease, including project-specific virtual environments, even if you don’t have sudo access with pyenv.
REAL PYTHON

Python Packages Growth Since 2005
“The Python ecosystem has been steadily growing [since 2005]. After the first few years of hyper growth as PyPI gained near-full adoption in the Python community, the number of packages actively developed each year—meaning they had at least one release or new distribution uploaded—has increased 28% to 48% every year.”
PYDIST.COM


Discussions


Loop With “Else” Clause
“What is the Pythonic way to handle the situation where if a condition exists the loop should be executed, but if it does not something else should be done?”
PYTHON.ORG

Login: admin Password: admin
TWITTER.COM/REALPYTHON

The Source for the Zen of Python Completely Violates the Zen of Python
“I was clicking around in PyCharm and noticed that the this module in CPython violates basically all of these principles.”
REDDIT


Python Jobs


Sr Enterprise Python Developer
KOGNITIV 📍 TORONTO, CANADA

Senior Systems Engineer
PRETECKT 📍 HAMILTON, CANADA

Python Web Developer
PREMIERE DIGITAL SERVICES 📍 REMOTE

Software Developer
L2T, LLC 📍 HERNDON, VA

Python Software Engineer
WOOGA 📍 BERLIN, GERMANY

Computer Science Teacher
ARTCENTER COLLEGE OF DESIGN 📍 PASADENA, CA

Senior Python Engineer
15FIVE 📍 NEW YORK, NY

Software Engineer
CHARON TECHNOLOGIES 📍 HERNDON, VA

Web UI Developer
CHARON TECHNOLOGIES 📍 HERNDON, VA

More Python Jobs >>>


Articles & Tutorials


Don’t Make It Callable
You can make any Python object callable by adding a __call__ method to it. Like operator overloading this seems like a nifty idea at first…but is it really? Moshe’s article goes over some use cases and examples to discuss whether making objects callable is a good idea or not.
MOSHE ZADKA

Python Pandas: Merging Dataframes Using Inner, Outer, Left and Right Joins
How to merge different Dataframes into a single dataframe using Pandas’ DataFrame.merge() function. Merging is a big topic, so this part focuses on merging dataframes using common columns as Join Key and joining using Inner Join, Right Join, Left Join and Outer Join.
THISPOINTER.COM

Python Opportunities Come to You on Indeed Prime
Indeed prime is a hiring platform exclusively for tech talent like you. If you’re accepted, we’ll match you with companies and roles that line up with your skills, career goals and salary expectations. Apply for free today.
INDEEDsponsor

An Introduction to Neural Networks With Python
A simple explanation of how neural networks work and how to implement one from scratch in Python. Nice illustrations!
VICTOR ZHOU

Import Almost Anything in Python
An intro to module loaders and finders so you can “hack” Python’s import system for fun and profit.
ALEKSEY BILOGUR • Shared by Aleksey Bilogur

Private Python Package Management With Poetry and Packagr
CHRISTOPHER DAVIES

I Learned Python in a Week and Only Sorta Regret It
MEZEROTM.COM

Why You Want Formal Dependency Injection in Python Too
“In other languages, e.g., Java, explicit dependency injection is part of daily business. Python projects however very rarely make use of this technique. I’d like to make a case for why it might be useful to rethink this approach.”
GITHUB.COM/DOBIASD

Understanding and Improving Conda’s Performance
Update from the Conda team regarding Conda’s speed, what they’re working on, and what performance improvements are coming down the pike.
ANACONDA.COM

Sentence Similarity in Python Using Doc2Vec
Using Python to estimate the similarity of two text documents using the Doc2Vec module.
KANOKI.ORG

Iterating with Simplicity: Evolving a Django app with Intercooler.js
ADAM STEPINSKI


Projects & Code


ctyped: Build Ctypes Interfaces for Shared Libraries With Type Hinting
GITHUB.COM/IDLESIGN • Shared by Juan Rodriguez

iodide-project/pyodide: Run CPython on WASM in the browser
And not just that, it’s a full Python scientific stack, compiled to WebAssembly for running in the browser. More info here.
GITHUB.COM/IODIDE-PROJECT

Pyckitup: Python Game Engine That Runs on WebAssembly
PICKITUP247.COM

PEP 8 Speaks: GitHub Integration for Python Code Style
A GitHub app to automatically review Python code style over Pull Requests.
PEP8SPEAKS.COM

ArchiveBox: Open Source Self-Hosted Web Archive
GITHUB.COM/PIRATE

minik: Web Framework for the Serverless World
GITHUB.COM/EABGLOBAL • Shared by PythonistaCafe

📆🐍 Upcoming Python Events


Python Atlanta
March 14, 2019

Karlsruhe Python User Group (KaPy)
March 15, 2019

Django Girls Rivers 2019 Workshop
March 15 to March 17, 2019

PyCon Odessa
March 16 to March 17, 2019

PyCon SK 2019
March 22 to March 25, 2019
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.