MoreRSS

site iconPython Weekly

A free weekly newsletter featuring the best hand curated news, articles, new releases, tools and libraries, events etc related to Python.
Please copy the RSS to your reader, or quickly subscribe to:

Inoreader Feedly Follow Feedbin Local Reader

Rss preview of Blog of Python Weekly

Python Weekly - Issue 677

2024-11-22 00:00:00

Python Weekly - Issue 677

View this email in your browser

Python Weekly

Welcome to issue 677 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 
Get Your Weekly Dose of Programming
A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free

News

PyPI now supports digital attestations
PyPI package maintainers can now publish signed digital attestations when publishing, in order to further increase trust in the supply-chain security of their projects. Additionally, a new API is available for consumers and installers to verify published attestations.


Articles, Tutorials and Talks

Why You Should Switch to SQLModel for FastAPI Projects 
When you develop an API, you might feel like you’re writing a lot of boilerplate code: routes, database schemas, the API interface, and so on. In this video, I’ll show you how to drastically reduce that boilerplate with SQLModel and FastAPI.

Playground Wisdom: Threads Beat Async/Await 
Musings about async await again and why I think virtual threads are a better model. 

Final Encoding in RPython Interpreters
The article discusses implementing a final encoding approach in RPython for interpreter design, focusing on a Brainf**k interpreter as an example. It explores the benefits of using final encoding over initial encoding, including potential performance improvements and a different architectural approach to building interpreters in RPython.

Introducing DjangoVer
The article introduces DjangoVer, a versioning system for Django-related packages that aligns the package version with the latest supported Django feature release. It provides clarity on compatibility, signaling maintenance and compatibility status through the version number while addressing limitations of traditional versioning systems like Semantic Versioning.

Python Tutorial: Stock Trading Bot 
This tutorial teaches how to build a stock trading bot using Django and TimescaleDB, covering data extraction from APIs, analysis, and automated recommendations. It integrates Celery for background processing and demonstrates advanced database queries in Django, showcasing the power of time series data handling for various applications beyond stock market analysis.

Is Python Really That Slow?
The post explores Python's perceived slowness, highlighting that it stems from its interpreted nature and focus on developer productivity rather than raw performance. By leveraging tools like C extensions, async programming, or just-in-time compilers, developers can often overcome performance concerns effectively.

PyPIM: Integrating Digital Processing-in-Memory from Microarchitectural Design to Python Tensors
PyPIM is an end-to-end architectural integration for digital memristive processing-in-memory (PIM), bridging the gap from high-level Python tensor operations to low-level microarchitecture. It includes an efficient microarchitecture, ISA, Python development library, and PIM driver, simplifying PIM application development and enabling easy conversion of existing Python programs to PIM.

Is async django ready for prime time?
Explore async Django's readiness for production use, its benefits, challenges, and how AI workloads can leverage its capabilities effectively.

PyData Tel Aviv 2024 Videos 
The videos of the talks from PyData Tel Aviv 2024 are now available.


Interesting Projects, Tools and Libraries

Deply
Keep your Python architecture clean.

garak
garak checks if an LLM can be made to fail in a way we don't want. garak probes for hallucination, data leakage, prompt injection, misinformation, toxicity generation, jailbreaks, and many other weaknesses. 

LAMBDA
A local AI-powered email automation system that learns from your email style and creates draft responses for every unread email in your (Gmail) inbox.

Ultravox
A fast multimodal LLM for real-time voice.

EasyAnimate
An End-to-End Solution for High-Resolution and Long Video Generation Based on Transformer Diffusion.

open-notebook
An Open Source implementation of Notebook LM with more flexibility and features.

browser-use
Make websites accessible for AI agents.

boltz
Democratizing Biomolecular Interaction Modeling.

MagicQuill
An Intelligent Interactive Image Editing System.

FireDucks
Compiler Accelerated DataFrame Library for Python with fully-compatible pandas API.


New Releases

Python 3.14.0 alpha 2 released


Upcoming Events and Webinars

PyBerlin Meetup November 2024
There will be following talks
  • If You Know Python, You Know Blockchain
  • Enterprise-ready FastAPI 
  • Python in music: OSC, MIDI and asyncio

PyLadies Paris Meetup November 2024
There will be following talks
  • Let’s exploit pickle, and `skops` to the rescue!
  • Privacy-Preserving Machine Learning With Fully Homomorphic Encryption (FHE)

PyData Amsterdam Meetup November 2024
There will be following talks
  • Using Bayesian modeling to Overcome Low Data Coverage
  • Adapting to change: dealing with data drift in energy waste prevention

