About Python Weekly

A free weekly newsletter featuring the best hand curated news, articles, new releases, tools and libraries, events etc related to Python.

The RSS's url is : http://us2.campaign-archive1.com/feed?u=e2e180baf855ac797ef407fc7&id=9e26887fc5

Please copy to your reader or subscribe it with :

Preview of RSS feed of Python Weekly

Python Weekly - Issue 646

2024-04-11 23:00:00

Python Weekly - Issue 646

View this email in your browser

Python Weekly

Welcome to issue 646 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

Articles, Tutorials and Talks

SQLAlchemy: The BEST SQL Database Library in Python 
Ever heard of SQLAlchemy and thought it sounded like a medieval potion? Well, it's not! SQLAlchemy combines the robustness of SQL with Python's flexibility, making database management not just easier, but kinda fun too! In this video, I’ll take a closer look at this awesome tool.

The Design Philosophy of Great Tables
The article discusses the importance of well-designed tables for effectively presenting data, drawing inspiration from historical tabular design principles. It highlights the Great Tables library's focus on providing various customization options to help users create visually appealing and structured tables for publications, reports, and other data-driven content

14 LLMs fought 314 Street Fighter matches. Here's who won
Explore a new benchmark for large language models beyond Q&A tasks. Discover how LLMs compete in Street Fighter III using Amazon Bedrock.

Client libraries are better when they have no API
The article discusses the author's approach to building a client library for the csvbase, focusing on leveraging existing file system abstraction libraries like fsspec to provide a seamless user experience without a custom API. It highlights the benefits of this approach, such as enabling integration with a wide range of tools and libraries that already support the fsspec interface.

Building a streaming ChatGPT clone, with Django, Channels, and HTMX 
This video walks you through the process of building a ChatGPT clone step-by-step using Django, websockets, and HTMX. Each piece of functionality is broken down into a single commit, then explained and demonstrated. By the end, a fully functional, streaming chatbot app is ready!

How to survive coding interviews with a single line of Python code
The article discusses techniques for solving coding interview questions using concise, single-line Python code.

Cosine Similarity and Text Embeddings In Python with OpenAI
The article discusses how to use cosine similarity to compare text embeddings, which are vector representations of text that capture semantic meaning, in order to determine the similarity between different text inputs. It provides example code for calculating cosine similarity between text embeddings generated using the OpenAI API.

7 examples in 6 minutes using Django GeneratedField 
We'll go over 7 short examples in 6 minutes. After looking at them, you'll know how to use Django's GeneratedField - doing calculations automatically with the database quickly and neatly.

Backtesting a Trading Strategy in Python With Datalore and AI Assistant
This article will you walk through the process of backtesting a daily Dow Jones mean reversion strategy using Python in Datalore notebooks. To make it accessible even for those with limited coding experience, the author leverages Datalore's AI Assistant capabilities.

Predicting solar eclipses with Python
The article describes how the author was able to write a Python script to compute the position of the sun and moon and predict the location of total solar eclipses, leveraging the Astropy library and other Python packages, all in around 100 lines of code. 


Interesting Projects, Tools and Libraries

AutoCodeRover
A project structure aware autonomous software engineer aiming for autonomous program improvement.

FreeAskInternet
FreeAskInternet is a completely free, private and locally running search aggregator & answer generate using LLM, without GPU needed. The user can ask a question and the system will make a multi engine search and combine the search result to the ChatGPT3.5 LLM and generate the answer based on search results.

Loki
An Open-source Tool for Fact Verification.

schedule_free
Schedule-Free Optimization in PyTorch.

Mantis
Mantis is a security framework that automates the workflow of discovery, reconnaissance, and vulnerability scanning.

open-parse
Improved file parsing for LLM’s.


New Releases

Python in Visual Studio Code – April 2024 Release
This release includes the following announcements:
  • Improved debug config flow for Flask and Django
  • Module and import analysis on Jupyter’s Run Dependent Cells with Pylance
  • Hatch environment discovery
  • Automatic environment selection for pipenv, pyenv, and Poetry projects
  • Report Issue command improvements

Python 3.11.9 is now available

Python 3.12.3 and 3.13.0a6 released


Upcoming Events and Webinars

Django London Meetup April 2024
There will be a talk, Data-Oriented Django Deux.

PyLadies London Meetup April 2024
There will be following talks
  • Semantic Search with Elasticsearch and Python
  • Recruiting at Elastic - Hints and Tips for Job Seekers
  • Efficient Python Project Setup: Showing Cookiecutter's Potential within Kedro 

Portland Python Meetup April 2024
There will be a talk, Generators and Iterators in Python.
 
PyData Southampton Meetup April 2024
There will be following talks
  • Desert Island Docker: Python Edition
  • Streaming DataFrames: A New Way to Process Streaming Data in Python

PyData Milano Meetup April 2024
There will be following talks
  • Swing Option Pricing in Energy market: A Dynamic Programming Approach
  • Explainable AI: opportunities and challenges

PyData Stockholm Meetup April 2024
There will be following talks
  • Data curation at scale for foundation model pre-training
  • Sana AI - How to build a consumer-grade enterprise product with Generative AI

PyData Manchester Meetup April 2024
There will be following talks
  • Tall Tales of Tabulation
  • The importance of open data and methods in Climate Value Analytic
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 645

2024-04-04 23:00:00

Python Weekly - Issue 645

View this email in your browser

Python Weekly

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

Typosquatting Campaign Targets Python Developers
Phylum's automated risk detection platform identified a new typosquatting campaign targeting popular Python libraries on PyPI, with over 500 typosquat variations published so far. PyPI has promptly removed the malicious packages and temporarily suspended new project and account creations to prevent further fallout from this attack.


Articles, Tutorials and Talks

A little guide to building Large Language Models in 2024 
This is the first video of a 2 part series covering all the concepts to train a good performance LLM in 2024.

Why Do Python Lists Multiply Oddly? Exploring the CPython Source Code
A look at the internals of list implementation in CPython to understand this weird quirk about them.

