#546 – OCTOBER 11, 2022
View in Browser »
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 PYTHONpodcast
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
Python Jobs
Content Operations Manager (Anywhere)
Senior Software Engineer Backend (USA)
Senior Backend Engineer (Anywhere)
Senior Full Stack Engineer (Python) - Remote - Full Time (Dallas, TX, USA)
Senior Pipeline TD (Python) - Remote or On Site (Redmond, WA, USA)
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
Events
Smart Iterator Challenge (Week 2)
October 8 to October 17, 2022
MEETUP.COM
PyCon MEA @ Global DevSlam 2022
October 10 to October 14, 2022
GLOBALDEVSLAM.COM
Weekly Real Python Office Hours Q&A (Virtual)
October 12, 2022
REALPYTHON.COM
PyCon Ghana 2022
October 13 to October 16, 2022
PYCON.ORG
PyCon ZA 2022
October 13 to October 15, 2022
PYCON.ORG
PyCon JP 2022
October 14 to October 17, 2022
PYCON.JP
Happy Pythoning!
This was PyCoder’s Weekly Issue #546.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]