Using __call__(), Django Custom Sorts, Decorators, and More

#579 – MAY 30, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python’s .__call__() Method: Creating Callable Instances
In this tutorial, you’ll learn what a callable is in Python and how to create callable instances using the .__call__() special method in your custom classes. You’ll also code several examples of practical use cases for callable instances in Python.
REAL PYTHON

Sorting a Django Queryset Using Custom Attributes
“Typically, Django allows sorting a queryset by any attribute on the model or related to it in either ascending or descending order. However, what if you need to sort the queryset following a custom sequence of attribute values?”
REDOWAN DELOWAR

Analyze Your Python Code for Security Issues for Free
Semgrep is trusted by hundreds of thousands of developers at top companies, such as GitLab, Snowflake, Slack, and many more, to ensure the security of their code (SAST) and dependencies (SCA). Add your project in 1 minute and see for yourself →
SEMGREPsponsor

Python Decorators and How to Use Them Effectively
This article covers the importance and use of decorators in your code. It introduces you to both function and class decorators and helps you write your own.
TONIE VICTOR

PyPI Was Subpoenaed
In March and April 2023, PyPI received three subpoenas for user data from the US Department of Justice. This blog post covers what was requested and how the PyPI is working to clarify what they retain and can make available in the future. See the associated Hacker News discussion.
PYPI.ORG

Python 3.12.0 Beta 1 Released
CPYTHON DEV BLOG

Removing PGP From PyPI
PYPI.ORG


Discussions


How to Move From Dev to Management/Team Lead Role?
HACKER NEWS


Articles & Tutorials


Writing Python Like It’s Rust
This blog post from Jakub talks about how writing code in Rust has informed a more rigorous approach to his Python. He now uses types more frequently, absorbing the strictness of Rust in his Python coding style. Associated Hacker News conversation
JAKUB BERANEK

Publishing Python Packages to PyPI
In this video course, you’ll learn how to create a Python package for your project and how to publish it to PyPI, the Python Package Repository. Quickly get up to speed on everything from naming your package to configuring it using setup.cfg.
REAL PYTHON course

A New Approach to Find High Paying Remote Jobs
Trusted by 2000+ developers from 120+ countries. Proxify provides software developers with an effortless, fast, and reliable way to find high-paying remote job opportunities. Join the most developer-friendly community today and start working on engagements with Top clients in the USA & EU →
PROXIFYsponsor

Using k-Nearest Neighbors (kNN) in Python
In this video course, you’ll learn all about the k-nearest neighbors (kNN) algorithm in Python, including how to implement kNN from scratch. Once you understand how kNN works, you’ll use scikit-learn to facilitate your coding process.
REAL PYTHON course

Programming Types and Mindsets
David expounds on why we should appreciate the features of other languages and how they enable the creativity of their developers, even if we don’t like those features ourselves.
DAVID HANSSON

Using a Golang Package in Python Using Gopy
Including a Golang package in Python using Gopy: A simple way to leverage the power of Golang packages in Python applications.
ARJUN MAHISHI • Shared by Prathamesh

Choosing a Good File Format for Pandas
CSV, JSON, Parquet — which data format should you use for your Pandas data? Itamar compares them and makes recommendations.
ITAMAR TURNER-TRAURING

The Power of Bit Manipulation
In this article, you learn about bit manipulation and how to solve problems efficiently using it in Python.
ANURAG VERMA


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 →

unimport: Remove Unused Import Statements in Your Code
GITHUB.COM/HAKANCELIKDEV • Shared by Hakan Çelik

ChatSQL: Convert Plain Text to SQL Through ChatGPT
GITHUB.COM/ADEMAKDOGAN • Shared by Adem AKDOGAN

pyserde: Dataclass Based Serialization Library
GITHUB.COM/YUKINARIT

pyscan: Rust Based Python Dependency Vulnerability Scanner
GITHUB.COM/ASWINNNN

guidance: Language for Controlling Large Language Models
GITHUB.COM/MICROSOFT

📆🐍 Upcoming Python Events


DjangoCon Europe 2023
May 29 to June 3, 2023

Weekly Real Python Office Hours Q&A (Virtual)
May 31, 2023