Bringing Python to Workers using Pyodide and WebAssembly
The post discusses Cloudflare's implementation of Python Workers, focusing on their benefits and use cases for serverless computing. It explores how Python Workers enable developers to build and deploy lightweight, scalable applications efficiently on Cloudflare's network.

Make Python DevEx
The article discusses the challenges of setting up a productive Python development environment and how using Make can help alleviate these barriers by automating the preparation of the development environment and expediting the test-driven development cycle. The author provides an example project that demonstrates how to use Make to improve the Python developer experience across multiple codebases.

Enforcing conventions in Django projects with introspection
Some code and tips to combine Python and Django introspection APIs to enforce naming conventions in your Django models.

Building LLMs for Code Repair
The article discusses Replit's Code Repair feature, which automatically fixes common programming errors and issues in code. It explores how Code Repair helps developers save time and improve code quality by providing automated solutions to common coding problems.

Using breakpoints to explore your code
This post guides Python developers on effectively utilizing breakpoints to debug and explore code execution flow. It offers practical tips and examples to leverage breakpoints for better understanding and troubleshooting of Python code.

ASGI deployment options for Django
The article explores ASGI deployment options for Django applications, providing insights into deploying Django with ASGI servers.

Python 3.12 Generics in a Nutshell 
Generics in Python 3.12 can transform your code by allowing classes to be used with different data types, enhancing flexibility, and catching bugs early. This video dives into generic classes and subclasses and show you how they can streamline your development process.

Automating Python with Google Cloud
A tutorial series on how to automate a Python script in Google Cloud using Cloud Functions and/or Cloud Run. 

Can GPT Optimize My Taxes?
The post describes a web application that uses GPT-4 and the tenforty Python library to allow users to input tax scenarios and receive optimized tax calculations and recommendations. The application aims to provide a more flexible and personalized tax advisory experience compared to traditional tax software.

Python Project-Local Virtualenv Management Redux

How I manage Python in 2024


Interesting Projects, Tools and Libraries

SWE-agent
SWE-agent turns LMs (e.g. GPT-4) into software engineering agents that can fix bugs and issues in real GitHub repositories.

DBRX
Code examples and resources for DBRX, a large language model developed by Databricks.

thepipe
Export any file, folder, website, or repo into GPT-4-Vision with one line of code.

Sparrow
Data processing with ML and LLM.

Nava
Playing Sounds in Python.

IPEX-LLM
A PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc, Flex and Max) with very low latency.

RAGFlow
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.


New Releases

Django bugfix release issued: 5.0.4


Upcoming Events and Webinars

San Francisco Python Meetup April 2024
There will be following talks
  • Prompt engineering: for version 0.1 code - The path to quicker results
  • Strategies for quicker Pytest runs

PyData NYC Meetup April 2024
There will be following talks
  • Introduction to Time Series Forecasting
  • Time Series EDA with STUMPY

Pyladies Munich Meetup April 2024
There will be following talks
  • Observability: Principles & Application in Python
  • Seamless Cloud Infrastructure Management with Python
  • The Accountability Factor: How Peer Support Can Transform Your Learning Journey

Freiburg Python Meetup April 2024
There will be following talks
  • Event system - an evolution of the software at JobRad
  • Dockerizing Python applications and their security 

PyData Munich Meetup April 2024
There will be following talks
  • Accessing GPUs From Multiple Providers With dstack Sky
  • More Labels or Cases? Assessing Label Variation in Natural Language Inference
  • p(doom) - an Open, Entirely Decentralized, Global AI Research Lab
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 644

2024-03-28 23:00:00

Python Weekly - Issue 644

View this email in your browser

Python Weekly

Welcome to issue 644 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

Articles, Tutorials and Talks

Designing a Pure Python Web Framework
This post explains how Reflex, a pure Python web framework, enables users to build web apps without the need to learn new languages. It details how Reflex works under the hood, highlighting its unique approach of compiling UI to JavaScript while keeping app logic and state management in Python on the server

Fixing a Bug in PyPy's Incremental GC
This post discusses how the author fixed a bug in PyPy's incremental garbage collector that was causing crashes in the AST rewriting phase of pytest on CI environments. It details the technical background on PyPy's incremental GC and the specific issues that were uncovered and resolved in the write barrier implementation.

A better Python cache for slow function calls
The article introduces a Python file cache that stores function values in files instead of memory, offering a more persistent caching solution. By using the file_cache decorator, developers can enhance performance by saving time running functions like LLM benchmarks and sharing the cache as a Python module.

Django: Write-up on optimizing the system check framework
The post discusses optimizations made to Django's system check framework, which had gained a reputation for being slow. The optimizations reduced the runtime of running checks on an example client project from 37ms to 18ms, a 50% reduction.

Python Poetry in 8 Minutes 
This video guides you through the ins and outs of managing Python virtual environments, while also introducing you to Poetry. You'll learn a host of tips and strategies to manage your projects with greater effectiveness and efficiency.

Fake-SMS: How Deep Does the Rabbit Hole Really Go?
Tracking a Bad Actor Through the Maze of Obfuscated Malware Code.

The wrong way to speed up your code with Numba
Numba can make your numeric code faster, but only if you use it right.

Unnecessary else statements
Let's talk about unnecessary else statements in Python.

Data Visualization in PostgreSQL With Apache Superset
Looking for data visualization tools for PostgreSQL? We discuss a few options and provide a step-by-step guide on PostgreSQL and Apache Superset.

Building a Django API for Mobile Developers 
A dive into the backend side of app development, focusing on building robust APIs with Django and Django Rest Framework.

Secure LLM Architecture - Testing LLM Guard 
The video explores LLM architectures, addressing security concerns and critiquing ineffective security tools. It introduces LLM Guard, an open-source tool aiming to enhance LLM security by checking inputs for malicious intent and outputs for sensitive data, demonstrated through practical examples and emphasizing the importance of output monitoring and permissions in safeguarding data.

The power of predicate pushdown
Predicate pushdown is one of the most important optimizations for a query engine. Read more about it in this article.