PyCologne #2
There will be following talks
  • From chaos to clarity: Using LLMs to structure and validate your data
  • Designing & Deploying a Machine Learning Pipeline for E-Commerce Order Predictions
  • Introduction to AI Language Agents
  • Omelette Surprise de Python - Why managing wording in proper namespaces is key to success of a project

PyData Trojmiasto Meetup November 2024
There will be following talks
  • Low-Precision Data Formats for High-Performance AI
  • Make Llamas Run Faster: How to Speed Up LLM Inference

PyData Cluj-Napoca: Meetup #23
There will be following talks
  • Watt's Next? Using Python to Analyze and Cluster Energy Consumption Data
  • A Practical Introduction to RAGs

PyData Calgary Meetup November 2024
There will be a talk, Parallel Python for Data Processing: Embracing the Embarrassingly Parallel
.
PyData Exeter Meetup November 2024
There will be following talks
  • Pathway to Net Zero: Utilising Open Source Data to Gain Insights into Risks and Rewards of Net Zero Technologies,
  • Using Python to Help Optimize AAA Games
  • Enhancing Retrieval-Augmented Generation for Financial Document Processing
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 © 2024 Python Weekly, All rights reserved.


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

Python Weekly - Issue 676

2024-11-15 00:00:00

Python Weekly - Issue 676

View this email in your browser

Python Weekly

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

Python dependency management is a dumpster fire
This article is all about fire safety techniques and tools. It's about how you should think about dependency management, which tools you should consider for different scenarios, and what trade offs you'll have to make. Finally, it exposes the complexity and lingering problems in the ecosystem.

NanoDjango - single-file Django apps | uv integration 
NanoDjango is a cool package that lets you build small scripts using all the power of Django, and also supports django-ninja for APIs. We'll dive into NanoDjango in this video, and will use uv and inline script metadata for dependency management.

Everything I've learned so far about running local LLMs
A post about running large language models (LLMs) locally on a computer. It discusses what LLMs are and how to set them up to run on your own machine. The article also covers some of the limitations of LLMs, but highlights their potential for tasks like proofreading and creative writing.

Thoughts on Django’s Core
Django's longevity is attributed to its stable core, time-based releases, and API stability policy. While there's enthusiasm for expanding Django's features, the author argues that the core should remain focused and prioritize stability. Instead, the community should embrace third-party packages as a way to innovate and extend Django's capabilities without compromising its core.

Understanding Multimodal LLMs
An introduction to the main techniques and latest models.

The Polars vs pandas difference nobody is talking about
A closer look at non-elementary group-by aggregations.

The Practical Guide to Scaling Django
Most Django scaling guides focus on theoretical maximums. But real scaling isn’t about handling hypothetical millions of users - it’s about systematically eliminating bottlenecks as you grow. Here’s how to do it right, based on patterns that work in production.

Proposal for a Django project template
The author's take on what could be a project template for Django advanced usage, with modern tooling (for Python and UI dependencies, as well as configuration/environment management), but not too opinionated.

Flash Attention derived and coded from first principles with Triton (Python) 
This video provides an in-depth, step-by-step explanation of Flash Attention, covering its derivation, implementation, and underlying concepts. The presenter explains CUDA, Triton, and autograd from scratch, then derives and codes both the forward and backward passes of Flash Attention.


Interesting Projects, Tools and Libraries

chonkie
The no-nonsense RAG chunking library that's lightweight, lightning-fast, and ready to CHONK your texts.

Muon
Muon optimizer for neural networks: >30% extra sample efficiency, <3% wallclock overhead.

Protenix
A trainable PyTorch reproduction of AlphaFold 3.

Cosmos-Tokenizer
A suite of image and video neural tokenizers.

alphafold3
AlphaFold 3 inference pipeline.

TinyTroupe 
LLM-powered multiagent persona simulation for imagination enhancement and business insights.

pipe-operator
Elixir's pipe operator in Python.

weft 
A vim-like terminal reader to chat with your books.

TransformerEngine
A library for accelerating Transformer models on NVIDIA GPUs, including using 8-bit floating point (FP8) precision on Hopper and Ada GPUs, to provide better performance with lower memory utilization in both training and inference.

BeamerQt
PyQt-based application to create Beamer-LaTeX Presentations.


New Releases

Flask 3.1.0 Released


Upcoming Events and Webinars

PyData Berlin Meetup November 2024
There will be following talks
  • Running Python data transformations at scale with dbt and Astronomer Cosmos
  • Anomaly Detection in Track Scenes

