Python Weekly - Python Weekly - Issue 613

View this email in your browser

Python Weekly

Welcome to issue 613 of Python Weekly. Let's get straight to the links this week.
Articles, Tutorials and Talks

How to write Python code people actually want to use 
In this video, we adapt a clumsy, non-Pythonic API into an easy to use, easy to understand Pythonic one. We use magic methods such as _getitem__, __len__, __enter__, and __exit_ to make our objects a context manager and support the len() function and square bracket indexing. And in the end, we turn what once was ugly, difficult to maintain code into something that other developers would actually want to use.

Introducing Immortal Objects for Python
Instagram has introduced Immortal Objects – PEP-683 – to Python. Now, objects can bypass reference count checks and live throughout the entire execution of the runtime, unlocking exciting avenues for true parallelism.

The complex simplicity of my static websites
A deep dive into using indentation-based languages like Python and Slim, to build beautiful websites and love the work of doing it till the end.

Harvard CS50’s Artificial Intelligence with Python 
This course from Harvard University explores the concepts and algorithms at the foundation of modern artificial intelligence, diving into the ideas that give rise to technologies like large language models, game-playing engines, handwriting recognition, and machine translation. 

Weird Python "Features" That Might Catch You By Surprise
From time to time, when coding, we all run into weird behaviours of the programming language. Sometimes it's a "feature" we weren't aware of, sometimes it's just quirky behaviour of the language, and sometimes it's borderline bug. Python - as any other programming language - has these eyebrows-raising quirks, so here's a list of weird Python "features" that might catch you off-guard.

Unlocking Insights: Estimating Causal Effect Using Propensity Score Matching
At the end of reading this post, you will be able to understand how to estimate a causal effect with retrospective data, get familiar with the concept of confounders, learn how to balance your data using Propensity Score Matching, and most importantly, you will have fully available code to use for your research. If you feel comfortable with Propensity Score Matching, skip to the real-life example and use the code snippets.

Practical Business Jinja 
A talk covering how to automate document creation using Python-docx and Jinja.

Eliminating hallucinations (fast!) in Large Language Models with Finite State Machines
In this blog, we introduce our method for regex-guided generation implemented in Outlines.

End-to-end Testing with Python and Playwright
Want to learn how to use Python and Playwright to automate end-to-end testing using GitHub Actions? This post shows you how to get started with Playwright, add an end-to-end test to help test an existing project that is hosted on GitHub, and automate running it using GitHub Actions.

Identify and Fix Django Database Performance Problems
Optimizing Django query performance is critical for building performant web applications. Django provides many tools and methods for optimizing database queries in its Database access optimization documentation. In this blog post, we will explore a collection of additional and essential tips I’ve compiled over the years to help you pinpoint and resolve your inefficient Django queries.

Hacking Github AWS integrations again
Github supports roles instead of credentials of integrating CI/CD with AWS. It’s easy to misconfigure so let’s show the impact.

Growing Bonsai Networks with RNNs
This writeup introduces what the author calls Bonsai Networks - extremely sparse computational graphs produced by training and pruning RNNs. They provide an interpretable view into the solutions learned by networks for simple logic problems, breaking out of the black box neural networks typically reside in.


Interesting Projects, Tools and Libraries

LearnDB
Learn database internals by implementing it from scratch.

pixi
pixi is a cross-platform, multi-language package manager and workflow tool build on the shoulders of the conda ecosystem. pixi supports Python, R, C/C++, Rust, Ruby, and many other languages.

Prism
Prism is the easiest way to develop, orchestrate, and execute data pipelines in Python.

FaceChain
FaceChain is a deep-learning toolchain for generating your Digital-Twin.

Nemesis
An offensive data enrichment pipeline.

Fooocus
Focus on prompting and generating.

viberary
Viberary is a search engine that recommends books based not on genre or title, but vibe by performing semantic search across a set of learned embeddings on a dataset of books from Goodreads and their metadata.

Opendream
An extensible, easy-to-use, and portable diffusion web UI.

youre-the-os
A game where you are a computer's OS and you have to manage processes, memory and I/O events. 