Canberra Python Meetup
June 1, 2023

PyData London 2023
June 2 to June 5, 2023

PyDay La Paz 2023
June 3 to June 4, 2023
Happy Pythoning!
Copyright © 2023 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

Key phrases

Older messages

Coding With ChatGPT, Pydantic's Future, Properties, and More

Tuesday, May 23, 2023

ChatGPT: Your Personal Python Coding Mentor #578 – MAY 23, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo ChatGPT: Your Personal Python Coding Mentor Large language models have gained popularity

Faster CPython at PyCon, Trusted Publishing, Packaging, and More

Tuesday, May 16, 2023

Faster CPython at PyCon #577 – MAY 16, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Faster CPython at PyCon This article summarizes the report the Faster CPython team gave at PyCon 2023. It gives

SOLID OOP, Mojo, PyCon Keynote, and More

Tuesday, May 9, 2023

SOLID Principles: Improve Object-Oriented Design in Python #576 – MAY 9, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo SOLID Principles: Improve Object-Oriented Design in Python In this tutorial,

Object Oriented Python, PyCon 2023, Mastodon Bot, and More

Tuesday, May 2, 2023

Python Classes: The Power of Object-Oriented Programming #575 – MAY 2, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Python Classes: The Power of Object-Oriented Programming In this tutorial, you

PyPI Trusted Publishers, Namespaces, ChatGPT REPL, and More

Tuesday, April 25, 2023

PyPI Introduces "Trusted Publishers" #574 – APRIL 25, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo PyPI Introduces “Trusted Publishers” PyPI package maintainers can adopt a new, more

You Might Also Like

Issue #538: All the Jam entries, Panthera 2, and Tristram

Saturday, April 27, 2024

Weekly newsletter about HTML5 Game Development. Is this email not displaying correctly? View it in your browser. Issue #538 - April 26th 2024 If you have anything you want to share with the HTML5 game

Daily Coding Problem: Problem #1424 [Easy]

Saturday, April 27, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement a URL shortener with the following methods: shorten(url) , which

Charted | Countries That Became More Happy (or Unhappy) Since 2010 😅

Saturday, April 27, 2024

Which countries had the highest happiness gains since 2010? Which became sadder? View Online | Subscribe Presented by Voronoi: The App Where Data Tells the Story FEATURED STORY Countries With the

Noonification: What Is E-Waste Hacking?

Saturday, April 27, 2024

Top Tech Content sent at Noon! The first AI-powered startup unlocking the “billionaire economy” for your benefit How are you, @newsletterest1? 🪐 What's happening in tech this week: The

TikTok faces a ban in the US, Tesla profits drop and healthcare data leaks

Saturday, April 27, 2024

Plus: Amazon's new delivery subscription and a deep dive on Rippling View this email online in your browser By Kyle Wiggers Saturday, April 27, 2024 Image Credits: TechCrunch Welcome, folks, to

🐍 New Python tutorials on Real Python

Saturday, April 27, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Write Unit Tests for Your Python Code With

Bogus npm Packages Used to Trick Software Developers into Installing Malware

Saturday, April 27, 2024

THN Daily Updates Newsletter cover Webinar -- Uncovering Contemporary DDoS Attack Tactics -- and How to Fight Back Stop DDoS Attacks Before They Stop Your Business... and Make You Headline News.

This Smart Scale for iPhone Is the Best on the Market

Saturday, April 27, 2024

The ultimate checkup, with electrocardiogram.¹ Learn about your body at every weigh-in: pinpoint muscle and fat mass, monitor your cardiovascular health and detect a cardiac anomaly. Body Scan, the

How are you liking the Tip of the Day?

Saturday, April 27, 2024

Dear iPhone Life Reader, Now that you've been enjoying Tip of the Day for a few weeks, we have a quick favor to ask: If you've found the daily emails helpful, please share this link with a

📧 Request Response Messaging Pattern With MassTransit

Saturday, April 27, 2024

​ Request Response Messaging Pattern With MassTransit Read on: m​y website / Read time: 5 minutes BROUGHT TO YOU BY ​ Get ready for POST/CON 24! ​ Join us in San Francisco from April 30 - May 1 for