Distributed coroutines with a native Python extension and Dispatch
The article discusses how Distributed Coroutines, when paired with a distributed scheduler like Dispatch, can simplify the creation of scalable and reliable software by allowing functions to be suspended, serialized, and resumed in another process. It highlights how Distributed Coroutines leverage Python's native support for coroutines and async functions to encode dynamic workflows using regular programming language constructs and control flow.

AWS Lambda + Bedrock Tutorial 
Learn how to use AWS Lambda to invoke APIs from AWS Bedrock. This video is step by step using Python and boto3's Bedrock client to call the InvokeModel API. It also shows you how to set up your IAM Permissions and modify your Lambda Timeout values to deal with slow responses from Bedrock. 


Interesting Projects, Tools and Libraries

open-interpreter
A natural language interface for computers.

Devika
Agentic AI Software Engineer. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.

T-Rex
Towards Generic Object Detection via Text-Visual Prompt Synergy.

OpenDevin
An open-source project aiming to replicate Devin, an autonomous AI software engineer who is capable of executing complex engineering tasks and collaborating actively with users on software development projects.

VoiceCraft
Zero-Shot Speech Editing and Text-to-Speech in the Wild.

lightning-thunder
Make PyTorch models Lightning fast! Thunder is a source to source compiler for PyTorch. It enables using different hardware executors at once.

reverser_ai
Provides automated reverse engineering assistance through the use of local large language models (LLMs) on consumer hardware.

Leaping
Leaping's pytest debugger is a simple, fast and lightweight debugger for Python tests. Leaping traces the execution of your code and allows you to retroactively inspect the state of your program at any time, using an LLM-based debugger with natural language.

Tracecat
The AI-native, open source alternative to Tines / Splunk SOAR. 

rag-search
RAG Search API.

FeatUp
A Model-Agnostic Framework for Features at Any Resolution.


Upcoming Events and Webinars

PyData London Meetup April 2024
There will be following talks
  • Building Retrieval Augmented Generation (RAG) powered applications
  • Getting python out of the way when taking ML models from research to production. A deep dive into the Open Neural Network Exchange (ONNX)

Michigan Python Meetup April 2024
There will be a talk, Spatial Data Visualization with GeoPandas.

PyData Amsterdam Meetup April 2024
There will be following talks
  • Fraud or no Fraud: sounds simple, right?
  • Building GenAI and ML systems with OSS Metaflow
 
PyData Tel Aviv Meetup April 2024
There will be following talks
  • To Bid, or not to Bid – Reinforcement Learning for Real Time Bidding
  • Securing LangChain Applications Against Prompt Injection Using Rebuff
  • Polars is the Pandas killer
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 643

2024-03-21 23:00:00

Python Weekly - Issue 643

View this email in your browser

Python Weekly

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

How to use PostgreSQL for (military) geoanalytics tasks
This is a detailed guide on utilizing PostgreSQL for military geoanalytics tasks, emphasizing the importance of geospatial data processing in military operations. It covers methods for processing geospatial data, finding nearest objects, distance calculations, using geospatial indexes, determining points within polygons, and geospatial aggregation to enhance analytical capabilities in military contexts.

Every dunder method in Python
An explanation of all of Pytho's 100+ dunder methods and 50+ dunder attributes, including a summary of each one.

Lambda on hard mode: Inside Modal's web infrastructure
This post talks about how Modal handles real-time HTTP requests and WebSockets in serverless functions.

How to Test Asynchronous Code in Python 
Testing asynchronous code is tricky but essential for creating smooth, error-free, and reliable applications. So in this video, I'll guide you through the basics of testing asynchronous code effectively.

Introducing Pixi's Multiple Environments
The post introduces Pixi's Multiple Environments feature, allowing users to create tailored environments with specific sets of packages for different tasks like testing, development, or production. This enhancement in Pixi empowers users to customize their environments based on their project requirements, offering flexibility and efficiency in managing dependencies and tasks.

Diffusion models from scratch, from a new theoretical perspective
The article provides insights into interpreting and enhancing diffusion models using the Euclidean distance function, offering a detailed exploration of diffusion models and their applications. It focuses on improving diffusion models through gradient estimation, efficient sampling techniques, and visualizing the impact of momentum terms on text-to-image generation.

Building command-line applications in Python
Dive into a comprehensive guide on implementing command-line applications in Python. This tutorial uses the argparse module to explain how arguments, flags, and options work in a command-line application by building a BMI calculator app and implementing the Linux head command in Python.

Nextjs and Django Airbnb Clone 
Learn how to build a fullstack clone of Airbnb using technologies like Nextjs/React and Tailwind in the frontend, and Django with Django rest framework in the backend.

Make your Pandas or Polars DataFrames Interactive with ITables 2.0
ITables, or Interactive Tables, is a MIT-licensed Python package that renders Python DataFrames using the DataTables JavaScript library. ITables 2.0, that I have just released, adds support for the DataTables Extensions. In this post we review the functionalities brought by this release.

Cataloguing my vinyl collection with computer vision
The post  details the process of cataloguing a vinyl collection using computer vision, focusing on identifying unique vinyl records through a systematic approach. By leveraging computer vision technology and embedding techniques, the author shares insights into creating a system that accurately identifies and indexes vinyl records for efficient cataloging and organization.

AutoDev: Automated AI-Driven Development
The paper "AutoDev: Automated AI-Driven Development" presents an automated approach to AI-driven development, involving a collaborative effort by multiple authors. It explores the advancements in automated development processes driven by artificial intelligence, showcasing a comprehensive study on AutoDev

Parsing URLs in Python
The article delves into the complexities of parsing URLs in Python, highlighting the challenges and evolution of URL specifications over time. It emphasizes the importance of using the WHATWG URL specification as a reliable guide for handling URLs accurately in Python applications.

Jupyter & IPython terminology explained 
Understand the differences between Jupyter Notebook, JupyterLab, IPython, Colab, and other related terms.


Interesting Projects, Tools and Libraries

Grok-1
Grok open release.

Skyvern
Automate browser-based workflows with LLMs and Computer Vision.

MindGraph
Proof of concept prototype for generating and querying against an ever-expanding knowledge graph with AI.

Chronos
Pretrained (Language) Models for Probabilistic Time Series Forecasting.