Hybrid: PyMunich Meetup November 2024
There will be following talks
  • Beginner Friendly IoT in Python – Object Oriented design for writing IoT servers
  • Transforming Jupyter Notebooks into Web Apps: A Python-Powered Approach to Heat Planning

Portland Python User Group November 2024
There will be a talk, HTMX with Python.

PyData Milano Meetup November 2024
There will be following talks
  • From stringly typed to strongly typed: Insights from re-designing a library
  • Foundational Models for Time Series Forecasting: Are We There Yet?

PyData Munich Meetup November 2024
There will be following talks
  • Robust and Efficient Coupling of Perception to Actuation with Metric and Non-Metric Scene Representations
  • Understanding Context in the Wild - AI Testing Automated Driving Systems
  • Strategies Towards Reliable Scene Understanding for Autonomous Driving and Beyond
  • How to Unlock More Value from Self-Driving Datasets

PyDataMCR Meetup November 2024
There will be following talks
  • Developing High-Resolution Models for Future UK Climate Extremes
  • From Data Science to Data Engineering
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 © 2024 Python Weekly, All rights reserved.


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

Python Weekly - Issue 675

2024-11-08 00:00:00

Python Weekly - Issue 675

View this email in your browser

Python Weekly

Welcome to issue 675 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 
Get Your Weekly Dose of Programming
A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free

News

PyCon US 2025 Call for Proposals
PyCon US 2025 is now accepting proposals for Talks, Charlas, Tutorials and Posters until December 19, 2024. 

Octoverse: AI leads Python to top language as the number of global developers surges
The Octoverse 2024 report highlights significant growth in global developer activity on GitHub, with Python overtaking JavaScript as the most popular language and a surge in AI-related projects.


Articles, Tutorials and Talks

Basilisp: Clojure on the Python VM 
Everyone knows Clojure runs on the JVM and CLR, in Node, and in the browser, but what about Python? Basilisp is a mostly-compatible implementation of Clojure for Python, enabling users who may not be familiar with Java or JavaScript to experience the joy of Clojure.

Don't return named tuples in new APIs
Named tuples should generally be avoided in new APIs, as they add unnecessary complexity by supporting both index-based and attribute-based data access, leading to potential misuse and added maintenance. Instead, using options like data classes or typed dictionaries can offer clearer, more structured code with similar benefits.

OLMo: Accelerating the Science of Language Modeling (COLM) 
The OLMo project aims to create powerful, fully open language models accessible to researchers, including open-source code for data, training, and inference. This initiative addresses the need for transparency in AI research by providing a comprehensive framework for building and studying language models, enabling investigation of biases, risks, and fundamental challenges in current models.

A Comprehensive Guide to Python Project Management and Packaging: Concepts Illustrated with uv – Part I
The goal of this guide is to provide a comprehensive guide to Python project management and packaging. We’ll explore concepts in the standard, like the different tables in pyproject.toml by revisiting the PEPs that led to what we have today. We’ll explain what was used before, why it needed to change, and how the changes provided by the PEPs solved the issues. This walkthrough of the historical context is important to understand current practices.

Step-by-Step Python Package Deployment with GitHub Actions 
Publishing a Python package doesn't have to be overwhelming! This video walks you through the entire deployment process step-by-step. You'll learn how to automate releases with GitHub Actions and how to successfully publish your package on PyPi.

Why Durable Execution Should Be Lightweight
How to make your programs crashproof without changing the way they're built.

Tiny GraphRAG (Part 1)
A tiny 1000 line implementation of GraphRAG in Python.

Host a FastAPI Application Without a Server
FastAPI, true to its name, is among the fastest frameworks for building APIs. It is a go-to choice for developers aiming to create APIs with speed and ease. Traditionally, hosting and sharing a FastAPI server involves setting up cloud environments, which can be time-consuming. In this article we’ll demonstrate how to bypass that complexity and instantly share your FastAPI server from localhost with a single command using Pinggy.


Interesting Projects, Tools and Libraries

hertz-dev
First base model for full-duplex conversational audio.

Integuru
The first AI agent that builds third-party integrations through reverse engineering platforms' internal APIs.

Docling
Get your documents ready for gen AI.

digit360
Digit 360 is a modular platform that unlocks new capabilities, and enables future research on the nature of touch.

mac_computer_use
A fork of Anthropic Computer Use that you can run on Mac computers to give Claude and other AI models autonomous access to your computer.

tinylangs
Real programming languages in 50 lines of code.

ToolGit
ToolGit is a collection of scripts that extend Git with various sub-commands to make life easier.

terminal-tree
An experimental filesystem navigator for the terminal, built with Textual.

browser-use
Open-Source Web Automation library with any LLM.

