Issue #528

Django Static Files, Data Cleaning, CPython Strings, and More

June 7, 2022

Django Static Files, Data Cleaning, CPython Strings, and More
#528 – JUNE 7, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Django Static Files and Templates
“Static files like CSS, JavaScript, and fonts are a core piece of any modern web application. They are also typically confusing for Django newcomers since Django provides tremendous flexibility around how these files are used. This tutorial will demonstrate current best practices for configuring static files in both local development and production.”
WILL VINCENT

Data Cleaning With pandas and NumPy
In this video course, you’ll learn how to clean up messy data using pandas and NumPy. You’ll become equipped to deal with a range of problems, such as missing values, inconsistent formatting, malformed records, and nonsensical outliers.
REAL PYTHON course

Optimize Python Code Inefficiencies and Latency With Datadog Application Monitoring
Datadog’s APM generates detailed flame graphs to provide you with deeper insights into code-level performance enabling teams to identify bottlenecks and latency in their Python code. Navigate seamlessly between app traces, logs and metrics to resolve app issues fast. Try Datadog APM free →
DATADOGsponsor

A Brief Look at CPython String
“Have you ever noticed that a string with just a few characters in Python uses several dozen bytes of memory? We handle a lot of short strings and I have been wondering why Python seems to store strings seemingly so inefficiently.”
ONDŘEJ MĚKOTA

Expedited Release of Python 3.11.0b3
CPYTHON DEV BLOG

Django Bugfix Release: 4.0.5
DJANGO SOFTWARE FOUNDATION

Typosquatting Attack on requests Package
JOSSEF HARUSH

Python News: What’s New From May 2022
REAL PYTHON


Discussions


How to Get Out of Tutorial Hell?
REDDIT

Ask HN: Have We Screwed Ourselves as Software Engineers?
HACKER NEWS


Python Jobs


Backend Software Developer
CANOPY 📍 DRAPER, UT, USA

Gameful Learning Developer
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Python Technical Architect
BLENDERBOX 📍 USA

Software Engineer (Los Angeles or Dallas)
CAUSEWAY CAPITAL MANAGEMENT LLC 📍 LOS ANGELES, CA, USA

DevOps Engineer
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Academic Innovation Developer
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Software Development Lead
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Senior Backend Engineer
DOIST 📍 ANYWHERE

Senior Storytelling Framework Engineer - Python
GOPRO 📍 FRANCE

Senior Software Engineer - Python Full Stack
BLENDERBOX 📍 USA

More Python Jobs >>>


Articles & Tutorials


Oh Open Source Supply Chain Security, Where Art Thou?
Recent security issues with ctx on PyPI followed shortly by the discovery of some typeosquatting has everyone re-examining their package supply chain. Jurgen writes about finding weirdness with two of the most popular packages out there.
JÜRGEN GMACH • Shared by Jürgen Gmach

How To Profile Python Code
No matter how good you are, sometimes your code just runs slow. Learning how to properly profile your software to identify and fix bottlenecks is a useful skill. This article talks about what you need to know to measure your code’s performance and how to use the cProfile, profile, and timeit libraries, along with others.
JOHN LOCKWOOD

Find Your Next Tech Job Through Hired
Hired has 1000s of companies ranging from startups to Fortune 500s that are actively hiring developers, data scientists, mobile engineers, and more. It’s really simple: create a profile with your skills and preferences for hiring managers to reach you directly. Sign up today →
HIREDsponsor

LBYL vs EAFP: Preventing or Handling Errors in Python
In this tutorial, you’ll learn about two popular coding styles in Python: look before you leap (LBYL) and easier to ask forgiveness than permission (EAFP). You can use these styles to deal with errors and exceptional situations in your code. You’ll dive into the LBYL vs EAFP discussion in Python.
REAL PYTHON

Managing Large Python Data Science Projects With Dask
What do you do when your data science project doesn’t fit within your computer’s memory? One solution is to distribute it across multiple worker machines. This week on the show, Guido Imperiale from Coiled talks about Dask and managing large data science projects through distributed computing.
REAL PYTHON podcast

People in Your Software Supply Chain
Behind all the most popular packages you routinely pip install are a host of people whose names you likely don’t recognize. This thoughtful article talks about what we as a coding community can do to acknowledge maintainers more and contribute.
SETH MICHAEL LARSON

TDD Practice: Time API with Django
This is a step-by-step coding Kata based on a workshop that Brenton ran at DjangoConEU 2018. It gives you practice in using a Test-Driven-Development approach by writing tests for a “get time” API in Django.
BRENTON CLEELAND

Building a CRUD App with FastAPI, MongoDB, and Beanie
A step-by-step tutorial on developing an asynchronous API with FastAPI and MongoDB using the Beanie ODM library to interact with MongoDB .
ABDULAZEEZ ABDULAZEEZ ADESHINA • Shared by Abdulazeez Abdulazeez Adeshina

Unlock Secret Knowledge from Python Experts for Just $10
Packt’s Spring Sale is on and for a limited period, all eBooks and Videos are only $10. Our Products are available as PDF, ePub, and MP4 files for you to download and keep forever. All the practical content you need - by developers for developers.
PACKT PUBLISHINGsponsor

Making pip install a Little Less Slow
Installing packages with pip, Poetry, and Pipenv can be slow. Learn how to ensure it’s not even slower, and a potential speed-up.
ITAMAR TURNER-TRAURING

Crash Course in Web3 Application Development With Python
A step-by-step tutorial on how to send your first transaction on the Ethereum blockchain using Python and the web3 package.
TYLER LANGLOIS


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 →

huey: A Little Task Queue for Python
GITHUB.COM/COLEIFER

django-managerie: Expose Django Commands in the Admin
GITHUB.COM/AKX

pyAudioProcessing: Audio Feature Extraction & Classification
GITHUB.COM/JSINGH811

pyperformance: Python Performance Benchmark Suite
GITHUB.COM/PYTHON

ga-extractor: Tool for Extracting Google Analytics Data
GITHUB.COM/MARTINHEINZ

📆🐍 Upcoming Python Events


Python Meeting Düsseldorf
June 8, 2022

Weekly Real Python Office Hours Q&A (Virtual)
June 8, 2022

Python North East
June 8, 2022

Python Live: An Introduction to Practical MLOps
June 9, 2022

Python Miami
June 11 to June 12, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.