- Python Weekly
- Posts
- Python Weekly (Issue 582 January 5 2023)
Python Weekly (Issue 582 January 5 2023)
Python Weekly - Issue 582
Python Weekly
Welcome to issue 582 of Python Weekly. Happy New Year! I hope everyone had a nice holiday break.
News
PyTorch-nightly Linux packages installed via pip during that time installed a dependency, torchtriton, which was compromised on the Python Package Index (PyPI) code repository and ran a malicious binary. This is what is known as a supply chain attack and directly affects dependencies for packages that are hosted on public package indices.
Articles, Tutorials and Talks
This video explains everything you need to get started coding with polars. Polars is a multi-threaded DataFrame library, meaning that it allows using all the cores of a computer at the same time to achieve its full processing potential. It's been shown to have huge performance gains over pandas.
3.12 brings perf profiling! In this article we take a look at how the new perf profiling support helps reduce our dummy Python script from 36 seconds to 0.8 seconds. We’ll introduce the Linux tool perf and also FlameGraph.pl, look at some disassembly and go bug hunting.
Concurrent programming refers to a type of programming focused on executing independent tasks at the same time. Unlike traditional programming where instructions or tasks are executed one after the other, concurrent programming allows multiple tasks to make progress at the same time. It facilitates other types of programming, such as parallel programming where tasks are executed simultaneously on separate CPUs. In this tutorial, you will discover concurrent programming in Python.
The author was recently awarded a total of $107,500 by Google for responsibly disclosing security issues in the Google Home smart speaker that allowed an attacker within wireless proximity to install a “backdoor” account on the device, enabling them to send commands to it remotely over the Internet, access its microphone feed, and make arbitrary HTTP requests within the victim’s LAN (which could potentially expose the Wi-Fi password or provide the attacker direct access to the victim’s other devices). This post goes in to the details of these security issues.
We all are familiar with Python's generators and all their benefits. But, what if I told you that we can make them even better by combining them with recursion? So, let's see how we can use them to implement "lazy recursion" and supercharge what we already do with generators in Python!
We forked ipython-sql and are actively developing it to bring a modern SQL experience to Jupyter! We’ve already built some great features, such as SQL query composition and plotting for large-scale datasets!
An introduction to structured logging and its advantages using the structlog package for Python.
Check out this guide for using a Monte Carlo simulation to identify the size and confidence percentage of your sampled success metric.
A post about calculating the odds of the casino game, Pai Gow Poker by running millions of simulations.
Interesting Projects, Tools and Libraries
The simplest, fastest repository for training/finetuning medium-sized GPTs.
A Python Framework for writing Reactive Front-End Applications.
Open source SQL engine in Python.
A Python tool to unstrip Rust binaries on Linux.
Implementation of RLHF (Reinforcement Learning with Human Feedback) on top of the PaLM architecture. Basically ChatGPT but with PaLM
An Apache2 licensed sorted collections library, written in pure-Python, and fast as C-extensions.
A tool to help inspect Django class-based views.
ManimML is a project focused on providing animations and visualizations of common machine learning concepts with the Manim Community Library.
Cramming the training of a (BERT-type) language model into limited compute.
New Releases
The Python CMS Plone has a new version 6.0 after 3.5 years of work. It offers modern user experience built on a rock solid foundation.
Upcoming Events and Webinars
There will be following talks
Intro to Python in Google Cloud Functions
Intro to OpenTelemetry with Python and Flask
There will be following talks
Applying Unsupervised Learning in Plasma Physics
Using Numba Effectively Today
NBFire Jupyter notebooks
Our Other Newsletters
- A free weekly newsletter for programmers.
- A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.