venvstacks
Virtual environment stacks for Python.

code-embedder
Keep your code snippets in README up-to-date!


New Releases

Django bugfix release issued: 5.1.3


Upcoming Events and Webinars

PyData NYC Meetup November 2024
There will be following talks
  • Connecting the Dots - From Network Science to Spatial Analytics
  • Build a local AI co-pilot using open-source Granite Code, Ollama, and Continue

Hybrid: PyMNtos Python Presentation Night #130
There will be following talks
  • Build Reliable Python Applications, Faster: Durable Execution with Temporal
  • Improving - Temporal in the Wild

Hybrid: IndyPy - AI & Data for Good
Data science experts Amrutha Pulikottil and Zach Cardwell will share insights on how AI and data are driving progress in health equity and resource distribution. Discover how Python and other technologies are creating real social impact.

Hybrid: PyData Chicago Meetup November 2024
There will be following talks
  • Validation-Driven Development
  • AI-Powered Wardrobe Optimization: Merging Fashion with Machine Learning

PuPPy Meetup November 2024
There will be following talks
  • Elevating Conversational AI: Best Practices for Developing Effective GenAI Systems
  • Introduction to GraphRAG

Cleveland Python Meetup November 2024
There will be a talk, Medcopia: Automating Alerts for Drug Shortages Using Python.
 
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 © 2024 Python Weekly, All rights reserved.


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

Python Weekly - Issue 674

2024-10-31 23:00:00

Python Weekly - Issue 674

View this email in your browser

Python Weekly

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

Be Careful With Removing Code Duplication 
This video refactors some tricky, hard-to-detect code duplication, provides an example of when it’s best to leave duplicated code as is, and shares a few tips on how to avoid duplication altogether.

Investigation of a Workbench UI Latency Issue
Netflix engineers investigated a JupyterLab UI latency issue in their Workbench product, tracing it to an unexpected interaction between a resource usage extension and memory allocation. The root cause was identified as the extension's performance degrading linearly with increased virtual memory usage, despite available physical memory.

From Python to CPU instructions: Part 1
In the first part of a two-part series, we’ll compare the same program written in C and Python to reveal what Python hides from us. 
  • Part 2 - In the second part, we’ll dive into how the C program translates into CPU instructions, exploring what the computer does with our human-readable code.

Embeddings are underrated 
The article provides an introduction to embeddings in machine learning, explaining their role in converting data (like text) into numerical representations that capture semantic meaning. It covers various types of embeddings and techniques, showing how they improve tasks such as search and recommendation systems.

You Should Probably Pay Attention to Tokenizers
This article emphasizes the importance of understanding tokenizers in AI applications, particularly for Retrieval-augmented generation (RAG) systems. The author demonstrates how different tokenizers handle various types of text input, including emojis and misspelled words, and explains how tokenization affects embedding quality and overall performance in natural language processing tasks.

Zero Downtime Django Deployments with Multistep Database Changes
Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially when dealing with database changes. This article delves into what blue-green deployments are, why database changes can be tricky in this context, and how to navigate common change scenarios effectively in Django.

PyBay 2024 Videos 
The talks from PyBay 2024 are now available online.

Adding keyboard shortcuts to the Python REPL
The article discusses how to enhance the Python REPL (Read-Eval-Print Loop) by adding custom keyboard shortcuts to improve efficiency and user experience. It provides step-by-step instructions for implementing these shortcuts, enabling users to navigate and execute commands more effectively.


Interesting Projects, Tools and Libraries

ClickPy
PyPI analytics powered by ClickHouse.

sudoku-in-python-packaging
Solve sudokus not in python, but in python packages.

Mochi 1
The best OSS video generation models.

Moonshine
Fast and accurate automatic speech recognition (ASR) for edge devices.

llm-jq
Write and execute jq programs with the help of LLM.

Wimsey 
A fast, lightweight and easy data contract library.

Finstruments
Financial instrument definitions built with Python and Pydantic.

Mininterface 
A minimal interface to Python application.


Upcoming Events and Webinars

Michigan Python Meetup November 2024
There will be a talk, Build Multi-Platform Apps with Flet and Python.

PyData London Meetup November 2024
There will be following talks
  • Valuable lessons learned on Kaggle's ARC AGI (LLM) Challenge
  • Unlocking Scalability: Building High-Capacity Vector Databases with Open-Source Techniques 
  • Turn YouTube videos & podcasts into readable Markdown with Whisper and LLMs 

PyData Stockholm Meetup November 2024
There will be following talks
  • How do LLMs work? Building intuition on Neural Networks, Transformers, and LLMs
  • Building RAG for Financial Data: LLM-Powered Hackathon Success in 36 Hours

