Python Weekly - Python Weekly - Issue 584

View this email in your browser

Python Weekly

Welcome to issue 584 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 
 
  Skip the hassle of traditional test case methods, while writing top quality code today.
In this article, Snyk walks you through setup, writing, and testing your first doctest — giving you all the information you need to get started and save time.


Articles, Tutorials and Talks

Let's build GPT: from scratch, in code, spelled out. 
We build a Generatively Pretrained Transformer (GPT), following the paper "Attention is All You Need" and OpenAI's GPT-2 / GPT-3. We talk about connections to ChatGPT, which has taken the world by storm. We watch GitHub Copilot, itself a GPT, help us write a GPT (meta :D!) . 

How to improve Python, or why fourteen tools are at least twelve too many
A journey to the world of Python packaging, a visit to the competition, a hopeful look at the future, and highlights from a disappointing discussion.

Faster virtual machines: Speeding up programming language execution
This post explores how interpreters are often implemented, what a "virtual machine" means in this context, and how to make them faster.

Formalizing f-strings
F-strings allow a compact representation for the common task of interpolating program data into strings, often in order to output them in some fashion. Some restrictions were placed on f-strings to simplify the implementation of them, but those restrictions are not really needed anymore and, in fact, are complicating the CPython parser. That has led to a Python Enhancement Proposal (PEP) to formalize the syntax of f-strings for the benefit of Python users while simplifying the maintenance of the interpreter itself.

How to simulate a broken database connection for testing in Django
Three different options for how to effectively test Django code accessing the database.

An open source Python project CI pipeline
Lately I've been iterating on a reusable set of open-source continuous integration (CI) tools for my Python projects. Here's an overview, along with a sample GitHub Actions workflow file that runs these checks.

Why I Like Nox
Ever since I got involved with open-source Python projects, Tox has been vital for testing packages across Python versions (and other factors). However, lately, I’ve been increasingly using Nox for my projects instead. Since I’ve been asked why repeatedly, I’ll sum up my thoughts.

A Deep Dive Into Iterators and Itertools in Python 
Python has some amazing built-in functions and modules for working with iterators. This video is a deep dive into iterators and itertools in Python and how to use iterators for your own projects!

Boost Your Python Application Performance using Continuous Profiling
Continuous profiling is a great tool for optimizing the performance of applications. It allows us to continuously monitor and analyze application's resource usage, identify bottlenecks, and use resources more efficiently. In this article, we will take a look at how to set up and use Grafana Phlare, a powerful new open-source tool by Grafana Labs, to perform continuous profiling of Python applications running on Kubernetes.

Automating an SSH session with Python

Why Polars uses less memory than Pandas

Using pytest to test your pyspark code


Interesting Projects, Tools and Libraries

NiceGUI
Create UI. For the web. With Python. The nice way.

Sketch
AI code-writing assistant that understands data content.

beetrace
Trace your python process line by line with low overhead!

balance
A python package for balancing biased data samples.

tempy
A simple, visually pleasing weather report in your terminal.

Lotus
Pricing & Packaging Infrastructure For Any Business Model.

Sleuth
Sleuth is an open-core enterprise search tool that allows organizations to search text from various workspace apps.

gpt_index
An index created by GPT to organize external information and answer queries!


New Releases

Django 4.2 alpha 1 released


Upcoming Events and Webinars

PyData Tel Aviv Meetup January 2023
There will be following talks
  • Using Coresets to Develop and Maintain Better Machine Learning Models
  • Lateral movement detection with LATMA (LATeral Movement Analyzer)

PyData Eindhoven Meetup January 2023
There will be following talks
  • Organizing order fulfillment using mathematical optimization
  • Driver-based demand forecasting: beyond existing frameworks
  • Is there a next step in warehouse logistics optimization?

PyData Copenhagen Meetup January 2023
There will be a talk, MLOps for the rest of us: A poor man's guide to putting models in production.

Virtual: PyData Chicago Meetup January 2023
There will be a talk, A kernel-free boundary integral method (KFBIM) for solving elliptic PDEs.

PyData Leeds - Inaugural Meetup
This is going to be slightly different from a usual meetup as we want to use the first meetup to listen to the Leeds Python/Data community to find out what you are interested in hearing about and additionally to see if there are any kind people that would like to volunteer some of their time to help us as an organiser.
 