LaVague
Automate automation with Large Action Model framework.

DarkGPT
DarkGPT is an artificial intelligence assistant based on GPT-4-200K designed to perform queries on leaked databases.

phospho
Text analytics for LLM apps. PostHog for prompts. Extract evaluations, intents and events from text messages. phospho leverages LLM (OpenAI, MistralAI, Ollama, etc.)

LLM4Decompile
Reverse Engineering: Decompiling Binary Code with Large Language Models.

sqlelf
Explore ELF objects through the power of SQL.

Magix
Supercharge huggingface transformers with model parallelism.


New Releases

Django REST framework 3.15

Python 3.10.14, 3.9.19, and 3.8.19 is now available


Upcoming Events and Webinars

Virtual: PyMunich Meetup March 2024
There will be following talks
  • An OS journey through Python async and threads
  • Clean architecture for serverless applications

Virtual: DragonPy Meetup March 2024
There will be following talks
  • Apache Arrow - Managing bytes for fun and profit
  • Self-hosting a Data Stack
  • SQL and Python: The Dynamic Duo of Data Warehousing

San Diego Python Meetup March 2024
There will be following talks
  • RWKV: The successor of transformers?
  • Using LangChain to build AI apps
  • Working with Apache Sedona in Cloudera Data Engineering

PyData Cyprus Meetup March 2024
There will be a talk, A Tour of Large Language Models.

PyData Montreal Meetup March 2024
There will be following talks
  • How Machine Learning Can Help Game Design
  • BigCode: Open and Responsible development of Large Language Models for code

PyData Bristol Meetup March 2024
There will be following talks
  • Silent Intrusion: How LLM Infiltrating Enterprises
  • Empowering Society with Data Science: A Rapid Deployment Strategy for Everyday Impact
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 642

2024-03-14 23:00:00

Python Weekly - Issue 642

View this email in your browser

Python Weekly

Welcome to issue 642 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

DjangoCon US 2024 CFP
DjangoCon US 2024 CFP is now open. Submit your talk or tutorial proposal by April 24, 2024 at 12 PM EDT.


Articles, Tutorials and Talks

We Hacked Google A.I. for $50,000
This article discusses the author's experience of participating in a hacking event in Las Vegas where vulnerabilities were discovered, leading to the successful hacking of Google. Despite the initial achievement, the Google VRP team extended the competition deadline to encourage more creative findings, highlighting the ongoing challenges and opportunities in the realm of cybersecurity

Why You Should Use Pydantic in 2024 
In this updated Pydantic tutorial, I’ll cover all the new features and how they can benefit your projects. Despite Python's dynamic type system being user-friendly, it's not without its data handling issues. That's where Pydantic comes in, providing the essential structure and validation for seamless data management.

GGUF, the long way around
This is an article about GGUF, a file format used for machine learning models. It discusses what machine learning models are and how they are produced.

Python Gevent in practice: common pitfalls to keep in mind
Learn more about the common pitfalls of using the asynchronous Python library, Gevent, and how to resolve them in this article.

Speed up Django’s collectstatic command with Collectfasta
The post introduces Collectfasta, an updated fork of Collectfast designed to enhance the performance of Django's collectstatic command. By optimizing the repository and improving performance, Collectfasta offers faster execution and efficiency compared to the standard Django command, providing a valuable tool for developers seeking enhanced performance in their Django projects.

Create A Machine Learning Powered NCAA Bracket 
Dive into the fascinating world of machine learning and AI as we guide you through developing a model designed to predict NCAA tournament outcomes. From initial setup to final predictions, we’ll cover everything you need to create your own powerhouse model.

Sandboxing Python with Win32 App Isolation 
The post explores the challenges and benefits of sandboxing Python, particularly in scenarios like websites executing user code or preventing attacks on Large Language Models. Win32 App Isolation offers a unique approach to sandboxing Python at an application/OS level, creating a security boundary to prevent applications from compromising the operating system.

Using LLMs to Generate Fuzz Generators
The post explores the effectiveness of Large Language Models (LLMs) in generating fuzz drivers for library API fuzzing. It discusses the challenges and benefits of LLM-based fuzz driver generation, highlighting its practicality, strategies for complex API usage, and areas for improvement based on a comprehensive study and evaluation.

Guide to Time-Series Analysis in Python
A look at why Python is a great language for time-series analysis. Plus, tips for getting started today.

Large Language Models On-Device with MediaPipe and TensorFlow Lite
The article discusses the release of the experimental MediaPipe LLM Inference API, enabling Large Language Models (LLMs) to run fully on-device across platforms. This transformative capability addresses the significant memory and compute demands of LLMs, which are over a hundred times larger than traditional on-device models, achieved through optimizations like new ops, quantization, caching, and weight sharing.

Homebrew all the Python things

Insecurity and Python pickles

Understanding Context Manager and its Syntastic Sugar

Does Python have pointers?


Interesting Projects, Tools and Libraries

openllmetry
Open-source observability for your LLM application.

CBScript
CBScript is a transpiled language, designed by SethBling. This compiler will compile CBScript files into Minecraft datapack zip files. It has many higher level language features that don't exist at the Minecraft command level.

SQLMesh 
Efficient data transformation and modeling framework that is backwards compatible with dbt.

Dataverse
The Universe of Data. All about data, data science, and data engineering.

LlamaGym
Fine-tune LLM agents with online reinforcement learning.

chedule-texts-from-txt
Schedule iMessage or SMS texts from .txt files.

fructose
LLM calls as strongly-typed functions.

R2R
A framework for rapid development and deployment of production-ready RAG systems.

python-docstring-highlighter
Syntax highlighting for Python Docstring in VSCode.

Ludic
Lightweight framework for building HTML pages in pure Python.



New Releases

Python 3.13.0 alpha 5 is now available


Upcoming Events and Webinars

PyLadies London Meetup March 2024
There will be following talks
  • Navigating career path decisions
  • How Spotify personalises your search results with Machine Learning

Python Barcelona Meetup March 2024
There will be following talks
  • Python and Rust
  • Hands on Polars, an alternative to data frames leveraging in Rust

