Python Weekly - Python Weekly - Issue 596

View this email in your browser

Python Weekly

Welcome to issue 596 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 

 
  Deep dive into the most prevalent critical and high open source vulnerabilities found by Snyk scans of Python apps. Learn more about how these high risk vulnerabilities might be impacting open source packages you are using today and how to fix them.


News

The EU's Proposed CRA Law May Have Unintended Consequences for the Python Ecosystem
The European Union's proposed Cyber Resilience Act and Product Liability Act may have unintended consequences for the Python ecosystem. The PSF is concerned that overly broad policies will unintentionally harm the users they are intended to protect. For example, the proposed laws could make it more difficult for open source projects to be updated and maintained, and could lead to increased legal costs for developers. The PSF is calling on the EU to reconsider these proposals and to work with the open source community to develop policies that are both effective and fair.


Articles, Tutorials and Talks

Building LLM applications for production
This post discusses the challenges of productionizing large language model (LLM) applications. It covers topics such as prompt engineering, cost and latency, task composability, and promising use cases for LLMs. The post argues that LLMs can be powerful tools for a variety of tasks, but that they require careful engineering to be used effectively in production.

Mandala: Python programs that save, query and version themselves
Your code and its execution traces contain enough information to save, query and version computations without extra boilerplate. mandala is a persistent memoization cache on steroids that lets you tap into this information. This post walks you through mandala to give you an idea of its general spirit and the particular ways in which it simplifies computational data management.

How to Use Pandas With Pandera to Validate Your Data in Python 
Type hints and annotations are not enough when you are using pandas for data analysis in Python. You need validation! Today I’ll show you how to work with Pandera to quickly and easily validate your dataframes.

Building reproducible Python environments with XARs
The post discusses how to build reproducible Python environments using xars, a tool developed by Jane Street. Xars are self-contained archives of Python packages and their dependencies, allowing for easy distribution and reproducibility across different machines.

Building A ChatGPT-enhanced Python REPL
This article shares the author's experience in building a Python REPL augmented with ChatGPT. He explores how the application is built, and speculates on software engineering patterns and paradigms that might emerge in systems built on Large Language Models (LLMs).

Improving messages and types in GDB’s Python API
The post describes improvements made to the Python API of GDB, a popular debugger. Specifically, the post discusses improvements to the type and message handling within the API, making it easier for developers to use GDB in their Python projects.

The fastest way to read a CSV file in Pandas 2.0
It turns out that the fastest way to create a Pandas DataFrame from a CSV file is to use an entirely different library.

A Practical Introduction to Polars for Python Data Processing
This post is a brief tour of how to set up and use Polars, working through a pragmatic example of the things you might do in a typical data exploration project.

Algebraic Data Types in (typed) Python
Algebraic data types (ADTs) are a way of representing data that can be in one of a few different, mutually exclusive, forms. In Python, ADTs can be represented using the typing module. ADTs can help to make code more clear and concise, and can also help to prevent errors.

Running Python micro-benchmarks using the ChatGPT Code Interpreter alpha

PyCascades 2023 Videos 

Dependency Injection in Python


Interesting Projects, Tools and Libraries

Megabots
State-of-the-art, production ready bots made mega-easy, so you don't have to build them from scratch.

Polyfactory
Polyfactory is a simple and powerful mock data generation library, based around type hints and supporting dataclasses, typed-dicts, Pydantic models and more.

web-llm
Bringing large-language models and chat to web browsers. Everything runs inside the browser with no server support. 

openai_pricing_logger
openai_pricing_logger is a Python package that logs OpenAI API costs and timestamps. It's designed to help you keep track of API usage and related costs, providing an easy way to monitor and analyze the expenses.

txtinstruct
txtinstruct is a framework for training instruction-tuned models.

markdown-code-runner
Automatically execute code blocks within a Markdown file and update the output in-place.

AutoResearcher
Automating scientific workflows with AI.

LLMZoo
LLM Zoo is a project that provides data, models, and evaluation benchmark for large language models.

poe-api
A reverse engineered Python API wrapper for Quora's Poe, which provides free access to ChatGPT, GPT-4, and Claude.

