Issue #489

PEP 668, Python for Personal Finance, EAFP vs LBYL, and More

Sept. 7, 2021

PEP 668, Python for Personal Finance, EAFP vs LBYL, and More
#489 – SEPTEMBER 7, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
PEP 668: Graceful Cooperation Between External and Python Package Managers
This draft PEP proposes a way for resolving conflicts between OS package managers (e.g. apt) and Python-specific package management tools (e.g. pip).
PYTHON.ORG

How Long Does It Take to Learn Python?
How should someone assess whether or not learning Python is a good investment of their time, how long it will take them, and what background factors they need to consider when planning their learning journey? This article attempts to clarify these common beginner questions.
REAL PYTHON

Track Python Application Performance With End-to-End Tracing With Datadog APM
With Datadog APM you can debug errors and bottlenecks in your code by tracing requests across web servers and services in your environment. Then correlate between distributed request traces, metrics, and logs to troubleshoot issues without switching tools or contexts. Try Datadog APM free →
DATADOGsponsor

How You Can Track Your Personal Finances Using Python
This post introduces readers to a workflow for tracking their personal finances using only the Python ecosystem. The end result is extremely focused on data privacy, uses only open-source software, and is 100% self-hosted.
SIDDHANT GOEL

Exciting New Ways to Be Told That Your Python Code Is Bad
How and why the author added two new linter rules to Pylint: consider-ternary-expression and while-used.
NICK DROZD

Saving Costs Asking for Forgiveness in Python
A discussion of EAFP (“Easier to ask for forgiveness than permission”) vs LBYL (“Look before you leap”) code patterns in Python.
WALID ZIOUCHE

Nuitka 0.6.15 Released
Nuitka is a Python compiler written in Python, compatible with Python2 (2.6, 2.7) and Python3 (3.3–3.9). You feed Nuitka your Python source code and it generates an executable or extension module.
NUITKA DEV BLOG

Credit-Card-Stealing, Backdoored Packages Found on PyPI
CHRIS WILLIAMS


Discussions


Is Django Rest Framework (DRF) Still Considered Alive?
GITHUB.COM/ENCODE

If You Managed the Django Project, What Would You Focus on in the Next 12 Months?
REDDIT

What Were the First 5 Programs You Made?
REDDIT


Python Jobs


Data Engineer Python & PostgreSQL (Newport Beach, CA)
RESEARCH AFFILIATES

Sr Backend Developer (Amsterdam, Netherlands)
GUTS TICKETS

Lead Developer Python (San Diego, CA)
OPTELLO

Software Engineer Python (Remote)
THREATQUOTIENT

More Python Jobs >>>


Articles & Tutorials


Harnessing Python’s math Module and Exposing Practical Pandas Functions
How well do you know Python’s math module? Maybe you’ve used a few of the constants or arithmetic functions. You may be surprised by the amount of functionality hiding within this built-in library, and perhaps you don’t need to reach for an additional outside library for common use cases.
REAL PYTHON podcast

Making NumPy Accessible: Guidelines and Tools
“NumPy is now foundational to Python scientific computing. Our efforts reach millions of developers each month. As our user base grows, we recognize that we are neglecting the disabled community by not having our website and documentation up to modern accessibility standards.”
MARS LEE

Developing a Django Application Using AWS and NICE DCV (Tutorial)
In this in-depth tutorial for beginners, you’ll learn how to run, build, test, and deploy a Django application in PyCharm Professional using the Django Rest Framework and the AWS stack with NICE DCV. Use the code DJANGOTUTORIAL and get 3 months of PyCharm Professional for free →
JETBRAINSsponsor

Development and Release of Type4Py: Machine Learning-Based Type Auto-Completion for Python
”[…] retrofitting types is a cumbersome and error-prone process. To address this, we propose Type4Py, an ML-based type auto-completion for Python. It assists developers to gradually add type annotations to their codebases.”
AMIR MIR

Graph Your Data With Python and ggplot
Learn how to use ggplot in Python to build data visualizations with plotnine. You’ll discover what a grammar of graphics is and how it can help you create plots in a very concise and consistent way.
REAL PYTHON course

Web Scraping in Python: Scaling to Distributed Crawling
“Build your own distributed crawler with custom parsers […] Discover new pages and store the exact content you need, all in less than 300 LOC.”
ANDER RODRÍGUEZ

Why Tracing Might Replace (Almost) All Logging
Lightstep CEO and Co-founder Ben Sigelman shares his vision for the future of distributed tracing.
LIGHTSTEPsponsor

Visualizing Python Modules and Dependencies With Neo4j
“A simple neo4j tutorial about a Python tool that ingests information about all installed Python modules on your computer and visualizes it.”
ADNAN SIDDIQI

Intro to Creating Graphs with Python + matplotlib
Learn how to create multiple types of graphs and add legends, titles and more in this tutorial about matplotlib and Python.
MIKE DRISCOLL

Python Without an Operating System [2015]
How Josh Triplett and his colleagues at Intel got the Python interpreter to run inside the GRUB boot loader.
JAKE EDGE

attrs vs pydantic
An account of why the author prefers using the attrs library over Pydantic.
TIN TVRTKOVIĆ • Shared by Python Bytes FM opinion

What Is Python’s Ellipsis () Object?
FLORIAN DAHLITZ • Shared by Florian Dahlitz


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

legendary: Open-Source Replacement for the Epic Games Launcher
GITHUB.COM/DERROD

freqtrade: Free, Open Source Crypto Trading Bot
GITHUB.COM/FREQTRADE

xdoctest: An Improved Version of Python’s Builtin doctest Module
GITHUB.COM/EROTEMIC

pint: Define, Operate and Manipulate Physical Quantities
PINT.READTHEDOCS.IO

nntpserver.py: No-Dependency, Single File NNTP Server Library
GITHUB.COM/EPILYS

prettymaps: Draw Pretty Maps From OpenStreetMap Data
GITHUB.COM/MARCELOPRATES

venv-kernel: Use Your Virtual Environments From Within Jupyter Notebooks
PYPI.ORG • Shared by Björn Rüffer

📆🐍 Upcoming Python Events


⋅ Real Python Office Hours (Virtual) September 8, 2021

⋅ PyConline AU 2021 September 10 to September 13, 2021

⋅ PyCon Odessa 2021 September 11 to September 13, 2021

⋅ Python Miami September 11 to September 12, 2021

⋅ PyDelhi User Group Meetup September 11, 2021

⋅ Dominican Republic Python User Group September 14 to September 15, 2021

⋅ PyCon India 2021 September 17 to September 21, 2021
Happy Pythoning!
Copyright © 2021 PyCoder’s Weekly, All rights reserved.