BayPIGgies Meetup March 2024 
There will be following talks
  • The Fun World of SRE
  • Better Together: Unleashing the Synergy of Pandas, Polars, and Apache Arrow
  • Mock It Till You Make It: How to Verify Your External Mocks Without Ever Leaving Unittest

PyData Stockholm Meetup March 2024 
There will be following talks
  • Fine-Tune Your Own Stable Diffusion Model - Tips and Tricks Included
  • AI Tools in Action: Enhancing Customer Experience with LLMs at Polestar

PyData Southampton Meetup March 2024 
There will be following talks
  • The Python Powered Modern Data Stack
  • Transformers Inside Out
  • Estimating cognitive workload using electroencephalography
  • Benchmarking Time-Series Databases

PyData Ireland Meetup March 2024
There will be a talk, Generative AI Enterprise Landscape - Past Present and Future.

PyData Paris Meetup March 2024
There will be following talks
  • Deploy your Data Project on the Web using only Python
  • Get the best from your scikit-learn classifier: trusted probabilities and optimal binary decision
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 641

2024-03-08 00:00:00

Python Weekly - Issue 641

View this email in your browser

Python Weekly

Welcome to issue 641 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

Articles, Tutorials and Talks

Python Upgrade Playbook
In this post, we’ll cover how Lyft upgrades Python at scale — 1500+ repos spanning 150+ teams — and the latest iteration of the tools and strategy we’ve built to optimize both the overall time to upgrade and the work required from our engineers. We’ve successfully used (and evolved) this playbook over multiple upgrades, from Python 2 to Python 3.10.

Building an LLM fine-tuning Dataset 
The video shares insights on building a comprehensive dataset for AI model training using Reddit comments, highlighting challenges such as working with large datasets and filtering out low-quality comments. The creator discusses methods like loading, sorting, and filtering data to create training samples and models, emphasizing the abundance of comments available for analysis and the process of fine-tuning models for efficient training. Ultimately, they decide to use the llama 27b model and discuss plans for utilizing the 480 super GPU for faster fine-tuning and uploading datasets.

Better PC cooling with Python and Grafana
The article discusses improving PC cooling using Python and Grafana, focusing on finding the minimum and maximum fan speeds to optimize cooling performance by exploiting thermal mass and running fans at empirically derived speeds, resulting in enhanced cooling efficiency and reduced noise levels

Create a quiz app in 6 minutes with HTMX and Django
This guide shows you how to build a simple quiz application using Django and HTMX in 6 minutes. HTMX is great for creating dynamic web applications without writing JavaScript.

Multilingual Support In Django
The article delves into the complexities of implementing multilingual support in Django, exploring the challenges and processes involved in internationalization (i18n) and localization. It provides insights into how Django facilitates the translation of strings, the use of GNU gettext framework, and the overall framework for supporting multiple languages within Django projects.

Machine Learning in 2024 – Beginner's Course 
This machine learning course is created for beginners who are learning in 2024. The course begins with a Machine Learning Roadmap for 2024, emphasizing career paths and beginner-friendly theory. Then it the course moves on to hands-on practical applications and a comprehensive end-to-end project using Python.

Intro to DSPy: Goodbye Prompting, Hello Programming!
How the DSPy framework solves the fragility problem in LLM-based applications by replacing prompting with programming and compiling.

How fast can we process a CSV file
The article explores the speed of processing CSV files, highlighting the use of PyArrow to enhance CSV reading speed significantly. It compares different methods like pandas with C engine, pure Python looping, and pandas with PyArrow engine, showcasing the efficiency of PyArrow in processing CSV files faster and more effectively

Levels of Complexity: RAG Applications
This post is a comprehensive guide to understanding and implementing RAG applications across different levels of complexity. Whether you're a beginner eager to learn the basics or an experienced developer looking to deepen your expertise, you'll find valuable insights and practical knowledge to help you on your journey. Let's embark on this exciting exploration together and unlock the full potential of RAG applications.

Combining Rust and Python: The Best of Both Worlds? 
This video shows you how to seamlessly integrate Rust with Python using Pyo3. This library allows you to write Python modules with Rust. This means that we get the speed and safety of Rust along with Python's easy-to-use features!

Deploying Django Apps in Kubernetes
Learn you can optimize Django deployments seamlessly in a Kubernetes environment, whether you are a Django developer or a Kubernetes enthusiast.

Get started with conda environments
This post explains the benefits of virtual environments and how to use virtual environments in conda.

From Beeps to Toots: Reviving Pagers with Python and Mastodon
The article showcases a unique application of Python programming by connecting pagers with Mastodon, blending the reliability of pagers with modern social media interactions. It highlights the versatility of Python in bridging analog devices like pagers with digital platforms, demonstrating the enduring relevance of traditional communication methods in today's digital age.

Python environment management using JupyterLab Desktop CLI
The article discusses Python environment management using the JupyterLab Desktop CLI, which offers various commands and options to manage Python environments efficiently within the application. It covers setting up the JupyterLab Desktop CLI, creating new Python environments, and utilizing bundled environment installers or downloading packages from the registry to enhance the development process.

6 ways to improve the architecture of your Python project (using import-linter)
The article discusses six ways to enhance the architecture of Python projects, focusing on maintaining clear dependency relationships between packages and modules to avoid tangled inter-module dependencies. It addresses challenges like high architectural understanding costs for newcomers and reduced development efficiency due to difficulties in locating code within large projects.


Interesting Projects, Tools and Libraries

Hatchet
A Distributed, Fault-Tolerant Task Queue.

BlendSQL
Unified dialect for orchestrating SQLite logic and LLM reasoning.

django-admin-shellx
A Django Admin Web Shell using Xterm.js and Django Channels.

Bonito
A lightweight library for generating synthetic instruction tuning datasets for your data without GPT.

FastUI
Build better UIs faster.

Hancho
A simple pleasant build system in Python.

Cadwyn
Production-ready community-driven modern Stripe-like API versioning in FastAPI.

flect
A pure Python full-stack web apps framework inspired by Next.js.

pfl
Python framework for Private Federated Learning simulations.

