Issue #574

PyPI Trusted Publishers, Namespaces, ChatGPT REPL, and More

April 25, 2023

PyPI Trusted Publishers, Namespaces, ChatGPT REPL, and More
#574 – APRIL 25, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
PyPI Introduces “Trusted Publishers”
PyPI package maintainers can adopt a new, more secure “OIDC authenticated” publishing method that does not require long-lived passwords or API tokens to be shared with external systems.
PYPI.ORG

What’s a Python Namespace Package, and What’s It For?
In this tutorial, you’ll be exploring Python namespace packages: what they are, what they’re for, and how you can use them in your package systems. Along the way, you’ll create your own set of namespace packages and explore how you might be able to use them in your own projects.
REAL PYTHON

Analyze Your Python Code for Security Issues for Free
Semgrep is trusted by hundreds of thousands of developers at top companies, such as GitLab, Snowflake, Slack, and many more, to ensure the security of their code (SAST) and dependencies (SCA). Add your project in 1 minute and see for yourself →
SEMGREPsponsor

Building a ChatGPT-enhanced Python REPL
This blog shows how Logan built a Python REPL augmented with ChatGPT. It details the application itself as well as speculating on software engineering patterns that might emerge in systems built on Large Language Models (LLMs).
LOGAN MORTIMER

Python 3.10 Runtime Now Available in AWS Lambda
AMAZON.COM


Discussions


PEP 707: A Simplified Signature for __exit__ and __aexit__
PYTHON.ORG

Ideas: Allow Comprehension Syntax in for Loop
PYTHON.ORG


Python Jobs


Software Engineer - Backend/Python (100% Remote)
CLOSE 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Dependency Injection in Python
“Dependency Injection (DI) is a design pattern that encourages loose coupling, maintainability, and testability within software applications.” Though more often associated with statically typed languages, the pattern can be applied with Python.
PATRICK KALKMAN

Improve Your Code With Pre-Commit
This article covers a variety of tools you can attach to your repo’s pre-commit hook to validate your code. Although the article is from a Django perspective, all but one of the tools covered is Django-agnostic.
RASUL KIREEV

Polish your Python Code with Pylint
Discover the — often overlooked — value of linting in Snyk’s guide to improving code quality with Pylint →
SNYK.IOsponsor

Limiting Concurrency in Python asyncio
This article shows you how to do rate limiting when dealing with repeated tasks within asyncio. It uses a thread pool and imap_unordered() to show you why the answer may not always be to use a Semaphore.
LEMON24

Summing Values the Pythonic Way With sum()
In this video course, you’ll learn how to use Python’s sum() function to add numeric values together. You’ll also learn how to concatenate sequences, such as lists and tuples, using sum().
REAL PYTHON course

Google’s Assured OSS Python Packages
Google publishes a list of the Open Source packages it uses and secures within its own software supply chain. The list is made public so you can take advantage of their assessment.
GOOGLE.COM

The Fastest Way to Read a CSV File in Pandas 2.0
The fastest way to read a CSV file into a Pandas DataFrame isn’t pd.read_csv(). This article shows you the alternative and how the result was bench-marked.
FINN ANDERSEN

Building Reproducible Python Environments With XARs
XAR is an archiving format that can contain a tree of files. This article details how they can be used to package Python environments for deploy-ability.
PAVEL SENCHANKA

Django Performance Optimization Tips
This article looks at where potential performance issues can occur in a Django application and how to address them in order to speed up your app.
MICHAEL HERMAN • Shared by Michael Herman

Python Packages: A Primer for Data People
This article introduces you to the concept of Python modules and packages. How and where you use them and why you should.
ELLIOT GUNN


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

Mouse Scroll Wheel Acceleration in User Space
GITHUB.COM/ALBERTZ

faiss: Similarity Search & Clustering of Dense Vectors
GITHUB.COM/FACEBOOKRESEARCH

trrex: Efficient String Matching With Regular Expressions
GITHUB.COM/MESEJO • Shared by Daniel Mesejo

pypi-diff: PyPI Package History Tracking
GITHUB.COM/ABBBI

nanobind: Tiny and Efficient C++/Python Bindings
GITHUB.COM/WJAKOB

📆🐍 Upcoming Python Events


PyCon US 2023
April 19 to April 28, 2023

PyKla Monthly Meetup
April 26, 2023

Weekly Real Python Office Hours Q&A (Virtual)
April 26, 2023

PyStaDa
April 26, 2023

Python Adelaide Meetup
April 27, 2023

SPb Python Drinkup
April 27, 2023

PythOnRio Meetup
April 29, 2023
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.