Issue #526

Building a URL Shortener, Debug Life, Pigeon Deterrents, and More

May 24, 2022

Building a URL Shortener, Debug Life, Pigeon Deterrents, and More
#526 – MAY 24, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Build a URL Shortener With FastAPI and Python
In this step-by-step project, you’ll build an app to create and manage shortened URLs. Your Python URL shortener can receive a full target URL and return a shortened URL. You’ll also use the automatically created documentation of FastAPI to try out your API endpoints.
REAL PYTHON

Contributing to Open Source: rich #2073
Rodrigo decided he’d start contributing to Open Source and it began by being assigned bug #2073 in the rich library. This article goes into great detail on environment set up, how he found the bug, and what it took to squish it.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão

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

Robotic Water Pistol as Pigeon Deterent
Max built a wifi-equipped water gun to shoot the pigeons on his balcony. It is controlled over the internet by a python script running openCV reading the camera image from an old iPhone. See all the details.
MAX NAGY

Swiss Python Summit: Early Bird Tickets & Call for Proposals
PYTHON-SUMMIT.CH • Shared by Denis Krienbühl

TensorFlow 2.9.0 Released
GITHUB.COM/TENSORFLOW

Django 4.1 Alpha 1 Released
DJANGO SOFTWARE FOUNDATION

Python 3.9.13 Maintenance Release
CPYTHON DEV BLOG

CPython Faster: Timing Improvement Results in Beta
GITHUB.COM/FASTER-CPYTHON


Discussions


Do You Have a Favorite Playlist for Coding?
TWITTER.COM/PYTHON_ENGINEER

What’s Your Favorite Feature in Python?
TWITTER.COM/DRISCOLLIS


Python Jobs


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

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

Data & Operations Engineer
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

More Python Jobs >>>


Articles & Tutorials


The Real Python Podcast: Protobuf in Python
Would you like a way to send structured serialized data between different platforms and languages? What if the data was self-documenting, could automatically generate Python code, and would validate itself? This week on the show, Liran Haimovitch talks about protocol buffers and communicating with microservices through Remote Procedure Calls (RPC).
REAL PYTHON podcast

Forget Jupyter, Showcase Your Data with Dashboards
Streamlit can be used as an alternative to Jupyter notebooks for sharing research data. Streamlit is a relatively new library for creating simple web apps and dashboards using just Python. Learn why it might be the right choice for your next data project.
STEF SMEETS • Shared by Stef Smeets

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

Tips That May Save You From the Hell of PyYAML
YAML is a data-serialization language that is widely used, but processing YAML, especially using PyYAML can be painful and full of traps. Learn some tips and code snippets that can make your life with PyYAML easier.
XIAO / REORX • Shared by Reorx

Automate All the Boring Kubernetes Operations With Python
Kubernetes has become a de-facto standard in recent years, but many of the tasks in it are repetitive. Learn how to use Python’s Kubernetes Client library to automate all the boring Kubernetes tasks and operations.
MARTIN HEINZ • Shared by Martin Heinz

Pandas Tutor: Using Pyodide to Teach Data Science at Scale
Pandas Tutor is a data science education tool that visualizes how pandas code transforms dataframes. It was recently ported to Pyodide and this article describes the journey.
LAU & GUO

Using Python Class Constructors
In this video course, you’ll learn how class constructors work in Python. You’ll also explore Python’s instantiation process, which has two main steps: instance creation and instance initialization.
REAL PYTHON course

A Dev’s Thoughts on Developer Productivity
Measuring developer productivity is a challenge and often done by those outside the group. This article talks about developer “flow state” and how interruptions disrupt productivity.
BEYANG LIU

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

Adding GraphQL to Your Django App
GraphQL is a powerful mechanism for defining APIs in your web application. Learn about Graphene and Strawberry, two libraries that work with Django to provide GraphQL end points.
PATRICK ALTMAN

If Programming Languages Were Futurama Characters
A little bit of fun. Evidently Python is Lrrr.... read on to find out why.
JAN SCHAUMANN


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 →

pikascript: Lightweight Python Engine That Fits in 32KB Flash
GITHUB.COM/PIKASTECH

envelope: Sign, Attach, & Send E-Mail in a Single Line of Code
GITHUB.COM/CZ-NIC

rounder: Rounding Numbers in Collection Data Types
PYPI.ORG • Shared by Marcin

plux: A Dynamic Code Loading Framework for Plug-Ins
GITHUB.COM/LOCALSTACK • Shared by Harsh Mishra

monaco_generations: Simulating an F1 Race With 308 Cars
GITHUB.COM/ADEILERTSON • Shared by Andrew Eilertson

Pants: Video Filter to Add Pants on Zoom Calls
GITHUB.COM/EVERYTHINGISHACKED

📆🐍 Upcoming Python Events


Python: The New Normal
May 23 to May 26, 2022

Weekly Real Python Office Hours Q&A (Virtual)
May 25, 2022

PyKla Monthly Meetup
May 25, 2022

PyStaDa
May 25, 2022

PyCon LT 2022
May 26 to May 28, 2022

PyCon Italy 22
June 2 to June 6, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.