Semaphore
A full-body keyboard using gestures to type through computer vision.

Wolverine
Give your python scripts regenerative healing abilities!

pyobsplot
Observable Plot in Jupyter notebooks and Quarto documents.


New Releases

pip 23.1
This is the second release of pip for the year 2023. You can find the full list of changes in the changelog.


Upcoming Events and Webinars

PyData NYC Meetup April 2023
There will be following talks
  • Play in your neighbor's backyard for fun! Different projects, same methods
  • IBM Call for Code, Sustainability, and AI (Watson Assistant)
  • Predicting temperatures using linear regression with Python

PyData Chicago Meetup April 2023
There will be a talk, Design and Analysis of Experiments with R and 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 © 2023 Python Weekly, All rights reserved.
You are receiving our weekly newsletter because you signed up at http://www.PythonWeekly.com.

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

Add us to your address book


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

Key phrases

Older messages

Python Weekly - Issue 595

Thursday, April 6, 2023

View this email in your browser Python Weekly Welcome to issue 595 of Python Weekly. Let's get straight to the links this week. From Our Sponsor One of the commonly used ways to implement mass

Python Weekly - Issue 594

Thursday, March 30, 2023

View this email in your browser Python Weekly Welcome to issue 594 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Build developer-first automations with Retool

Python Weekly - Issue 593

Thursday, March 23, 2023

View this email in your browser Python Weekly Welcome to issue 593 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 592

Thursday, March 16, 2023

View this email in your browser Python Weekly Welcome to issue 592 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 591

Thursday, March 9, 2023

View this email in your browser Python Weekly Welcome to issue 591 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Snyk is hosting a hands-on, virtual workshop to

You Might Also Like

🔒 The Vault Newsletter: April issue 🔑

Thursday, April 25, 2024

Get the latest business security news, updates, and advice from 1Password. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Top Tech 🏆 Lenovo ThinkPad X1 Carbon Gen 12 Laptop Review — Testing an AI Voice Recorder

Thursday, April 25, 2024

Also: The Roborock S8 MaxV Ultra Vacuum is Excellent, and More! How-To Geek Logo April 25, 2024 Take a look at our latest reviews, featuring fun tech like the Lenovo ThinkPad X1 Carbon laptop,

⚙️ r1

Thursday, April 25, 2024

Plus: UK investigating OpenAI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Charted | Economic Growth Forecasts for G7 and BRICS Countries in 2024 📊

Thursday, April 25, 2024

The IMF has released its economic growth forecasts for 2024. How do the G7 and BRICS countries compare in expected real GDP growth? View Online | Subscribe Presented by: Access European benchmarks with

Build5Nines Newsletter - April 25, 2024

Thursday, April 25, 2024

View this email in your browser Build5Nines Build5Nines Newsletter Thank you for subscribing! I look forward to sharing with you the latest cloud news, technical help, and other thoughts around DevOps

Discover the World's Easiest Parallel File System

Thursday, April 25, 2024

Join us in exploring the future of data management with Bjorn Kolbeck, a Google engineer turned CEO and Co-founder of Quobyte, the creators of the world's easiest parallel file system. ͏ ͏ ͏ ͏ ͏ ͏

Issue 314 - New Model 3 Performance is here

Thursday, April 25, 2024

View this email in your browser If you are just now finding out about Tesletter, you can subscribe here! If you already know Tesletter and want to support us, check out our Patreon page Issue 314 - New

Programmer Weekly - Issue 202

Thursday, April 25, 2024

View this email in your browser Programmer Weekly Welcome to issue 202 of Programmer Weekly. Let's get straight to the links this week. Quote of the Week "Computer science inverts the normal.

Python Weekly - Issue 647

Thursday, April 25, 2024

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

Web Tools #562 - Voilà Review, CSS Tools, Media, React Native

Thursday, April 25, 2024

WEB VERSION Issue #562 • April 25, 2024 The following is a paid product review for Voilà, an AI assistant for the browser that enables you to improve your writing, coding, brainstorming, and research