Issue #513

Faster Code, Multiple Constructors, Dockerizing Django, and More

Feb. 22, 2022

Faster Code, Multiple Constructors, Dockerizing Django, and More
#513 – FEBRUARY 22, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
How We Optimized Python API Server Code 100x
Tricks we used to speed up calls to our analytical API written in Python: asyncio, SQLAlchemy, asyncpg, Cython plugins, improved data structures, and replaced some Pandas with NumPy.
VADIM MARKOVTSEV • Shared by Vadim Markovtsev

Providing Multiple Constructors in Your Python Classes
Learn how to provide multiple constructors in your Python classes, including: checking argument types, using default argument values, writing class methods, and implementing single-dispatch methods.
REAL PYTHON

How to Quickly Label Data for Machine Learning
With Toloka, you can control the accuracy and speed of data labeling to develop high performing ML models. Our platform supports annotation for image classification, semantic segmentation, object detection, named entity recognition, sentiment analysis, speech recognition, text classification →
TOLOKA AIsponsor

Dockerizing Django With Postgres, Gunicorn, and Nginx
Tutorial on configuring Django to run on Docker using Postgres, Nginx, and Gunicorn. All the ins-and-outs of Django in production.
MICHAEL HERMAN

PEP 654 Accepted: Exception Groups
New standard for grouping exceptions together
PYTHON.ORG

PSF Is Hiring to Build PyPI Features
PYTHON SOFTWARE FOUNDATION


Discussions


How Do I Go From Being a Beginner to Competent in Python?
HACKER NEWS

What’s Your Favorite Feature or Add-on in Django?
MIKE DRISCOLL


Python Jobs


Python Software Engineer
FLASHPOINT 📍 ANYWHERE

Mid/Senior Django Developer
TYPE/CODE 📍 BROOKLYN, NY, USA

Sr Python Engineer
FLASHPOINT 📍 ANYWHERE

Senior Backend Engineer - Django
DATAPANE 📍 UK, EUROPE

Backend Software Engineer
CATALPA INTERNATIONAL 📍 ASIA PACIFIC REGION

Senior Full-Stack Web Developer
MONETIZEMORE 📍 ANYWHERE

Python Engineer - Web Scraping
NEWSCATCHER 📍 ASIA, TX, AMERICA

Full Stack Software Engineer - Python
DEEP SENTINEL 📍 UNITED STATES

Senior Software Engineer
DROICE LABS 📍 ANYWHERE

Python Trainer
PHYSIKALISCH-TECHNISCHE BUNDESANSTALT 📍 JAKARTA, INDONESIA

More Python Jobs >>>


Articles & Tutorials


The Internals of Python’s functools.wraps Decorator
The functools.wraps decorator keeps your function’s identity intact after it’s been wrapped by a decorator. Ever wondered how it works?
REDOWAN DELOWAR

Drawing Fractals and Working With a Weather API
Have you been wanting to explore fractals and complex numbers in Python? Would you like to practice working with APIs in Python through a new project? This week on the show, Christopher Trudeau discusses a fresh batch of PyCoder’s Weekly articles and projects.
REAL PYTHON podcast

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

10 Tools I Wish I Knew When I Started Working With Python
Learn about how venvs, flake8, black, isort, pytest, commitizen, semantic-release, pre-commit hooks, and Github Actions work together!
KEVIN YLU

Why Can’t You Reverse a String With a Flag Emoji?
What’s the output of "🇺🇸"[::-1]? A deep dive into the world of Unicode and how Python reverses strings.
DAVID AMOS • Shared by David Amos

Understanding Attributes, Dicts and Slots in Python
Python classes can have arbitrary attributes. How are they stored and how do they impact performance?
BAS STEINS

A Tour of Python’s itertools Library
Tour Python’s itertools module and learn about cycle(), groupby(), chain(), and more.
MIKE DRISCOLL

The Developer / Product Team Notification Template Problem
Notifications are hard. They require infrastructure that is reliable, scalable and observable as well as an end user experience that is helpful and respectful. That’s why we built Courier.
COURIERsponsor

Futures and Easy Parallelisation
“Futures are a convenient abstraction in Python for running tasks in the background.”
JAIME BUELTA

Bite-Sized Refactoring
Wye refactoring your code is important and hints on what to look for.
RODRIGO GIRÃO SERRÃO

Validate Email Addresses in Python With Email-Validator
Using the email-validator library to validate an email address
DIMITRIJE STAMENIC


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 →

DevToys: Windows Based Dev Tool; JSON Formatting, Text Comparison, Regexes…
DEVTOYS.APP • Shared by Ian Currie

spyql: Command Line Data Query Data Tool Using SQL-like SELECT and Python Expressions
GITHUB.COM/DCMOURA

ssort: Python Statement Sorting, Organize Your Code
GITHUB.COM/BWHMATHER

Lurnby: Active Reading and Personal Knowledge Management
GITHUB.COM/ROZNOSHCHIK

tsfel: Time Series Feature Extraction Library
GITHUB.COM/FRAUNHOFERPORTUGAL

pz: Use Python on the Command Line With Other Shell Commands
GITHUB.COM/CZ-NIC

nvelope: Use Python Dataclasses to Define a JSON Schema
GITHUB.COM/MONOMONEDULA • Shared by Eddy G.

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
February 23, 2022

PyKla Monthly Meetup
February 23, 2022

A Deep Dive Into Fairness in Machine Learning Using Fairlearn
February 23, 2022

Heidelberg Python Meetup
February 23, 2022

PyStaDa
March 2, 2022

Python Web Conference 2022 (Virtual)
March 21 to March 25, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.