PyData Prague Meetup November 2024
There will be following talks
  • Multi-Agent Frameworks: Teaming Up Specialized AI Models to Tackle Complex Tasks
  • Low-Tech ETL
  • Peek into Threat Intelligence

PyData Montreal Meetup November 2024
There will be following talks
  • Python as an orchestrator for a RAG (retrieval-augmented generation) Architecture
  • Advancing Deep Learning and Vision Efficiency with Mamba, VMamba, and Vim
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 © 2024 Python Weekly, All rights reserved.


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

Python Weekly - Issue 673

2024-10-24 23:00:00

Python Weekly - Issue 673

View this email in your browser

Python Weekly

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

Replacing Callbacks with Generators: A Case Study in Computer-Assisted Live Music 
Watch how Matthieu Amiguet transforms a complex callback mess into a readable and efficient system using generators in computer-assisted live music.

Python and Sigstore
Seth Larson discusses the implementation of Sigstore in Python, highlighting its benefits for software supply chain security and its integration into CPython's release process. He explains how Sigstore improves upon traditional GPG signatures by providing transparency, ease of use, and better security practices, while also detailing the challenges and future plans for Sigstore adoption in the Python ecosystem.

Django and htmx Tutorial: Easier Web Development 
Christopher Trudeau demonstrates how htmx can add dynamic features like lazy loading and search-as-you-type to Django applications with minimal JavaScript. The tutorial showcases htmx's integration with Django, allowing more server-side logic and potentially better performance compared to traditional single-page applications.

The Stacktrace Puzzle
Explore how Python stacktraces with chained exceptions can become confusing puzzles and solve a few puzzles of your own.

Creating a DType for the Next Generation of Scientific Computing
From no CPython C API experience to shipping a new DType in NumPy 2.0.

15 Powerful Python Libraries You Should Be Using 
In this video, 15 impressive Python libraries are showcased that everyone should know about. Whether for data scientists or backend developers, many of these packages will prove to be very useful.

A DSL for Peephole Transformation Rules of Integer Operations in the PyPy JIT
PyPy introduced a new domain-specific language (DSL) for specifying peephole optimizations on integer operations in its JIT compiler. The DSL uses pattern matching and Z3 theorem proving to simplify the process of adding and verifying optimization rules, improving upon the previous verbose and error-prone imperative approach.

Epic Debugging, Hilarious Outcome 
In this episode, an issue with sign-up was explored. What seemed like a minor fix turned into an intense debugging session, delving deeply into the django-allauth package to uncover the underlying problems.

PyData Amsterdam 2024 
Talks from PyData Amsterdam 2024 are now available. 


Interesting Projects, Tools and Libraries

Arch
Arch is an intelligent prompt gateway. Engineered with (fast) LLMs for the secure handling, robust observability, and seamless integration of prompts with APIs - all outside business logic. 

BitNet
Official inference framework for 1-bit LLMs.

DocETL
A system for agentic LLM-powered data processing and ETL.

git-remote-s3
This library enables to use Amazon S3 as a git remote and LFS server.

Kalmangrad
Automated, smooth, N'th order derivatives of non-uniformly sampled time series data.

mini-omni2
Towards Open-source GPT-4o with Vision, Speech and Duplex Capabilities.

compl-ai
An open-source compliance-centered evaluation framework for Generative AI models.

zerox
Zero shot pdf OCR with gpt-4o-mini.

meme_search
Index your memes by their content and text, making them easily retrievable for your meme warfare pleasures. Find funny fast.

Hallo2
Long-Duration and High-Resolution Audio-driven Portrait Image Animation.

BugGPT
LLM powered vulnerable web page generator for testing and educational purposes.


Upcoming Events and Webinars

PyLadies Dublin Meetup October 2024
There will be a workshop, Learn Python by Making Your Own Pytch Game!

PyData Cluj-Napoca Meetup October 2024
There will be following talks
  • Type or Dare: Navigating Python’s Typing Ecosystem
  • Skip the line. Using GenAI to analyze your data
  • Off-the-shelf HuggingFace models for audio deepfake detection

PyData Warsaw Meetup October 2024
There will be following talks
  • How can you reach an AGI in your garage?
  • Beyond the Continuum: The Importance of Quantization in Deep Learning

PyData Calgary Meetup October 2024
There will be a talk, The ResearchOps Toolbox + Python & Graph: Discovering the Right Tools for UX Research & Design Teams.
 
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 © 2024 Python Weekly, All rights reserved.


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