Python Memory Profiling, Dangerous Assert, Semaphores, and More

#546 – OCTOBER 11, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Using a Memory Profiler in Python & What It Can Teach You
Have you used a memory profiler to gauge the performance of your Python application? Maybe you’re using it to troubleshoot memory issues when loading a large data science project. What could running a profiler show you about a codebase you’re learning? This week on the show, Pablo Galindo Salgado returns to talk about Memray, a powerful tracing memory profiler.
REAL PYTHON podcast

The Dangers of assert in Python
Did you know Python’s assert statement can lead to runtime security vulnerabilities? While there are safe ways to use assert, there are lots of unsafe ways to use it that can lead to a variety of convoluted problems.
DHRUV PATEL β€’ Shared by Randall Degges

Try atoti, a Free Collaborative Python BI Analytics Platform
atoti is a BI analytics platform combining a python library and a web application helping Quants, Data Analyst, Data Scientist and Business Users to collaborate, analyze and translate their data into business KPIs β†’
ACTIVEVIAMsponsor

Reasoning About asyncio.Semaphore
Guido walks you through a single-table restaurant analogy to explain the complexity of semaphores in asyncio. Details include the TaskGroup context manager added in Python 3.11.
GUIDO VAN ROSSUM

Django Security Releases Issued: 4.1.2, 4.0.8, and 3.2.16
DJANGO SOFTWARE FOUNDATION


Python Jobs


Content Operations Manager
REAL PYTHON πŸ“ ANYWHERE

Senior Software Engineer Backend
MUCK RACK πŸ“ USA

Senior Backend Engineer
DOIST πŸ“ ANYWHERE

Senior Full Stack Engineer (Python) - Remote - Full Time
NISUM πŸ“ DALLAS, TX, USA

Senior Pipeline TD (Python) - Remote or On Site
STUDIO WILDCARD πŸ“ REDMOND, WA, USA

More Python Jobs >>>


Articles & Tutorials


Minimax in Python: Learn How to Lose the Game of Nim
The minimax algorithm can be used to find optimal strategies in many different games. In this tutorial, you’ll learn how to implement minimax in Python while playing the game of Nim. You’ll also learn how you can make the algorithm more efficient with alpha-beta pruning.
REAL PYTHON

Build Enumerations of Constants With Python’s Enum
In this tutorial, you’ll learn how to create and use enumerations of semantically related constants in Python. To do this, you’ll use the Enum class and other related tools and types from the enum module, which is available in the Python standard library.
REAL PYTHON

Scout APM: Built For Developers, By Developers
Performance issues are a pain. But with Scout’s APM tool, you can pinpoint performance and stability issues in Python applications with ease. Scout’s tracing logic detects the exact line of code causing the performance abnormalityβ€”fixing the issue before customers ever notice β†’
SCOUT APMsponsor

How to Safely Pass Data to JavaScript in a Django Template
You want to pass your data from your Django view to JavaScript in your template and you want to do it securely. This post shows several ways of doing it without the risk of allowing malicious code injection.
ADAM JOHNSON

Designing a Secure API
This article is an introduction to REST APIs. It describes five levels of implementation, versioning, query parameters, how your design effects the server side, and how to secure your end-points.
PEDRO ARAVENA

Building Scalable Data Streaming in Python
This step-by-step guide shows you the tools and tech you need to build a highly scalable data streaming pipeline in Python. It covers the use of Scrapy with Redis and a JSON based data flow.
MUHAMMAD HASEEB

Decision Trees in Python: Predicting Diabetes
This post shows you how to use the decision-trees algorithm with real-world data to predict cases of diabetes. Examples include the use of numpy, pandas, and sklearn.
JOLEEN BOTHMA

12 Beginner Concepts About Type Hints
This article gives an overview of type hints: what they are and when you should use them. It starts with simple types and builds up to more complex definitions.
AHMED BESBES

Ways to Introspect Python Objects at Runtime
Tips and tricks for inspecting Python objects and getting information about your code at runtime. Learn about built-in object methods and the inspect module.
MARTIN HEINZ β€’ Shared by Martin Heinz

Time Series Forecasting Methods - Free Article by InfluxData
Read an overview of what is time series analysis, time series forecasting methods, types of time series used for forecasting, and how to validate models.
INFLUXDATAsponsor

Carefully Exploring Rust as a Python Developer
Karim writes about trying Rust programming as a 10+ years Python developer. He describes how to do common programming tasks and what the tooling looks like.
KARIM JEDDA

Discover SQLAlchemy: A Beginner Tutorial With Examples
In this SQLAlchemy tutorial, you will learn to access and run SQL queries on all types of relational databases using Python objects.
ABID ALI AWAN


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 β†’