EvalPlus
EvalPlus for rigourous evaluation of LLM-synthesized code.

polars_ds_extension
Polars extension for general data science use cases.


New Releases

Django security releases issued: 5.0.3, 4.2.11, and 3.2.25


Upcoming Events and Webinars

San Francisco Python Meetup March 2024
There will be following talks
  • Spreadsheet Does What?!?
  • Unstructured: an ETL for LLMs
  • Data Pipeline Scorecard
  • Helping Developers Help Themselves

Django London Meetup March 2024
There will be following talks
  • WASM-powered Django apps with PyScript
  • Navigating your job search in 2024

PuPPy Meetup March 2024
There will be following talks
  • Simulating the 3-Polarizer Experiment on a Quantum Computer
  • Why I love planning and you should too!
  • The Rising Sea

Virtual: PyMNtos Python Presentation Night #123
There will be following talks
  • Ideas for the Third Edition of "Introducing Python"
  • Multi-modal Image Search with CLIP

PyData NYC Meetup March 2024
There will be following talks
  • Building LLM Applications in Production
  • But, Did You Tune the Hyperparameters Enough?

PyData Johannesburg Meetup March 2024
There will be a talk, Demystifying Data Ingestion Challenges with Apache Nifi.

PyData Zurich Meetup March 2024
There will be a talk, The Versatility of Attention-Based Autoregressive Models.
 
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 640

2024-03-01 00:00:00

Python Weekly - Issue 640

View this email in your browser

Python Weekly

Welcome to issue 640 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 
 
  Take control of your software supply chain with Docker Scout! Enhance security, ensure compliance, and boost productivity. Seamlessly integrate with your developer tooling ecosystem for more reliable and secure development. Learn more about Docker Scout now!


Articles, Tutorials and Talks

Generative AI Full Course – Gemini Pro, OpenAI, Llama, Langchain, Pinecone, Vector Databases & More 
Learn about generative models and different frameworks, investigating the production of text and visual material produced by artificial intelligence.

GPT Pilot – what we learned in 6 months of working on a CodeGen pair programmer
The article discusses the learnings from six months of working on a CodeGen pair programmer, GPT Pilot, aiming to have human developers understand the codebase and provide detailed explanations of added code to facilitate collaboration between human developers and AI in coding tasks

Dependency Injection Explained in 7 Minutes 
This video explains why dependency injection is a game-changer for your coding projects. Creating loosely coupled code is key to making the code more flexible and more maintainable. This is all possible through the implicit use of dependencies.

Deploy Mistral Large to Azure and create a conversation with Python and LangChain
Step-by-step guide to deploying Mistral Large to Azure.

A Retrospective on Requests
python-requests has been around for a long time. I've been a maintainer for many years and I share some retrospective thoughts on the project.

Mamba: The Hard Way
A post about Mamba, a recent neural architecture that can be roughly thought of as a modern recurrent neural network (RNN). The model works really well and is a legitimate competitor with the ubiquitous Transformer architecture. It has gotten a lot of attention.

Why pandas feels clunky when coming from R
The post discusses challenges and perceptions of transitioning from R to Pandas in Python, exploring reasons why Pandas might feel clunky to users accustomed to R. The author provides insights and tips to ease the transition and improve the Pandas experience.

Advanced Retrieval-Augmented Generation: From Theory to LlamaIndex Implementation
How to address limitations of naive RAG pipelines by implementing targeted advanced RAG techniques in Python.

Build a typing assistant with Mistral 7B and Ollama 
In this Python tutorial, we'll build a typing assistant with Mistral 7B and Ollama that's running locally. You'll also learn how to implement a hotkey listener and keyboard controller with Python. Follow along in this step-by-step coding tutorial.

Advanced Web Scraping With Python: Extract Data From Any Site
This article covers how to get and manage cookies and custom headers, avoid TLS fingerprinting, recognize important HTTP headers to send in requests, and how to implement exponential-backoff HTTP request retrying.

Build a Retrieval-Augmented Generation Chatbot in 5 Minutes 
In under 5 minutes and with only 100 lines of Python code, Rohan Rao, senior solutions architect at NVIDIA, demos how large language models (LLMs) can be developed and deployed for AI chatbot applications—without needing your own GPU infrastructure. 

Python Dependencies Are Fixable
The article critiques the current state of Python's dependency management, emphasizing the need for better defaults and user experience. Drawing parallels with Golang's successful design, the author advocates for a shift in mentality within the Pypa ecosystem to improve the default behavior of tools like Pip and suggests exploring alternatives if necessary.


Interesting Projects, Tools and Libraries

ingestr
ingestr is a CLI tool to copy data between any databases with a single command seamlessly. 

ok-robot
An open, modular framework for zero-shot, language conditioned pick-and-drop tasks in arbitrary homes.

Evo
DNA foundation modeling from molecular to genome scale.

AutoPrompt
Auto Prompt is a prompt optimization framework designed to enhance and perfect your prompts for real-world use cases.

PyRIT
The Python Risk Identification Tool for generative AI (PyRIT) is an open access automation framework to empower security professionals and machine learning engineers to proactively find risks in their generative AI systems.

gemma_pytorch
The official PyTorch implementation of Google's Gemma models.

justpath
Inspect and refine PATH environment variable on both Windows and Linux.

Mountaineer
Mountaineer is a batteries-included web framework for Python and React.

sqlbind
Lightweight text-based SQL parameter binds.

hotpdf
hotpdf is a fast PDF parsing library to extract text and find text within PDF documents built on top of pdfminer.six

Sensei
Generate Synthetic Data Using OpenAI or MistralAI.


New Releases

JupyterLab 4.1 and Notebook 7.1 are here
JupyterLab 4.1 and Notebook 7.1 are now available! These releases include several new features, bug fixes, and enhancements for extension developers. This release is compatible with extensions supporting JupyterLab 4.0 and Notebook 7.0.

Python in Visual Studio Code – March 2024 Release
This release includes the following announcements:
  • New Add Imports Code Action heuristics setting
  • Automatically start your browser when debugging Django or Flask apps
  • Shell integration for the Python REPL
  • Language support for locally running Jupyter servers


