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 (Anywhere)
FLASHPOINT

Mid/Senior Django Developer (Brooklyn, NY, USA)
TYPE/CODE

Sr Python Engineer (Anywhere)
FLASHPOINT

Senior Backend Engineer - Django (UK, Europe)
DATAPANE

Backend Software Engineer (Asia Pacific Region)
CATALPA INTERNATIONAL

Senior Full-Stack Web Developer (Anywhere)
MONETIZEMORE

Python Engineer - Web Scraping (Asia, TX, America)
NEWSCATCHER

Full Stack Software Engineer - Python (United States)
DEEP SENTINEL

Senior Software Engineer (Anywhere)
DROICE LABS

Python Trainer (Jakarta, Indonesia)
PHYSIKALISCH-TECHNISCHE BUNDESANSTALT

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.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. Β· #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Unit Test Docs, Python zipfile, Django Runs Black, and More

Tuesday, February 15, 2022

Documentation Unit Tests #512 – FEBRUARY 15, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Documentation Unit Tests Interesting approach to keeping documentation and code in sync: introspecting

typing.Protocol, args and kwargs, CPython 3.11.0a5 Released, and More

Tuesday, February 8, 2022

Defining Python Functions With Optional Arguments #511 – FEBRUARY 8, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Defining Python Functions With Optional Arguments Learn about Python optional

Python JIT, Security Pitfalls, macOS Deprecates Python 2, Black Formatter Stable Release, and More

Tuesday, February 1, 2022

What Is a JIT and How Can Pyjion Speed Up Your Python? #510 – FEBRUARY 1, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo What Is a JIT and How Can Pyjion Speed Up Your Python? How can you can speed

PEP 646 Accepted, Strict Function Parameters, Solving Wordle, and More

Tuesday, January 25, 2022

PEP 646: Variadic Generics Was Accepted #509 – JANUARY 25, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo PEP 646: Variadic Generics Was Accepted This PEP introduces TypeVarTuple , enabling

Object Subscriptions Deep-Dive, Django Survey Results, Pip Caching, and More

Tuesday, January 18, 2022

Unravelling "`[]`" Subscriptions in Python #508 – JANUARY 18, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Unravelling “ [] ” Subscriptions in Python “It's quite possible you're

You Might Also Like

Distributed Locking: A Practical Guide

Monday, December 23, 2024

If you're wondering how and when distributed locking can be useful, here's the practical guide. I explained why distributed locking is needed in real-world scenarios. Explored how popular tools

⚡ THN Weekly Recap: Top Cybersecurity Threats, Tools and Tips

Monday, December 23, 2024

Your one-stop-source for last week's top cybersecurity headlines. The Hacker News THN Weekly Recap The online world never takes a break, and this week shows why. From ransomware creators being

⚙️ OpenA(G)I?

Monday, December 23, 2024

Plus: The Genesis Project ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 12/23/2024

Monday, December 23, 2024

New blogs from Syncfusion Introducing the New WinUI Kanban Board By Karthick Mani This blog explains the features of the new Syncfusion WinUI Kanban Board control introduced in the 2024 Volume 4

Import AI 395: AI and energy demand; distributed training via DeMo; and Phi-4

Monday, December 23, 2024

What might fighting for freedom in an AI age look like? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

LockBit Ransomware Developer Charged for Billions in Global Damages

Monday, December 23, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest

Re: How to know if your data has been exposed

Monday, December 23, 2024

Imagine getting an instant notification if your SSN, credit card, or password has been exposed on the dark web — so you can take action immediately. Surfshark Alert does just that. It helps you stay

Christmas On Repeat 🎅

Monday, December 23, 2024

Christmas nostalgia is a hell of a drug. Here's a version for your browser. Hunting for the end of the long tail • December 22, 2024 Hey all, Ernie here with a refresh of a piece from our very

SRE Weekly Issue #456

Monday, December 23, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: On-call during the holidays? Spend more time taking in some R&R and less getting paged. Let alerts make their rounds fairly with our

The Power of an Annual Review & Grammarly acquires Coda

Sunday, December 22, 2024

I am looking for my next role, Zen Browser got a fresh new look, Flipboard introduces Surf, Campsite shuts down, and a lot more in this week's issue of Creativerly. Creativerly The Power of an