matrix-webcam: Video Conference From Within the Matrix
GITHUB.COM/JOSCHUCK

DocArray: Nested, Unstructured Data
JINA.AI

awesome-diagramming: List of Diagram Tools for Software
GITHUB.COM/SHUBHAMGRG04

semantic-python-overview: List of Semantic Technologies
GITHUB.COM/PYSEMTEC

Django Consistency Model
GITHUB.COM/OCCIPITAL β€’ Shared by Alex Liabakh

πŸ“†πŸ Upcoming Python Events


Smart Iterator Challenge (Week 2)
October 8 to October 17, 2022

PyCon MEA @ Global DevSlam 2022
October 10 to October 14, 2022

Weekly Real Python Office Hours Q&A (Virtual)
October 12, 2022

PyCon Ghana 2022
October 13 to October 16, 2022

PyCon ZA 2022
October 13 to October 15, 2022

PyCon JP 2022
October 14 to October 17, 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

Key phrases

Older messages

Django and WebSockets, QR Codes, Ninja, and More

Tuesday, October 4, 2022

Building Chat With Django Channels and WebSockets #545 – OCTOBER 4, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Building Chat With Django Channels and WebSockets Building stateful web

Python as Mechanical Engineer, Heroku Alternatives, Django on Kubernetes, and More

Tuesday, September 27, 2022

Python as an Efficiency Tool for Non-Developers #544 – SEPTEMBER 27, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Python as an Efficiency Tool for Non-Developers Are you interested in using

Build an Alexa, SQLite Recipes, Customizing Lists, and More

Tuesday, September 20, 2022

Build an Alexa Equivalent in Python #543 – SEPTEMBER 20, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Build an Alexa Equivalent in Python It's not as difficult as you think to build an AI

List Comprehensions, CodeWhisperer, DoS Exposure, and More

Tuesday, September 13, 2022

List Comprehensions Are More Powerful Than You Think #542 – SEPTEMBER 13, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo List Comprehensions Are More Powerful Than You Think List comprehensions

Writing Code Completers, String Methods, Dragon Fractals, and More

Tuesday, September 6, 2022

Creating a Python Code Completer & More AST Projects #541 – SEPTEMBER 6, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Creating a Python Code Completer & More AST Projects How does a code

You Might Also Like

🤓 The Meta Quest Might Be the VR Steam Deck Soon — Games to Play After Finishing Wordle

Friday, April 26, 2024

Also: Why a Cheap Soundbar Is Better Than Nothing, and More! How-To Geek Logo April 26, 2024 Did You Know TMI: Rhinotillexomania is the medical term for obsessive nose picking. 🖥️ Get Those Updates

JSK Daily for Apr 26, 2024

Friday, April 26, 2024

JSK Daily for Apr 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news A Solid primer on Signals with Ryan Carniato (JS Party #320) Ryan Carniato joins Amal

So are we banning TikTok or what?

Friday, April 26, 2024

Also: Can an influencer really tank an $800M company? View this email online in your browser By Haje Jan Kamps Friday, April 26, 2024 Image Credits: Jonathan Raa/NurPhoto / Getty Images Welcome to

[AI Incubator] 300+ people are already in. Enrollment closes tonight at 11:59pm PT.

Friday, April 26, 2024

How to decide if you're ready. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Daily Coding Problem: Problem #1423 [Medium]

Friday, April 26, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an array of nonnegative integers. Let's say you start at the

Data science for Product Managers

Friday, April 26, 2024

Crucial resources to empower you with data that matters. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Inner Thoughts

Friday, April 26, 2024

'The Inner Circle' Comes Around... Inner Thoughts By MG Siegler • 26 Apr 2024 View in browser View in browser If you'll allow me a brief meta blurb this week (not a Meta blurb, plenty of

Digest #135: Kubernetes Hacks, Terraform CI/CD, HashiCorp Acquisition, AWS Data Transfer Monitoring

Friday, April 26, 2024

Explore Advanced Kubernetes Techniques, Dive Into Terraform CI/CD Frameworks, Monitor AWS Data Transfer, and Explore Cloud Security with Gitleaks! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Build5Nines Newsletter - April 25, 2024

Friday, April 26, 2024

View this email in your browser Build5Nines Build5Nines Newsletter Thank you for subscribing! I look forward to sharing with you the latest cloud news, technical help, and other thoughts around DevOps

Ranked | Which City Has the Most Billionaires in 2024? 💰

Friday, April 26, 2024

Just two countries account for half of the top 20 cities with the most billionaires. And the majority of the other half are found in Asia. View Online | Subscribe Presented by: Discover what drives