Upcoming Events and Webinars

PyData London Meetup March 2024
There will be following talks
  • Building the single-source-of-truth: developing a system for large-scale entity resolution
  • The future of AI: Opensource LLMs

IndyPy Meetup March 2024
There will be a talk, Eclipse Insights: How AI is Transforming Solar Astronomy.

Python Milano Meetup March 2024
There will be following talks
  • Python for (Board) Game Design
  • Python for Designers

Cleveland PyLadies Meetup March 2024
There will be discussion and learning about the field of Prompt Engineering.

PyData Südwest Meetup March 2024
There will be following talks
  • Going beyond Parquet's default settings – be surprised what you can get - Uwe Korn 
  • Profiling and Optimising Model Prediction Services -Paolo Rechia
PyData Manchester Meetup March 2024
There will be a talk, Developing Valuable ML Products.

PyData Atlanta Meetup March 2024
There will be a talk, Unleashing the Power of Generative AI in Business Applications.
 
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 639

2024-02-23 00:00:00

Python Weekly - Issue 639

View this email in your browser

Python Weekly

Welcome to issue 639 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 
 
  Take control of your software supply chain with Docker Scout! Enhance security, ensure compliance, and boost productivity. Seamlessly integrate with your developer tooling ecosystem for more reliable and secure development. Learn more about Docker Scout now!

Articles, Tutorials and Talks

Let's build the GPT Tokenizer 
The Tokenizer, essential for Large Language Models (LLMs), translates between strings and tokens, operating as a distinct stage with separate training sets and algorithms. This lecture builds the GPT series Tokenizer from scratch, uncovering peculiar behaviors in LLMs linked to tokenization. We explore these issues, attributing them to tokenization, and consider the ideal scenario of eliminating this stage altogether."

5 Tips to Safely Use Credentials in Your Python Project 
Learn 5 simple tips to help keep your Python credentials safe and fix problems quickly if they occur.

Building an LLM from scratch
Learn how to build a modern language model with all the bells and whistles completely from scratch: from vanilla Python to functional coding assistant

Tracing System Calls in Python
The article discusses the author's development of a tool added to Cirron that enables the tracing of system calls made by Python code. It provides an example of tracing the "print" function and explains the tool's implementation using the strace tool for effective analysis. The article also outlines the initial intention to use the ptrace syscall for implementation and the subsequent utilization of the strace tool for handling complexity.

Using IPython Jupyter Magic Commands to Improve the Notebook Experience
A post on creating a custom IPython Jupyter Magic command.

The simplest way to add a Django worker (Using AWS Chalice)
The article discusses the utilization of AWS Chalice to incorporate a Django worker, enabling the use of a lambda function as a serverless background worker for any application. This approach allows the lambda function to run in the background without blocking the main thread of the app, and it can call an endpoint on the Django app when completed, offering the advantage of using any Python library in the lambda function without requiring lambda layers or other AWS-specific configurations.

How to dockerize a Django, Preact, and PostgreSQL Application
Dockerizing your Django application can be intimidating, but the rewards outweigh the risks. In this guide, Charlie Macnamara walks you through the setup process so you can get the most out of your applications.

Algorithmic Art with Python 
In this talk we’re going to start from nothing and build out our own tools for making art in Python, no AI needed! We’ll show how Python’s expressiveness allows us to describe graphics elegantly and use that to make some unique art programmatically.

Deploy a Serverless FastAPI App with Neon Postgres and AWS App Runner at any scale
Create a serverless API using FastAPI, deployed on AWS App Runner and powered by Neon Postgres.


Interesting Projects, Tools and Libraries

uv
An extremely fast Python package installer and resolver, written in Rust. Here is a post that goes in to details of uv.


OS-Copilot
An self-improving embodied conversational agent seamlessly integrated into the operating system to automate our daily tasks.

Owl 
A personal wearable AI that runs locally.

Alto
Serverless for data practitioners. The fastest way to run your code in the cloud. Effortlessly run scripts, functions, and Jupyter notebooks in virtual machines.

magika
Detect file content types with deep learning.

Streamline-Analyst
An AI agent powered by LLMs that streamlines the entire process of data analysis.

minbpe
Minimal, clean, code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.

Hyperdiv
Build reactive web UIs in Python.

UFO
A UI-Focused Agent for Windows OS Interaction.


New Releases

Python 3.13.0 alpha 4


Upcoming Events and Webinars

Oxford Python Meetup February 2024
There will be a talk, Getting Started with PyO3.

PyLadies Amsterdam Meetup February 2024
There will be a workshop, Fine-tuning text-to-image diffusion models for personalization and more.

PyData Toronto Meetup February 2024
There will be following talks
  • Text Processing on Data for interacting with LLMs
  • Causal Inference: Creating counterfactuals and their applications in Paid Marketing

PyData Lisbon Meetup February 2024
There will be following talks
  • Mastering Python Projects with Poetry
  • LLMs in Production aka LLMOps

PyData Prague Meetup February 2024
There will be following talks
  • Unlocking Efficiency - The Power of Vectorization
  • Jupyter(Hub/Lab) - Journey from On-prem to AWS
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 638

2024-02-16 00:00:00

Python Weekly - Issue 638

View this email in your browser

Python Weekly

Welcome to issue 638 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 
 
  Take control of your software supply chain with Docker Scout! Enhance security, ensure compliance, and boost productivity. Seamlessly integrate with your developer tooling ecosystem for more reliable and secure development. Learn more about Docker Scout now!


Articles, Tutorials and Talks

Why AI has a Python Problem 
Artificial Intelligence (AI) has propelled Python to unprecedented popularity, making it the go-to language for developers and researchers worldwide. Yet, beneath the surface, a significant challenge looms. Let's get into the specific difficulties Python poses for AI's evolution, backed by real-world examples and technical insights.

Meta loves Python 
Meta engineers discuss their contributions to Python 3.12, including new features such as custom JIT hooks, Immortal Objects, type system improvements, and faster comprehensions, highlighting their collaboration with the Python community and the company's support for open source