AudioLDM2
Text-to-Audio/Music Generation.


Upcoming Events and Webinars

San Diego Python Meetup August 2023
There will be a talk, How to create Interactive Runbooks Built with Markdown using Runme.

Python Glasgow Meetup August 2023
There will be following talks
  • Dynamic Modification of Python Programs - the how and the why??
  • Python-Powered Intelligence: Exploring AI and ML Applications

PyData Südwest Meetup August 2023
There will be following talks
  • Beyond Toy Datasets: Timeseries Forecasting for Real Business Problems
  • How to Leverage the Full Potential of LLMs for Your Business with Langchain 

PyData Stockholm Meetup August 2023
There will be following talks
  • Personalized LLMs with a Feature Store
  • Large Language models and Generative AI at Google

PyData Chicago  Meetup August 2023
There will be a talk, PyDDA: A Python package for multi-Doppler wind retrievals.

 
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.

Older messages

Python Weekly - Issue 612

Monday, August 14, 2023

View this email in your browser Python Weekly Welcome to issue 612 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Python Weekly - Issue 611

Thursday, August 3, 2023

View this email in your browser Python Weekly Welcome to issue 611 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Python Weekly - Issue 610

Thursday, July 27, 2023

View this email in your browser Python Weekly Welcome to issue 610 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Python Weekly - Issue 609

Thursday, July 20, 2023

View this email in your browser Python Weekly Welcome to issue 609 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks Python Tkinter GUI Design Using

Python Weekly - Issue 608

Sunday, July 16, 2023

View this email in your browser Python Weekly Welcome to issue 608 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

You Might Also Like

FCC Launches 'Cyber Trust Mark' for IoT Devices to Certify Security Compliance

Wednesday, January 8, 2025

THN Daily Updates Newsletter cover Generative AI, Cybersecurity, and Ethics ($88.00 Value) FREE for a Limited Time Equips readers with the skills and insights necessary to succeed in the rapidly

The Sequence Engineering #464: OpenAI’s Relatively Unknown Agent Framework

Wednesday, January 8, 2025

OpenAI Swarm provides the key building blocks for implementing agents. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

About-Face(book)

Wednesday, January 8, 2025

Mark Zuckerberg's new stance on speech can be both real and really political About-Face(book) Mark Zuckerberg's new stance on speech can be both real and really political By MG Siegler • 8 Jan

The Art of Reading Slowly - Why Speed Isn't Everything

Wednesday, January 8, 2025

Discover how taking notes while reading can transform you from a passive consumer of information into an active learner, helping you retain and apply knowledge for lasting impact Sébastien Dubois

🎮 5 Cheap Apple AirPlay Receiver Alternatives — Your Game Controllers Need Firmware Updates Too

Tuesday, January 7, 2025

Also: The Best Free Offline Music Player Apps For Android How-To Geek Logo January 7, 2025 Did You Know It's a common practice in Japan to package toys with a single cheap piece of candy in order

Daily Coding Problem: Problem #1661 [Medium]

Tuesday, January 7, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Triplebyte. Implement a data structure which carries out the following operations

DRF, Temp Files, Dataclasses, and More

Tuesday, January 7, 2025

Building HTTP APIs With Django REST Framework #663 – JANUARY 7, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo Building HTTP APIs With Django REST Framework This course will get you ready to build

Charted | The Pyramid of S&P 500 Returns (1874-2024) 💰

Tuesday, January 7, 2025

In 2024, the S&P 500 surged 23%, setting a series of record highs. We show these returns in a historical context spanning 150 years. View Online | Subscribe | Download Our App Presented by: Global

LW 164 - How to create new arrivals collection in Shopify using Shopify Flow    

Tuesday, January 7, 2025

How to create new arrivals collection in Shopify using Shopify Flow ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ Shopify Development news and

Tic-Tac-D’Oh 💻

Tuesday, January 7, 2025

The latest from the dull side of the internet. Here's a version for your browser. Hunting for the end of the long tail • January 07, 2025 Tic-Tac-D'Oh Dell decides to rebrand its machines along