Our Other Newsletters
Programmer Weekly - A free weekly newsletter for programmers.

Founder Weekly - A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.
 
Copyright © 2023 Python Weekly, All rights reserved.
You are receiving our weekly newsletter because you signed up at http://www.PythonWeekly.com.

Our mailing address is:
Python Weekly
Brooklyn
Brooklyn, NY 11209

Add us to your address book


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list.

Key phrases

Older messages

Python Weekly - Issue 582

Thursday, January 5, 2023

View this email in your browser Python Weekly Welcome to issue 582 of Python Weekly. Happy New Year! I hope everyone had a nice holiday break. News Compromised PyTorch-nightly dependency chain between

Python Weekly - Issue 581

Thursday, December 22, 2022

View this email in your browser Python Weekly Welcome to issue 581 of Python Weekly. This is the final issue of 2022. We will be back on January 5th, 2023 after the holiday break. Wish you all a Happy

Python Weekly - Issue 580

Friday, December 16, 2022

View this email in your browser Python Weekly Welcome to issue 580 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks Finding JIT Optimizer Bugs using SMT

Python Weekly - Issue 579

Thursday, December 8, 2022

View this email in your browser Python Weekly Welcome to issue 579 of Python Weekly. Let's get straight to the links this week. News PyCon US 2023 Registration Launch! The news you've been

Python Weekly - Issue 578

Thursday, December 1, 2022

View this email in your browser Python Weekly Welcome to issue 578 of Python Weekly. Let's get straight to the links this week. From Our Sponsor The past, present, and future of notebooks Data

You Might Also Like

wpmail.me issue#664

Thursday, April 25, 2024

wpMail.me wpmail.me issue#664 - The weekly WordPress newsletter. No spam, no nonsense. - April 24, 2024 Is this email not displaying correctly? View it in your browser. News & Articles WordPress

📧 Modular Monolith Architecture is now LIVE! 🎉

Thursday, April 25, 2024

​ MMA is now LIVE! The day has finally come. ​Modular Monolith Architecture is now open for enrollment. ​ I can't wait for you to see everything I prepared! 10 in-depth chapters 60+ high-quality

Testing the Rabbit R1's AI assistant

Thursday, April 25, 2024

The Morning After It's Thursday, April 25, 2024. Back in January, startup Rabbit revealed its first device at CES 2024. The R1 is an adorable, vibrant orange AI machine with a camera, scroll wheel,

Zero-Day Alert: State-Sponsored Hackers Exploting Two Cisco Flaws for Espionage

Thursday, April 25, 2024

THN Daily Updates Newsletter cover Coding with AI For Dummies ($18.00 Value) FREE for a Limited Time Boost your coding output and accuracy with artificial intelligence tools Download Now Sponsored

Post from Syncfusion Blogs on 04/25/2024

Thursday, April 25, 2024

New blogs from Syncfusion How BoldSign Improved HR Operations at Syncfusion By Syncfusion HR Team Let's see how Syncfusion's BoldSign revolutionizes HR operations with seamless document

😩Not Another iPad Caaaase!

Thursday, April 25, 2024

The last iPad case you need. See the most loved features you can't live without. The form and style of ZUGU cases have evolved naturally, resulting from designing products that safeguard your

Edge 390: Diving Into Databricks' DBRX: One of the Most Impressive Open Source LLMs Released Recently

Thursday, April 25, 2024

The model uses an MoE architecture which exhibits remarkable perfromance on a relatively small budget. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

US TikTok ban 📱, Meta's $200B drop 📉, Node.js 22 👨‍💻

Thursday, April 25, 2024

President Joe Biden has signed into law a bill that orders TikTok owner ByteDance to sell the company within 270 days or lose access to the US market Sign Up |Advertise|View Online TLDR Together With

Learning about Android Runtime

Thursday, April 25, 2024

View in browser 🔖 Articles Learning about Android Runtime I always enjoy reading articles that explore how something works under the hood. Here's an article that does exactly that, providing

Stripe changes its … stripes

Wednesday, April 24, 2024

TikTok on the president's docket and Nvidia acquires Run:ai View this email online in your browser By Christine Hall Wednesday, April 24, 2024 Good afternoon, and welcome to TechCrunch PM! Today