Counting CPU Instructions in Python
Did you know it takes about 17,000 CPU instructions to print("Hello") in Python? And that it takes ~2 billion of them to import seaborn?

Not just NVIDIA: GPU programming that runs everywhere
If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.

The Many Ways to Deploy a Model
There are many ways to deploy models and perform inference. Here, we share our decision rubric for model deployments using LLM inference as an example.

The Math Behind the Adam Optimizer
Why is Adam the most popular optimizer in Deep Learning? Let’s understand it by diving into its math, and recreating the algorithm.

Visualizing Neural Network Internals 
Visualizing some of the internals of a neural network during training and inference.

Engineering Practices for LLM Application Development
LLM engineering involves much more than just prompt design or prompt engineering. In this article, we share a set of engineering practices that helped us deliver a prototype LLM application rapidly and reliably in a recent project. We'll share techniques for automated testing and adversarial testing of LLM applications, refactoring, as well as considerations for architecting LLM applications and responsible AI.

Everything You Can Do with Python's textwrap Module
Python has many options for formatting strings and text, including f-strings, format() function, templates and more. There's however one module that few people know about and it's called textwrap. This module is specifically built to help you with line-wrapping, indentation, trimming and more, and in this article we will look at all the things you can use it for.

How to avoid a count query in Django if you can

Handling Tasks in Asyncio Like a Pro


Interesting Projects, Tools and Libraries

modguard
A Python tool to enforce a modular, decoupled package architecture.

metavoice-src
Foundational model for human-like, expressive TTS.

logot
Test whether your code is logging correctly.

TriOTP
The OTP framework for Python Trio.

Toolong
A terminal application to view, tail, merge, and search log files (plus JSONL).

django-queryhunter
Hunt down the lines of your Django application code which are responsible for executing the most queries.

Lag-Llama
Towards Foundation Models for Probabilistic Time Series Forecasting.

HypoFuzz
Open source smart fuzzing for Python's best testing workflow.

mwmbl
An open source, non-profit search engine implemented in Python.

instld
The simplest package management.


Upcoming Events and Webinars

PyLadies Dublin Meetup February 2024
There will be a talk, Where Cybersecurity meets Python.

Spokane Python Meetup February 2024
There will be a talk, how to integrate Rust into your Python workflow by creating Rust bindings using PyO3.

Python Barcelona Meetup February 2024
There will be following talks
  • Pytest, a short hike.
  • Analysis of the use and the discourse of "Queering The Map"

PyData Southampton Meetup February 2024
There will be following talks
  • Combine geospatial data in 3D & beyond with TileDB arrays
  • Searching for gamma-ray sources in Space with GPU computing

PyData Berlin Meetup February 2024
There will be following talks
  • Exploiting Data Structure and Geometry with a Diffusion-based Graph Neural Network
  • Example Sampling Strategies for Large Language Models

PyData Stockholm Meetup February 2024
There will be following talks
  • Scraping 1.3 million home prices - and getting away with it
  • BYOSC Build Your Own Scalable Chatbots
  • Transitmap
  • DeLight - The Delay Flight Predictor
  • Where was this image taken? - Visual Geolocalization in the era of Deep Learning.
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 637

2024-02-09 00:00:00

Python Weekly - Issue 637

View this email in your browser

Python Weekly

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

Rye: a Hassle-Free Python Experience 
Demonstrates the then latest version of Rye (0.21) and now it can be used to manage Python projects and interpreters.

A search engine in 80 lines of Python
The post details the creation of a search engine in just 80 lines of code, providing insights into the efficient implementation of a basic yet functional search algorithm.

Beyond Self-Attention: How a Small Language Model Predicts the Next Token
A deep dive into the internals of a small transformer model to learn how it turns self-attention calculations into accurate predictions for the next token.

Summary of Major Changes Between Python Versions
This post is designed to be a quick reference for the major changes introduced with each new version of Python. This can help with taking advantages of using new features as you upgrade your code base, or ensuring that you have the correct guards for compatibility with older versions.

Pro-Tip – "En-Rich" your Python testing
The article provides a pro-tip on enhancing Python testing using the "rich" library. It demonstrates how to improve test output by using "rich" for better visualization of test results, particularly in pytest tests. The article offers practical advice and code examples for enriching the testing experience in Python.

How to cache data using GDB's Python API
This article describes how information can be cached for different object types within GDB's Python API; some object types provide special support for data caching, while for other object types you'll need to do additional work to manage cached data.

Build a Content Engine with Django, Kubernetes, TailwindCSS, Twingate, AWS S3, & HTMX 

One Trillion Row Challenge

Improving Django testing with seed database

Graph neural networks in TensorFlow


Interesting Projects, Tools and Libraries

OLMo
A State-of-the-Art, Truly Open LLM and Framework.

Lockbox
Lockbox is a forward proxy for making third party API calls.

skorche
Task orchestration for Python.

PyPDFForm
The Python library for PDF forms.

rexi
Terminal UI for Regex Testing.

GPTAuthor
GPTAuthor is an AI tool for writing long form, multi-chapter stories given a story prompt.

django-htmx-components
This is a collection of components for Django and htmx. They are meant to be copy-pasted into your project and customized to your needs.

contrastors
contrastors is contrastive learning toolkit that enables researchers and engineers to train and evaluate contrastive models efficiently.

Rawdog
An CLI assistant that responds by generating and auto-executing a Python script.

IOPaint
A free and open-source inpainting & outpainting tool powered by SOTA AI model.

NaturalSQL
A series of top performing Text to SQL LLMs.

ml-mgie
Apple's new open-source AI model that can edit images based on natural language instructions.

atopile
A tool to create electronic circuit boards with code.

web2pdf
CLI to convert Webpages to PDFs.


New Releases

Python 3.12.2 and 3.11.8 are now available.

Django security releases issued: 5.0.2, 4.2.10, and 3.2.24


Upcoming Events and Webinars

Python Frederick Meetup February 2024
There will be a talk, Algorithmic Art with Python.

PyData Johannesburg Meetup February 2024
There will be a talk, Productionising Machine Learning Models.
 
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.