Python Weekly (Issue 583 January 12 2023)

Python Weekly - Issue 583

Python Weekly

Welcome to issue 583 of Python Weekly. Let's get straight to the links this week.

From Our Sponsor 

A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers.

News

CPython’s global interpreter lock (“GIL”) prevents multiple threads from executing Python code at the same time. The GIL is an obstacle to using multi-core CPUs from Python efficiently. This PEP proposes adding a build configuration (--without-gil) to CPython to let it run Python code without the global interpreter lock and with the necessary changes needed to make the interpreter thread-safe.

Articles, Tutorials and Talks

In this Python Programming video, we will be learning how to simulate the Powerball lottery using Python. I have seen several lottery simulations online, but not many of them go in-depth to calculate all of the possible combinations. Here, we will create a simulation that goes through every win condition and simulates the lottery in the way it is played in a real-life situation. Let's get started.

In this post I'm going to show, using a series of programming language implementations, why languages shouldn't be classified as compiled or interpreted. Before I do that, I need to start by clarifying the difference between a programming language specification and an implementation of that specification

5 years after NYCTrainSign collapsed, I investigated why the company failed and end up writing an exploit to take over their fleet. 

This post outlines the way I scanned PyPi, showcases a project I’ve built that automatically scans all new PyPi releases to notify AWS of potentially leaked keys, presents some analysis of the keys I’ve found and draws a few conclusions at the end.

The author shares the favorite things he wrote in a year of professional web scraping blogging at ScrapFly and his key takeaways.

Using dataframes to write smaller, faster programs.

Whether you're just starting out in the field or you're a seasoned professional looking to refresh your knowledge, we hope our illustrations will be a valuable resource on your journey to understanding Machine Learning.

Hugging Face (HF) has made NLP (Natural Language Processing) a breeze. In this post, we are going to take a look at tokenization using a hands on approach with the help of the Tokenizers library. We are going to load a real world dataset containing 10-K filings of public firms and see how to train a tokenizer from scratch based on the BERT tokenization scheme. In the process we will understand tokenization in detail and some gotchas to keep an eye out for.

The main objective of this research is to prove the possibility of having a variation of Prototype Pollution in other programming languages, including those that are class-based by showing Class Pollution in Python.

In this tutorial we go over how to use DeepFace. Deepface is a lightweight face recognition and facial attribute analysis (age, gender, emotion and race) framework for Python. 

We released the code for our Atlas project on GitHub, as well as pretrained Atlas model checkpoints, an index, and Wikipedia corpora. We present how to build a Q&A system that is trained using 100 examples and that has a small memory footprint thanks to our codebase’s usability features.

This is the first in a series of blog posts that describe how Codon works internally, various design decisions, performance considerations, and so on.

GPT-3 inside VSCode using the official OpenAI API.

This is a side-by-side comparison of the Polars and Pandas dataframe libraries, based on Modern Pandas. 

Interesting Projects, Tools and Libraries

Spin up a super fast Rust powered GraphQL API to prototype your ML model in one line of Python code.

Security and Privacy Risk Simulator for Machine Learning.

pure-python implementation of MemoryModule technique to load a dll entirely from memory.

An open source bike computer based on Raspberry Pi Zero (W, WH, 2W) with GPS and ANT+. Including offline map and navigation.

YouTube archiving made simple.

Micro command line LLM query generation tool.

A ChatGPT bot for Kubernetes issues. Ask ChatGPT how to solve your Prometheus alerts, get pithy responses.

A Library for Uncertainty Quantification.

New Releases

Upcoming Events and Webinars

There will be following talks

  • Update Nested Serializers Fields with Django REST Framework

  • Mitigating Bias in AI

There will be a talk, From monolith to microservices: What you need to know when making the transfer/switch.

There will be following talks

  • Supporting Customer Success with NLP

  • How small can I get that Docker container?

There will be following talks

  • What's wrong with my code? Questions to ask about data science code... and a few possible answers

  • Better data engineering with Dagster: Building maintainable, reliable and extensible pipelines

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.